|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.network.Connection
public class Connection
high level directed connection between nodes
| Constructor Summary | |
|---|---|
Connection(Agent a,
Agent b)
constructs a connection between agents |
|
Connection(Node a,
Node b)
constructs a connection between nodes |
|
| Method Summary | |
|---|---|
void |
adjustBandwidth(double adj)
adjust bandwidth for provided amount |
Link |
findBottleNeck(boolean forward)
finds bottle neck along links |
static java.util.ArrayList |
getAllConnections()
get all the connections in the system, class method |
double |
getBandwidth()
gets bandwidth allocated for this connection |
double |
getBandwidthFrom(Node n)
gets one way bandwidth |
boolean |
isActive()
get active status |
static void |
printConnections()
print all connections in system, just for debug purpose |
void |
relaxBandwidthAlongTheWay()
|
void |
setActive()
make connection active |
void |
setBandwidthFrom(Node n,
double b)
sets one way bandwidth |
void |
setInActive()
makes connection inactive |
void |
setUp()
setup this connection along links |
void |
tearDown()
tear down the connection |
java.lang.String |
toString()
gets string description |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Connection(Agent a,
Agent b)
a - source agentb - destination agent
public Connection(Node a,
Node b)
a - source nodeb - destination node| Method Detail |
|---|
public static java.util.ArrayList getAllConnections()
public static void printConnections()
public void setUp()
public void setActive()
public boolean isActive()
public Link findBottleNeck(boolean forward)
forward - true means search forward, otherwise backwardpublic double getBandwidth()
public double getBandwidthFrom(Node n)
n - source
public void setBandwidthFrom(Node n,
double b)
n - sourceb - new bandwidth valuepublic void setInActive()
public void relaxBandwidthAlongTheWay()
public void tearDown()
public void adjustBandwidth(double adj)
adj - adjust amountpublic 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 | |||||||||