|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.network.Connection
gps.protocol.BT.BTConnection
public class BTConnection
two way connection between two BTSockets.
| Constructor Summary | |
|---|---|
BTConnection(BTSocket a,
BTSocket b)
constructs BTConnection object |
|
| Method Summary | |
|---|---|
void |
adjustBandwidth(double adj)
request more or less bandwidth for a connection |
double |
getBandwidthFrom(BTSocket s)
get bandwidth for the flow origniated from a BTSocket |
void |
setBandwidthFrom(BTSocket s,
double b)
set bandwidth for the flow origniated from a BTSocket |
java.lang.String |
toString()
gets string description |
| Methods inherited from class gps.network.Connection |
|---|
findBottleNeck, getAllConnections, getBandwidth, getBandwidthFrom, isActive, printConnections, relaxBandwidthAlongTheWay, setActive, setBandwidthFrom, setInActive, setUp, tearDown |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BTConnection(BTSocket a,
BTSocket b)
a - source BTSocketb - destination BTSocket| Method Detail |
|---|
public double getBandwidthFrom(BTSocket s)
s - source BTSocket
public void setBandwidthFrom(BTSocket s,
double b)
s - source BTSocketb - new bandwidthpublic void adjustBandwidth(double adj)
adjustBandwidth in class Connectionadj - adjustmentpublic java.lang.String toString()
toString in class Connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||