|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.model.Link
public class Link
A network link between two hosts
.
Field Summary | |
---|---|
protected Host |
first
first host |
protected long |
id
unique link id |
protected Host |
second
second host |
protected java.util.List |
staticVariables
list of static variables associated with this link |
Constructor Summary | |
---|---|
Link(long id,
Host first,
Host second)
Creates a link with the given values. |
|
Link(long id,
Host first,
Host second,
java.util.List staticVariables)
Creates a link with the given values and static variables. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
Host |
getFirst()
|
long |
getId()
Returns the unique identifier of this object. |
Host |
getSecond()
|
java.util.List |
getStaticVariables()
Returns a non-null list of static variables associated with this link. |
void |
setStaticVariables(java.util.List staticVariables)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long id
protected Host first
protected Host second
protected java.util.List staticVariables
Constructor Detail |
---|
public Link(long id, Host first, Host second)
public Link(long id, Host first, Host second, java.util.List staticVariables)
Method Detail |
---|
public long getId()
Identifiable
getId
in interface Identifiable
public Host getFirst()
public Host getSecond()
public java.util.List getStaticVariables()
public void setStaticVariables(java.util.List staticVariables)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |