| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base FIPA-OS agent class implementing FIPA-OS specifics for agent to agent communication. Override
notify()deal with updated Conversations directly in the underlying Agent implementation, or use the
setListenerTask()to set a default Task if you wish to use the TaskManager to implement the Agent.
Inner Class Summary | |
public static class | FIPAOSAgent.TestAgent |
public class | FIPAOSAgent.TopLevelHandlerTask |
Field Summary | |
List | _registered_with List of Agents that this Agent is registered with |
String | _state Agent states: unknown, waiting, suspended, transit, initiated, active |
Constructor Summary | |
FIPAOSAgent(String platform_profile_location, String agent_name, String ownership) Constructor method to initialise an Agent. | |
FIPAOSAgent(String platform_profile_location, String agent_name, String ownership, boolean using_task_manager) Constructor method to initialise an Agent. |
Method Summary | |
void | activate() This method should be overriden by the FIPAOSAgent - it is invoked when the user of the local machine wishes it to do something (usually display a GUI) By default it does nothing |
void | forward(ACL acl) Forward an acl message out via the ConversationManagerImpl |
AgentID | getAID() Gets the AgentID of this Agent |
Conversation | getCurrentConversation(String conv) Method to retreive a conversation from the active list |
String | getHAP() Gets the local HAP name |
String | getLocalAMS() Returns the agent AID of the local platform AMS. |
AgentID | getLocalAMSAID() Returns the agent AID of the local platform AMS. |
String | getLocalDF() Returns the agent AID of the local platform DF. |
AgentID | getLocalDFAID() Returns the agent AID of the local platform DF. |
Conversation | getNewConversation(String protocol) Method to get a new Conversation object from the conversation manager given the protocol specified |
String | getOwnership() Returns the ownership id of the agent. |
PlatformProfile | getPlatformProfile() Gets the platform profile for this Agent |
AgentProfile | getProfile() Gets the profile for this Agent |
String | getState() Returns the state of the agent Currently, only 2 states might be returned: "unknown" and "active" |
boolean | isShutdown() Indicates if this Agent has been shutdown |
static void | main(String[] args) |
void | notify(Conversation conv) Conversation listener method to deal with conversations being sent by the planner scheduler. |
void | notify(Enumeration enum) Deals with multiple conversations at once - just calls notify( Conversation ) for each one. |
boolean | sendNotUnderstood(ACL orig_acl) Send a not understood message in response to the given ACL message |
boolean | sendNotUnderstood(ACL orig_acl, String reason) Send a not understood message in response to the given ACL message |
void | setMessageSender(MessageSender ms) Sets the MessageSender for this |
synchronized void | shutdown() Shutdown the Agent safely |
void | waitForPushLock() Blocks until the Agent is ready to receive messages/conversations |
Field Detail |
public List _registered_with
public String _state
Constructor Detail |
public FIPAOSAgent(String platform_profile_location, String agent_name, String ownership)
public FIPAOSAgent(String platform_profile_location, String agent_name, String ownership, boolean using_task_manager)
Method Detail |
public void activate()
By default it does nothing
public void forward(ACL acl)
public AgentID getAID()
public Conversation getCurrentConversation(String conv)
throws fipaos.agent.conversation.InvalidConversationIDException
public String getHAP()
public String getLocalAMS()
public AgentID getLocalAMSAID()
public String getLocalDF()
public AgentID getLocalDFAID()
public Conversation getNewConversation(String protocol)
throws fipaos.agent.conversation.UnknownProtocolException
public String getOwnership()
public PlatformProfile getPlatformProfile()
public AgentProfile getProfile()
public String getState()
public boolean isShutdown()
public static void main(String[] args)
public void notify(Conversation conv)
public void notify(Enumeration enum)
public boolean sendNotUnderstood(ACL orig_acl)
public boolean sendNotUnderstood(ACL orig_acl, String reason)
public void setMessageSender(MessageSender ms)
public synchronized void shutdown()
public void waitForPushLock()
Association Links |
to Class fipaos.mts.MessageSender
to Class fipaos.agent.task.TaskManager
to Class fipaos.agent.conversation.ConversationManager
to Class fipaos.mts.MTS
to Class fipaos.ont.fipa.fipaman.AgentID
to Class fipaos.agent.profile.AgentProfile
to Class fipaos.agent.profile.PlatformProfile
to Class fipaos.agent.profile.DatabaseProfile
to Class java.lang.String
to Class fipaos.agent.FIPAOSAgent.TopLevelHandlerTask
to Class java.lang.String
to Class java.util.List
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |