ibspan.ecap.merchant.shopdecisions.negotiationpreparation
Class NegotiationTemplateUpdater

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

public class NegotiationTemplateUpdater
extends jade.core.behaviours.SimpleBehaviour

A behaviour that periodically runs negotiation template tasks. It runs tasks for different products one after another, each in its own action method call, waiting a certain time (specified in the constructor) between consective calls. After the behaviour goes through all the registered products it starts from the beginning.

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
NegotiationTemplateUpdater(jade.core.Agent myAgent, long secondsBetweenUpdates, long secondsBetweenCycles, boolean repeat)
          Constructor
 
Method Summary
 void action()
           
 boolean 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

NegotiationTemplateUpdater

public NegotiationTemplateUpdater(jade.core.Agent myAgent,
                                  long secondsBetweenUpdates,
                                  long secondsBetweenCycles,
                                  boolean repeat)
Constructor

Parameters:
myAgent - The agent this behaviour must belong to.
secondsBetweenUpdates - The amount of time to block the behaviour for between consective product template update calls.
Method Detail

action

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

done

public boolean done()
Specified by:
done in class jade.core.behaviours.Behaviour