org.openflow.gui
Class VirtualSwitchSpecification

java.lang.Object
  extended by org.openflow.gui.VirtualSwitchSpecification

public class VirtualSwitchSpecification
extends java.lang.Object

Specifies how a single switch should be displayed (as multiple switches).

Author:
David Underhill

Nested Class Summary
 class VirtualSwitchSpecification.VirtualSwitchAndPorts
           
 
Constructor Summary
VirtualSwitchSpecification(long dpid)
           
 
Method Summary
 void addVirtualSwitchPort(int virtualSwitchIndex, int port)
           
 int getNumVirtualSwitches()
           
 long getParentDPID()
          gets the datapth ID of the switch being virtualized for display purposes
 VirtualSwitchSpecification.VirtualSwitchAndPorts getVirtualSwitch(int virtualSwitchIndex)
           
 VirtualOpenFlowSwitch getVirtualSwitchByPort(int port)
          Returns the virtual switch associated with the specified port number, or null if no such port is virtualized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualSwitchSpecification

public VirtualSwitchSpecification(long dpid)
Method Detail

getParentDPID

public long getParentDPID()
gets the datapth ID of the switch being virtualized for display purposes


addVirtualSwitchPort

public void addVirtualSwitchPort(int virtualSwitchIndex,
                                 int port)

getNumVirtualSwitches

public int getNumVirtualSwitches()

getVirtualSwitch

public VirtualSwitchSpecification.VirtualSwitchAndPorts getVirtualSwitch(int virtualSwitchIndex)

getVirtualSwitchByPort

public VirtualOpenFlowSwitch getVirtualSwitchByPort(int port)
Returns the virtual switch associated with the specified port number, or null if no such port is virtualized.