|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pzgui.AbstractDrawable
org.pzgui.layout.AbstractLayoutable
org.openflow.gui.drawables.Node
org.openflow.gui.drawables.NodeWithPorts
org.openflow.gui.drawables.OpenFlowSwitch
public class OpenFlowSwitch
Describes an OpenFlow switch.
| Field Summary | |
|---|---|
static java.awt.Paint |
DEFAULT_FILL
default fill color for DEFAULT_SHAPE |
static java.awt.Shape |
DEFAULT_SHAPE
default shape used to represent a switch |
static int |
DEFAULT_SIZE
default size of the DEFAULT_SHAPE |
| Fields inherited from class org.openflow.gui.drawables.Node |
|---|
OUTLINE_RATIO, SHOW_NAMES |
| Constructor Summary | |
|---|---|
OpenFlowSwitch(long dpid)
|
|
OpenFlowSwitch(java.lang.String name,
int x,
int y,
long dpid)
|
|
| Method Summary | |
|---|---|
void |
drawObject(java.awt.Graphics2D gfx)
Uses super.drawObject() to do most of the work and then draws switch description stats if the switch is being hovered over or is selected. |
java.lang.String |
getDebugName()
returns a string version of the switch's datapath ID |
long |
getDescriptionUpdateTime()
Returns the time the switch's description was last updated |
java.lang.String |
getHWDescription()
gets the hardware description of the switch |
long |
getID()
gets the datapath ID of this switch |
java.lang.String |
getManufacturer()
gets the manufacturer of the switch |
java.lang.String |
getSerialNumber()
gets the serial n umber of the switch |
java.lang.String |
getSWDescription()
gets the software description of the switch |
void |
setID(long dpid)
sets the datapath ID of this switch |
void |
setSwitchDescription(SwitchDescriptionStats stats)
Update info about the switch's description |
java.lang.String |
toString()
returns the name of the node |
| 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 |
| Field Detail |
|---|
public static final int DEFAULT_SIZE
public static final java.awt.Shape DEFAULT_SHAPE
public static final java.awt.Paint DEFAULT_FILL
| Constructor Detail |
|---|
public OpenFlowSwitch(long dpid)
public OpenFlowSwitch(java.lang.String name,
int x,
int y,
long dpid)
| Method Detail |
|---|
public void drawObject(java.awt.Graphics2D gfx)
drawObject in interface DrawabledrawObject in class Nodepublic java.lang.String getDebugName()
getDebugName in class Nodepublic long getID()
public void setID(long dpid)
public java.lang.String getManufacturer()
public java.lang.String getHWDescription()
public java.lang.String getSWDescription()
public java.lang.String getSerialNumber()
public long getDescriptionUpdateTime()
public void setSwitchDescription(SwitchDescriptionStats stats)
public java.lang.String toString()
Node
toString in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||