|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--transport.protocol.Message
This class defines the basic structure for a message used to send data between agents in the simulation.
Field Summary | |
private int |
from
The port number of who sent the message. |
private int |
to
The port number to whom the message is being sent. |
Constructor Summary | |
Message(int to,
int from)
This constructor initializes the Message. |
Method Summary | |
int |
getFrom()
This method returns the port that the sender listens to. |
int |
getTo()
This method returns the port to send the message to. |
void |
setTo(int t)
This method sets the port to send the message to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int from
private int to
Constructor Detail |
public Message(int to, int from)
Method Detail |
public int getFrom()
public int getTo()
public void setTo(int t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |