Package jade.core.behaviours
Class SimpleBehaviour
- java.lang.Object
-
- jade.core.behaviours.Behaviour
-
- jade.core.behaviours.SimpleBehaviour
-
- All Implemented Interfaces:
Serializable,Serializable
- Direct Known Subclasses:
AMSSubscriber,CyclicBehaviour,MsgReceiver,OneShotBehaviour,SimpleAchieveREInitiator,SimpleAchieveREResponder,TickerBehaviour,WakerBehaviour
public abstract class SimpleBehaviour extends Behaviour
An atomic behaviour. This abstract class models behaviours that are made by a single, monolithic task and cannot be interrupted.- 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 SimpleBehaviour()Default constructor.SimpleBehaviour(Agent a)This constructor sets the owner agent for this behaviour.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreset()Resets aSimpleBehaviour.-
Methods inherited from class jade.core.behaviours.Behaviour
action, actionWrapper, block, block, done, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
-
-
-
-
Constructor Detail
-
SimpleBehaviour
public SimpleBehaviour()
Default constructor. It does not set the owner agent for this behaviour.
-
SimpleBehaviour
public SimpleBehaviour(Agent a)
This constructor sets the owner agent for this behaviour.- Parameters:
a- The agent this behaviour belongs to.
-
-