PkgAgentSystem
Class TerminateAgentConversation
java.lang.Object
|
+--PkgAgentSystem.Conversation
|
+--PkgAgentSystem.TerminateAgentConversation
- 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,
getAgent,
getConversationTypeID,
getCounterpartConvID,
getCounterpartIdentity,
getOwnConvID,
isInitiator,
isRunning,
newConversation,
sendMessage,
setCounterpartConvID,
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(Message msg)
- Handle the message. Only
TerminateAgentMessage
is understood.
- Parameters:
msg
- the message to handle- Returns:
true
if this message was handled.- Overrides:
- handleMessage in class Conversation
- See Also:
TerminateAgentMessage
Submit a bug
Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.