|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.mts.IDSet
public class IDSet
A set of agent IDs.
| Constructor Summary | |
|---|---|
IDSet()
Creates a new instance of IDSet. |
|
| Method Summary | |
|---|---|
void |
addID(AID id)
Adds an agent ID to the set. |
FOS |
createIDFOS()
Creates a first order structure representation of the ID set. |
FOS |
createMessage(java.lang.String localAddress,
FOS messageTo,
java.lang.String performative,
AgentName senderName,
FOS content,
java.util.Hashtable pending)
|
FOS |
sendOut(MessageTransportService mts,
FOS messageTo,
java.lang.String performative,
AgentName agentName,
FOS content,
java.util.Hashtable pending)
This method adds a message to the outgoing list if the agent ID of the agent that the message is intended for is in the set. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IDSet()
| Method Detail |
|---|
public void addID(AID id)
id - the agent ID that is added.
public FOS sendOut(MessageTransportService mts,
FOS messageTo,
java.lang.String performative,
AgentName agentName,
FOS content,
java.util.Hashtable pending)
throws MalformedLogicException
mts - the local message transport service.messageTo - the name of the agent that the message is to be sent to.performative - the performative of the message.agentName - the name of the message sender.content - the content of the message.pending - a hashtable that stores pending messages.
MalformedLogicException - if there is a logic error.
public FOS createMessage(java.lang.String localAddress,
FOS messageTo,
java.lang.String performative,
AgentName senderName,
FOS content,
java.util.Hashtable pending)
public FOS createIDFOS()
throws MalformedLogicException
MalformedLogicException - if there is a logic error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||