public abstract class SSResponderDispatcher extends CyclicBehaviour
createResponder()
abstract method
that developers must implement.SSContractNetResponder
,
SSIteratedContractNetResponder
,
SSIteratedAchieveREtResponder
,
Serialized FormConstructor 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 . |
done
reset
block, block, getAgent, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore
public SSResponderDispatcher(Agent a, MessageTemplate tpl)
public final void action()
Behaviour
Behaviour
subclasses 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 Behaviour
CompositeBehaviour
protected 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)