Modifier and Type | Field and Description |
---|---|
protected RouteId |
id |
protected java.util.List<NodePortTuple> |
switchPorts |
Constructor and Description |
---|
Route(java.lang.Long src,
java.lang.Long dst) |
Route(RouteId id,
java.util.List<NodePortTuple> switchPorts) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Route o)
Compares the path lengths between Routes.
|
boolean |
equals(java.lang.Object obj) |
RouteId |
getId() |
java.util.List<NodePortTuple> |
getPath() |
int |
hashCode() |
void |
setId(RouteId id) |
void |
setPath(java.util.List<NodePortTuple> switchPorts)
Set path using the switch port list
|
java.lang.String |
toString() |
protected RouteId id
protected java.util.List<NodePortTuple> switchPorts
public Route(RouteId id, java.util.List<NodePortTuple> switchPorts)
public Route(java.lang.Long src, java.lang.Long dst)
public RouteId getId()
public void setId(RouteId id)
id
- the id to setpublic java.util.List<NodePortTuple> getPath()
public void setPath(java.util.List<NodePortTuple> switchPorts)
switchPorts
- path to setpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object