jade.core.behaviours
Class SimpleBehaviour

java.lang.Object
  |
  +--jade.core.behaviours.Behaviour
        |
        +--jade.core.behaviours.SimpleBehaviour
All Implemented Interfaces:
Serializable, java.io.Serializable
Direct Known Subclasses:
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: 2000-10-09 09:03:44 +0200 (lun, 09 ott 2000) $ $Revision: 1919 $
Author:
Giovanni Rimassa - Universita` di Parma
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jade.core.behaviours.Behaviour
myAgent
 
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, block, block, done, getBehaviourName, getDataStore, getParent, 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


JADE