jade.core.behaviours
Class SimpleBehaviour

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AMSSubscriber, CyclicBehaviour, 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: 2000-10-09 09:03:44 +0200 (lun, 09 ott 2000) $ $Revision: 1919 $
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
SimpleBehaviour()
          Default constructor.
SimpleBehaviour(Agent a)
          This constructor sets the owner agent for this behaviour.
 
Method Summary
 void reset()
          Resets a SimpleBehaviour.
 
Methods inherited from class jade.core.behaviours.Behaviour
action, actionWrapper, block, block, done, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.
Method Detail

reset

public void reset()
Resets a SimpleBehaviour.

Overrides:
reset in class Behaviour