CoPS.agents
Class CheckCfpsBehaviour

java.lang.Object
  extended byOneShotBehaviour
      extended byCoPS.agents.CheckCfpsBehaviour

public class CheckCfpsBehaviour
extends OneShotBehaviour

This class implements a behaviour which checks all the incoming cfp-messages received by the owner agent of this behaviour. And a parallel behaviour is added to the agent which handles all of the cfp-messages in parallel.

See Also:
Serialized Form

Constructor Summary
CheckCfpsBehaviour(Agent agent)
          The constructor.
 
Method Summary
 void action()
          This method filters all of the cfp-messages from the agent's pool of messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckCfpsBehaviour

public CheckCfpsBehaviour(Agent agent)
The constructor.

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

action

public void action()
This method filters all of the cfp-messages from the agent's pool of messages. Each of the messages are handled by one of the sub-behaviours of a parallel behaviour.