org.openflow.gui.drawables
Class Host
java.lang.Object
org.pzgui.AbstractDrawable
org.pzgui.layout.AbstractLayoutable
org.openflow.gui.drawables.Node
org.openflow.gui.drawables.NodeWithPorts
org.openflow.gui.drawables.Host
- All Implemented Interfaces:
- Drawable, Layoutable, Vertex<Link>
public class Host
- extends NodeWithPorts
Describes a host.
- Author:
- David Underhill
|
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 |
|
Constructor Summary |
Host(long ip)
|
Host(java.lang.String name,
int x,
int y,
long ip)
|
|
Method Summary |
java.lang.String |
getDebugName()
returns a string version of the switch's datapath ID |
long |
getID()
gets the IP address of this host |
void |
setID(long ip)
sets the IP address of this host |
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, drawObject, 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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- default size of the DEFAULT_SHAPE
- See Also:
- Constant Field Values
DEFAULT_SHAPE
public static final java.awt.Shape DEFAULT_SHAPE
- default shape used to represent a switch
DEFAULT_FILL
public static final java.awt.Paint DEFAULT_FILL
- default fill color for DEFAULT_SHAPE
Host
public Host(long ip)
Host
public Host(java.lang.String name,
int x,
int y,
long ip)
getDebugName
public java.lang.String getDebugName()
- returns a string version of the switch's datapath ID
- Specified by:
getDebugName in class Node
getID
public long getID()
- gets the IP address of this host
setID
public void setID(long ip)
- sets the IP address of this host
toString
public java.lang.String toString()
- Description copied from class:
Node
- returns the name of the node
- Overrides:
toString in class Node