|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.network.Topology
public class Topology
provides network topology information
| Constructor Summary | |
|---|---|
Topology()
dummy constructor |
|
| Method Summary | |
|---|---|
double |
calcBandwidth(double mss,
double rtt,
double p,
double c,
double delay)
calculate bandwidth through tcp formula |
void |
confNetwork(Graph g,
java.util.Properties p)
constructs topology from graph file and properties |
double |
getAvailableBandwidth(Link l)
gets available bandwidth of a link |
double |
getBandwidth(Link l)
gets bandwidth of a link |
double |
getDelay(int node1,
int node2)
gets delay between two nodes represented by id |
double |
getDelay(Node node1,
Node node2)
gets delay between two nodes |
static Topology |
getInstance()
gets the singleton instance of topology |
Link |
getLinkBetween(Node node1,
Node node2)
gets link between two directly connected nodes |
Link[] |
getLinks()
gets all links |
Link[] |
getLinksBetween(Node node1,
Node node2)
gets links between two nodes, which may or may not connect to each other |
Node |
getNode(int id)
gets the node instance from it's id |
Node[] |
getNodes()
gets all nodes |
void |
reset()
resets topology |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Topology()
| Method Detail |
|---|
public static Topology getInstance()
public void reset()
public double getDelay(int node1,
int node2)
node1 - source node idnode2 - destination node id
public double getDelay(Node node1,
Node node2)
node1 - source nodenode2 - destination node
public double getBandwidth(Link l)
l - the link
public double getAvailableBandwidth(Link l)
l - the link
public Node getNode(int id)
id - node id
public Node[] getNodes()
public Link[] getLinks()
public void confNetwork(Graph g,
java.util.Properties p)
g - graph objectp - simulator properties
public Link[] getLinksBetween(Node node1,
Node node2)
node1 - source nodenode2 - destination node
public Link getLinkBetween(Node node1,
Node node2)
public double calcBandwidth(double mss,
double rtt,
double p,
double c,
double delay)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||