jade.core.behaviours
Class SimpleBehaviour

java.lang.Object
  |
  +--jade.core.behaviours.Behaviour
        |
        +--jade.core.behaviours.SimpleBehaviour
Direct Known Subclasses:
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 07:03:44 $ $Revision: 2.1 $
Author:
Giovanni Rimassa - Universita` di Parma
See Also:
Serialized Form

Inner classes inherited from class jade.core.behaviours.Behaviour
Behaviour.RunnableChangedEvent
 
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, handle, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore
 
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