public abstract class SSResponderDispatcher extends CyclicBehaviour
createResponder() abstract method
that developers must implement.SSContractNetResponder,
SSIteratedContractNetResponder,
SSIteratedAchieveREtResponder,
Serialized Form| Constructor and Description |
|---|
SSResponderDispatcher(Agent a,
MessageTemplate tpl) |
| Modifier and Type | Method and Description |
|---|---|
void |
action()
Runs the behaviour.
|
protected void |
addBehaviour(Behaviour b) |
protected abstract Behaviour |
createResponder(ACLMessage initiationMsg)
This method is responsible for creating a suitable
Behaviour acting as responder
in the interaction protocol initiated by message initiationMsg. |
doneresetblock, block, getAgent, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStorepublic SSResponderDispatcher(Agent a, MessageTemplate tpl)
public final void action()
BehaviourBehavioursubclasses 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.action in class BehaviourCompositeBehaviourprotected abstract Behaviour createResponder(ACLMessage initiationMsg)
Behaviour acting as responder
in the interaction protocol initiated by message initiationMsg.initiationMsg - The message initiating the interaction protocolprotected void addBehaviour(Behaviour b)