|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjade.core.behaviours.Behaviour
jade.core.behaviours.SimpleBehaviour
ibspan.ecap.merchant.shopdecisions.negotiationpreparation.NegotiationTemplateUpdater
public class NegotiationTemplateUpdater
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.
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 |
---|
public NegotiationTemplateUpdater(jade.core.Agent myAgent, long secondsBetweenUpdates, long secondsBetweenCycles, boolean repeat)
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 |
---|
public void action()
action
in class jade.core.behaviours.Behaviour
public boolean done()
done
in class jade.core.behaviours.Behaviour
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |