ibspan.ecap.merchant.shopdecisions
Class ReceivingWrapper

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by jade.core.behaviours.CyclicBehaviour
              extended by ibspan.ecap.merchant.shopdecisions.ReceivingWrapper
All Implemented Interfaces:
java.io.Serializable

public class ReceivingWrapper
extends jade.core.behaviours.CyclicBehaviour

A behaviour for receiving the message specified by the given template passing it to the DataStore of an appropriate handling behaviour created by the createHandlerBehaviour() method and putting that behaviour into the agent's queue. The default implementation of the createHandlerBehaviour() creates no behaviour, hence no handler is scheduled after receiving a message. To specify the behaviour to handle the received messages one should subclass ReceivingWrapper class overriding createHandlerBehaviour().

Author:
Micha³ Drozdowicz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jade.core.behaviours.Behaviour
STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
ReceivingWrapper(jade.core.Agent myAgent, jade.lang.acl.MessageTemplate template, java.lang.Object dataStoreKey)
           
 
Method Summary
 void action()
           
 
Methods inherited from class jade.core.behaviours.CyclicBehaviour
done
 
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
 
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, block, getBehaviourName, getDataStore, getExecutionState, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceivingWrapper

public ReceivingWrapper(jade.core.Agent myAgent,
                        jade.lang.acl.MessageTemplate template,
                        java.lang.Object dataStoreKey)
Method Detail

action

public void action()
Specified by:
action in class jade.core.behaviours.Behaviour