teamSpace.agent
Class CheckForActionsBehaviour

java.lang.Object
  extended byOneShotBehaviour
      extended byteamSpace.agent.CheckForActionsBehaviour

public class CheckForActionsBehaviour
extends OneShotBehaviour

This behaviour is a behaviour (state) in the FSMBehaviour (final-state-machine) described by the class TeamSpacePSBehaviour. In this state one finds out if there are any actions or PSMs that are ready to execute. If there are one or more actions and/or one or more PSMs the state transits to the behaviour (state) HandleActionsBehaviour, else the problem solving process is over and the state transits to the behaviour (state) EndProblemSolvingBehaviour.

See Also:
Serialized Form

Constructor Summary
CheckForActionsBehaviour(Agent a, java.lang.String teamID)
          The constructor calls the super-constructor
 
Method Summary
 void action()
          The method checks if there are any actions or PSMs that are ready to be executed or composed.
 int onEnd()
          The method resets this behaviour and returns the transition (for the FSM)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckForActionsBehaviour

public CheckForActionsBehaviour(Agent a,
                                java.lang.String teamID)
The constructor calls the super-constructor

Parameters:
a - The agent which is the owner of this behaviour
Method Detail

action

public void action()
The method checks if there are any actions or PSMs that are ready to be executed or composed. The found actions and PSMs are set in the owner agent (of this behaviour) as processing actions and processing PSMs


onEnd

public int onEnd()
The method resets this behaviour and returns the transition (for the FSM)

Returns:
The transition/result from this behaviour (state)