gridiq.agents.behaviours
Class ReceiveBusData

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by jade.core.behaviours.CyclicBehaviour
              extended by gridiq.agents.behaviours.ReceiveBusData
All Implemented Interfaces:
java.io.Serializable

public class ReceiveBusData
extends jade.core.behaviours.CyclicBehaviour

A behaviour that enables agents to receive simulation results from GridIQ. The JADE object2Agent communication method is used to receive the result.

Author:
colin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
jade.core.behaviours.Behaviour.RunnableChangedEvent
 
Field Summary
 
Fields inherited from class jade.core.behaviours.Behaviour
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
ReceiveBusData()
           
 
Method Summary
 void action()
          Takes the first object in the object2Agent queue, if it is of type BusResult the current simulation result for this agent is updated.
 
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, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiveBusData

public ReceiveBusData()
Method Detail

action

public void action()
Takes the first object in the object2Agent queue, if it is of type BusResult the current simulation result for this agent is updated.

Specified by:
action in class jade.core.behaviours.Behaviour