Agent System POND 1.0 (1.7.2000)

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

Field Summary
static long conversationTypeID
          The ID for this type of conversation (1).
 
Fields inherited from class PkgAgentSystem.Conversation
conversationTypeID, uniquePartner
 
Constructor Summary
TerminateAgentConversation(AgentBase myAgent)
          Creates a new conversation to terminate the agent.
 
Method Summary
 boolean handleMessage(Message msg)
          Handle the message.
 
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
 

Field Detail

conversationTypeID

public static final long conversationTypeID
The ID for this type of conversation (1).
Constructor Detail

TerminateAgentConversation

public TerminateAgentConversation(AgentBase myAgent)
Creates a new conversation to terminate the agent.
Parameters:
myAgent - the agent this conversation belongs to
Method Detail

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

Agent System POND 1.0 (1.7.2000)

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.