|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.network.graph.Link
public class Link
Represents a link between to nodes. Can be directed (= unidirectional) or undirected (bidirectional, standard). The link has some properties that can be read with link.getProperties().
| Constructor Summary | |
|---|---|
Link(boolean directed,
int fromNode,
int toNode)
Creates new Link, standard constructor |
|
| Method Summary | |
|---|---|
int |
fromNode()
gets source node |
BandwidthManager |
getBandwidthManager()
gets BandwidthManager |
LinkProperties |
getProperties()
gets link properties |
boolean |
isDirected()
check directed information |
void |
reset()
reset values |
void |
setBandwidth(double b)
sets bandwidth for this link |
void |
setBandwidthManager(BandwidthManager bm)
set bandwidth manager for this link |
void |
setDelay(double d)
sets delay for this link |
int |
toNode()
gets destination node |
java.lang.String |
toString()
gets string description |
void |
turnaround()
exchange source node and destination node |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Link(boolean directed,
int fromNode,
int toNode)
directed - directed or undirectedfromNode - source nodetoNode - destination node| Method Detail |
|---|
public void reset()
public java.lang.String toString()
toString in class java.lang.Objectpublic int fromNode()
public int toNode()
public void turnaround()
public LinkProperties getProperties()
public boolean isDirected()
public void setBandwidth(double b)
b - new bandwidthpublic void setDelay(double d)
d - new delaypublic void setBandwidthManager(BandwidthManager bm)
bm - new bandwidth managerpublic BandwidthManager getBandwidthManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||