Agent System POND 1.2 (28.2.2002)

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

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

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(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

Agent System POND 1.2 (28.2.2002)

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.