|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.mts.Message
public class Message
This class represents an AFME message. AFME messages comprise a performative, a message sender, the sender's address, and the information content of the message.
| Field Summary | |
|---|---|
static java.lang.String |
ACTION
|
static java.lang.String |
INFORM
|
static java.lang.String |
REQUEST
|
| Constructor Summary | |
|---|---|
Message(java.io.DataInputStream dis,
java.lang.String app,
Platform p)
Creates a message from a data input stream. |
|
Message(java.lang.String performative,
AgentName senderName,
FOS content)
Creates an instance of Message with no sender addresses. |
|
Message(java.lang.String performative,
AgentName senderName,
java.lang.Object sendAddr,
FOS content)
Creates an instance of Message with sender addresses. |
|
| Method Summary | |
|---|---|
java.lang.String |
toBeliefString()
Converts the message to a belief string. |
void |
write(java.io.DataOutputStream dos)
Writes the state of the message to a data output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ACTION
public static final java.lang.String INFORM
public static final java.lang.String REQUEST
| Constructor Detail |
|---|
public Message(java.lang.String performative,
AgentName senderName,
FOS content)
performative - the performative of the message.senderName - the name of the agent that sent the message.content - the information content of the message.
public Message(java.lang.String performative,
AgentName senderName,
java.lang.Object sendAddr,
FOS content)
performative - the performative of the message.senderName - the name of the agent that sent the message.sendAddr - the address of the sender agent.content - the information content of the message.
public Message(java.io.DataInputStream dis,
java.lang.String app,
Platform p)
throws java.io.IOException
dis - the data input stream that the message is be constructed from.app - p - the local platform, upon which the agents reside.
java.io.IOException - if there is an I/O error.| Method Detail |
|---|
public java.lang.String toBeliefString()
public void write(java.io.DataOutputStream dos)
throws java.io.IOException
dos - the data output stream that the state is to be
written to.
java.io.IOException - if there is an I/O error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||