|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdriver.CBR.Client
public static class CBR.Client
A client node in the simulation. Each client node sends
numTransmissions
packets to its corresponding server at a
rate of one per second, then terminates.
Constructor Summary | |
---|---|
CBR.Client(TransInterface.TransUdpInterface udp,
int transmissions,
NetAddress localAddr,
NetAddress serverAddr)
Creates a new Client . |
Method Summary | |
---|---|
CBR.ClientInterface |
getProxy()
Returns this object's proxy interface. |
void |
run()
Starts the client. |
void |
sendMessage(int i)
Sends message number i to this client's corresponding
server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CBR.Client(TransInterface.TransUdpInterface udp, int transmissions, NetAddress localAddr, NetAddress serverAddr)
Client
.
udp
- the UDP interface for this node to usetransmissions
- number of outgoing tranmissionslocalAddr
- this node's IP addressserverAddr
- the IP address of the server to send messages toMethod Detail |
---|
public CBR.ClientInterface getProxy()
public void run()
run
in interface CBR.ClientInterface
public void sendMessage(int i)
i
to this client's corresponding
server.
sendMessage
in interface CBR.ClientInterface
i
- the number of the message to send
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |