ibspan.ecap.merchant.shopdecisions.forecasting
Class ForecastDispatcher

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.forecasting.ForecastDispatcher
All Implemented Interfaces:
java.io.Serializable

public class ForecastDispatcher
extends jade.core.behaviours.CyclicBehaviour

A behaviour aquiring completed forecast results and dispatching them to the Warehouse Agent. Should be run in a separate thread, because while waiting for completed tasks it blocks the running thread.

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
ForecastDispatcher(jade.core.Agent myAgent, jade.core.AID warehouseAgent)
           
 
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

ForecastDispatcher

public ForecastDispatcher(jade.core.Agent myAgent,
                          jade.core.AID warehouseAgent)
Method Detail

action

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