org.openflow.gui.drawables
Class VirtualOpenFlowSwitch

java.lang.Object
  extended by org.pzgui.AbstractDrawable
      extended by org.pzgui.layout.AbstractLayoutable
          extended by org.openflow.gui.drawables.Node
              extended by org.openflow.gui.drawables.NodeWithPorts
                  extended by org.openflow.gui.drawables.OpenFlowSwitch
                      extended by org.openflow.gui.drawables.VirtualOpenFlowSwitch
All Implemented Interfaces:
Drawable, Layoutable, Vertex<Link>

public class VirtualOpenFlowSwitch
extends OpenFlowSwitch

A part of an OpenFlowSwitch which is displayed independently of the rest of the switch.

Author:
David Underhill

Field Summary
 
Fields inherited from class org.openflow.gui.drawables.OpenFlowSwitch
DEFAULT_FILL, DEFAULT_SHAPE, DEFAULT_SIZE
 
Fields inherited from class org.openflow.gui.drawables.Node
OUTLINE_RATIO, SHOW_NAMES
 
Constructor Summary
VirtualOpenFlowSwitch(long parentDPID, int virtualSwitchIndex)
           
VirtualOpenFlowSwitch(java.lang.String name, int x, int y, long parentDPID, int virtualSwitchIndex)
           
 
Method Summary
 int getVirtualSwitchIndex()
           
 
Methods inherited from class org.openflow.gui.drawables.OpenFlowSwitch
drawObject, getDebugName, getDescriptionUpdateTime, getHWDescription, getID, getManufacturer, getSerialNumber, getSWDescription, setID, setSwitchDescription, toString
 
Methods inherited from class org.openflow.gui.drawables.NodeWithPorts
drawBeforeObject, drawLinks, equals, getDirectedLinkTo, getEdges, getLinkFrom, getLinks, getLinkTo, getLinkTo, getLinkTo, getNumLinks, getType, hashCode, isPortUsed, unsetDrawn
 
Methods inherited from class org.openflow.gui.drawables.Node
contains, drawFailed, drawName, drawOutline, getHeight, getIcon, getName, getWidth, isFailed, isOff, isWithin, setFailed, setIcon, setName, setOff
 
Methods inherited from class org.pzgui.layout.AbstractLayoutable
canPositionChange, drag, getPos, getX, getY, hasPositionChanged, setCanPositionChange, setPos, setXPos, setYPos, unsetPositionChanged
 
Methods inherited from class org.pzgui.AbstractDrawable
isDrawn, isHovered, isSelected, setHovered, setSelected
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pzgui.Drawable
drag, isDrawn, isHovered, isSelected, setHovered, setSelected
 
Methods inherited from interface org.pzgui.layout.Layoutable
canPositionChange, getPos, getX, getY, hasPositionChanged, setCanPositionChange, setPos, setXPos, setYPos, unsetPositionChanged
 

Constructor Detail

VirtualOpenFlowSwitch

public VirtualOpenFlowSwitch(long parentDPID,
                             int virtualSwitchIndex)

VirtualOpenFlowSwitch

public VirtualOpenFlowSwitch(java.lang.String name,
                             int x,
                             int y,
                             long parentDPID,
                             int virtualSwitchIndex)
Method Detail

getVirtualSwitchIndex

public int getVirtualSwitchIndex()