Package jade.core.behaviours
Class CyclicBehaviour
- java.lang.Object
-
- jade.core.behaviours.Behaviour
-
- jade.core.behaviours.SimpleBehaviour
-
- jade.core.behaviours.CyclicBehaviour
-
- All Implemented Interfaces:
Serializable,Serializable
- Direct Known Subclasses:
GatewayBehaviour,IntrospectionServer,OntologyServer,ReceiveCyclicBehaviour,SensorManager,SSResponderDispatcher
public abstract class CyclicBehaviour extends SimpleBehaviour
Atomic behaviour that must be executed forever. This abstract class can be extended by application programmers to create behaviours that keep executing continuously (e.g. simple reactive behaviours).- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
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
Constructors Constructor Description CyclicBehaviour()Default constructor.CyclicBehaviour(Agent a)This constructor sets the owner agent for thisCyclicBehaviour.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandone()This is the method that makesCyclicBehaviourcyclic, because it always returnsfalse.-
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
-
Methods inherited from class jade.core.behaviours.Behaviour
action, actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
-
-
-
-
Constructor Detail
-
CyclicBehaviour
public CyclicBehaviour()
Default constructor. It does not set the owner agent.
-
CyclicBehaviour
public CyclicBehaviour(Agent a)
This constructor sets the owner agent for thisCyclicBehaviour.- Parameters:
a- The agent this behaviour must belong to.
-
-