|
|||||||||
| 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.
| Field Summary | |
|---|---|
private NetAddress |
localAddr
local IP address. |
private CBR.ClientInterface |
self
self-referencing proxy entity. |
private NetAddress |
serverAddr
address of the server that corresponds to this client. |
private int |
transmissions
number of outgoing transmissions. |
private TransInterface.TransUdpInterface |
udp
UDP entity used by this node. |
| 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 |
| Field Detail |
|---|
private CBR.ClientInterface self
private TransInterface.TransUdpInterface udp
private NetAddress localAddr
private NetAddress serverAddr
private int transmissions
| 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 to| Method Detail |
|---|
public CBR.ClientInterface getProxy()
public void run()
run in interface CBR.ClientInterfacepublic void sendMessage(int i)
i to this client's corresponding
server.
sendMessage in interface CBR.ClientInterfacei - the number of the message to send
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||