CoPS.agents
Class PrepareResultBehaviour

java.lang.Object
  extended byFSMBehaviour
      extended byCoPS.agents.PrepareResultBehaviour

public class PrepareResultBehaviour
extends FSMBehaviour

This class represents a finite state machine behaviour. Modified by Kari Roessland. preparing the results of the requested task. It represents the PREPARE_RESULT_NOTIFICATION state of HandleProblemSolvingRequestBehaviour that extends AchieveREResponder. This behaviour shares the datastore with the HandleProblemSovlingRequestBehaviour.

See Also:
Serialized Form

Field Summary
static int DECOMPOSITION_FAILED
           
static int PROBLEM_SOLVING_FAILED
           
static int RESPONSE_FAILED
           
static int SUCCESS
           
static int TEAM_FORMATION_FAILED
           
 
Constructor Summary
PrepareResultBehaviour(Agent agent)
          The constructor only calls the super-class(FSMBehaviour) constructor.
 
Method Summary
 int onEnd()
          This method is called when the behaviour has finished.
 void onStart()
          This method is called when the behaviour is started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final int SUCCESS
See Also:
Constant Field Values

DECOMPOSITION_FAILED

public static final int DECOMPOSITION_FAILED
See Also:
Constant Field Values

TEAM_FORMATION_FAILED

public static final int TEAM_FORMATION_FAILED
See Also:
Constant Field Values

PROBLEM_SOLVING_FAILED

public static final int PROBLEM_SOLVING_FAILED
See Also:
Constant Field Values

RESPONSE_FAILED

public static final int RESPONSE_FAILED
See Also:
Constant Field Values
Constructor Detail

PrepareResultBehaviour

public PrepareResultBehaviour(Agent agent)
The constructor only calls the super-class(FSMBehaviour) constructor.

Parameters:
agent - The owner of this behaviour.
Method Detail

onStart

public void onStart()
This method is called when the behaviour is started. Modified by Kari Roessland.


onEnd

public int onEnd()
This method is called when the behaviour has finished. Modified by Kari Roessland.

Returns:
The transition from this behaviour