Overview  Package   Class  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

sajas.proto
Class SSResponderDispatcher
java.lang.Object
  sajas.core.behaviours.Behaviour
      sajas.core.behaviours.CyclicBehaviour
          sajas.proto.SSResponderDispatcher
All Implemented Interfaces:
jade.util.leap.Serializable, Serializable

public abstract class SSResponderDispatcher
extends CyclicBehaviour
Note: this class has been re-implemented to redirect the use of the agent, behaviour and conversation list classes to SAJaS versions.
Author:
hlc
See Also:
jade.proto.SSResponderDispatcher

Nested classes/interfaces inherited from class sajas.core.behaviours.Behaviour
Behaviour.RunnableChangedEvent
Fields inherited from class sajas.core.behaviours.Behaviour
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
Constructor Summary
SSResponderDispatcher(Agent a, jade.lang.acl.MessageTemplate tpl)
Method Summary
void
action()
          Runs the behaviour.
protected void
addBehaviour(Behaviour b)
protected abstract Behaviour
createResponder(jade.lang.acl.ACLMessage initiationMsg)
          This method is responsible for creating a suitable Behaviour acting as responder in the interaction protocol initiated by message initiationMsg.
Methods inherited from class sajas.core.behaviours.CyclicBehaviour
done
Methods inherited from class sajas.core.behaviours.Behaviour
actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onEnd, onStart, reset, 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
SSResponderDispatcher
public SSResponderDispatcher(Agent a,
                             jade.lang.acl.MessageTemplate tpl)
Method Detail
action
public final void action()
Description copied from class: Behaviour
Runs the behaviour. This abstract method must be implemented by Behavioursubclasses to perform ordinary behaviour duty. An agent schedules its behaviours calling their action() method; since all the behaviours belonging to the same agent are scheduled cooperatively, this method must not enter in an endless loop and should return as soon as possible to preserve agent responsiveness. To split a long and slow task into smaller section, recursive behaviour aggregation may be used.
Overrides:
action in class Behaviour

createResponder
protected abstract Behaviour createResponder(jade.lang.acl.ACLMessage initiationMsg)
This method is responsible for creating a suitable Behaviour acting as responder in the interaction protocol initiated by message initiationMsg.
Parameters:
initiationMsg - The message initiating the interaction protocol

addBehaviour
protected void addBehaviour(Behaviour b)

Overview  Package   Class  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Java API documentation generated with DocFlex/Doclet 1.6.1 using JavadocPro template set.
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc, which is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com