jade.core.behaviours
Class CyclicBehaviour

java.lang.Object
  |
  +--jade.core.behaviours.Behaviour
        |
        +--jade.core.behaviours.SimpleBehaviour
              |
              +--jade.core.behaviours.CyclicBehaviour

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: 2000/09/12 13:24:02 $ $Revision: 2.0 $
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
CyclicBehaviour()
          Default constructor.
CyclicBehaviour(Agent a)
          This constructor sets the owner agent for this CyclicBehaviour.
 
Method Summary
 boolean done()
          This is the method that makes CyclicBehaviour cyclic, because it always returns false.
 
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
 
Methods inherited from class jade.core.behaviours.Behaviour
action, actionWrapper, block, block, 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

CyclicBehaviour

public CyclicBehaviour()
Default constructor. It does not set the owner agent.

CyclicBehaviour

public CyclicBehaviour(Agent a)
This constructor sets the owner agent for this CyclicBehaviour.
Parameters:
a - The agent this behaviour must belong to.
Method Detail

done

public final boolean done()
This is the method that makes CyclicBehaviour cyclic, because it always returns false.
Overrides:
done in class Behaviour
Returns:
Always false.