PkgAgentSystem
Class TerminateAgentConversation
java.lang.Object
|
+--PkgAgentSystem.Conversation
|
+--PkgAgentSystem.TerminateAgentConversation
- All Implemented Interfaces:
- Cloneable, Serializable
- public class TerminateAgentConversation
- extends Conversation
A conversation to terminate the agent. Allows only the agent itself to terminate it
(Message must be from itself).
Must be here as we don't have access to AgentBase.stopAgent
otherwise.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
TerminateAgentMessage
, Serialized Form
Methods inherited from class PkgAgentSystem.Conversation |
broadcastMessage, endConversation, fillInConversationData, getAgent, getConversationTypeID, getCounterpartConvID, getCounterpartIdentity, getOwnConvID, isInitiator, isRunning, newConversation, newConversation, sendMessage, setCounterpartConvID, setCounterpartIdentity, setInitiator, setOwnConvID, setShouldArchive, shouldArchive, startConversation, waitEnded |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
conversationTypeID
public static final long conversationTypeID
- The ID for this type of conversation (1).
TerminateAgentConversation
public TerminateAgentConversation(AgentBase myAgent)
- Creates a new conversation to terminate the agent.
- Parameters:
myAgent
- the agent this conversation belongs to
handleMessage
public boolean handleMessage(MessageType msg)
- Handle the message. Only
TerminateAgentMessage
is understood.
- Overrides:
handleMessage
in class Conversation
- Parameters:
msg
- the message to handle- Returns:
true
if this message was handled.- See Also:
TerminateAgentMessage
Submit a bug
Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.