teamSpace.agent
Class TeamSpaceAgentBehaviour

java.lang.Object
  extended byAchieveREResponder
      extended byteamSpace.agent.TeamSpaceAgentBehaviour

public class TeamSpaceAgentBehaviour
extends AchieveREResponder

The name of this class should be changed. It will encapsulate all of the TeamSpaceAgent- behaviour from initilizing the team space till the result of the problem solving is present.

See Also:
Serialized Form

Constructor Summary
TeamSpaceAgentBehaviour(Agent agent, MessageTemplate template, DataStore ds)
          The constructor calls the superconstructor and register a behaviour that should handle the prepareResultNotification part of the conversation (protocol).
 
Method Summary
 int onEnd()
          Information from the last execution of this behaviour is reset and the behaviour is added to the agent again
protected  ACLMessage prepareResponse(ACLMessage request)
          This method is an extention to the same method of the superclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamSpaceAgentBehaviour

public TeamSpaceAgentBehaviour(Agent agent,
                               MessageTemplate template,
                               DataStore ds)
The constructor calls the superconstructor and register a behaviour that should handle the prepareResultNotification part of the conversation (protocol).

Parameters:
agent - The agent that this behaviour belongs to.
template - A template for which messages it should accept as part of this behaviour's protocol.
Method Detail

prepareResponse

protected ACLMessage prepareResponse(ACLMessage request)
This method is an extention to the same method of the superclass.

Parameters:
request - The request message received
Returns:
The response to the request

onEnd

public int onEnd()
Information from the last execution of this behaviour is reset and the behaviour is added to the agent again

Returns:
The transition from this state.