|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.mts.AID
public class AID
The AID class represents an agent identifier. It contains the name of an agent and its address.
| Constructor Summary | |
|---|---|
AID(FOS nm,
FOS addrs)
Creates a new instance of AID. |
|
| Method Summary | |
|---|---|
FOS |
addOutgoing(MessageTransportService mts,
java.lang.String performative,
AgentName agentName,
FOS content)
Adds an outgoing message to the message transport service. |
void |
appendBeliefString(java.lang.StringBuffer buffer)
Appends the agent ID to a string buffer. |
FOS |
createMessage(java.lang.String localAddress,
AgentName senderName,
FOS content)
|
boolean |
nameEquals(FOS fos)
Checks if the name associated with this ID is equal to the specified name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AID(FOS nm,
FOS addrs)
nm - the name of the agent.addrs - the address of the agent.| Method Detail |
|---|
public boolean nameEquals(FOS fos)
fos - the specified name.
public void appendBeliefString(java.lang.StringBuffer buffer)
buffer - the string buffer to append the name to.
public FOS addOutgoing(MessageTransportService mts,
java.lang.String performative,
AgentName agentName,
FOS content)
throws MalformedLogicException
mts - the message transport service that the outgoing message
is to be added to.performative - the performative of the message.agentName - the name of the agent sending the message.content - the content of the message.
MalformedLogicException - if there is a logic error.
public FOS createMessage(java.lang.String localAddress,
AgentName senderName,
FOS content)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||