|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.behaviours.Behaviour
jade.core.behaviours.SimpleBehaviour
vs.rationalagent.behaviour.ReceiveBehaviour
@Deprecated public abstract class ReceiveBehaviour
| Field Summary |
|---|
| Fields inherited from class jade.core.behaviours.Behaviour |
|---|
STATE_BLOCKED, STATE_READY, STATE_RUNNING |
| Constructor Summary | |
|---|---|
ReceiveBehaviour(jade.core.Agent a,
int millis,
jade.lang.acl.MessageTemplate mt)
Deprecated. Constructor |
|
| Method Summary | |
|---|---|
void |
action()
Deprecated. Called when behaviour is active |
boolean |
done()
Deprecated. Action is done when finished = true |
jade.lang.acl.ACLMessage |
getMessage()
Deprecated. Gets the message |
abstract boolean |
handle(jade.lang.acl.ACLMessage msg)
Deprecated. Defines how to handle this message. |
void |
onStart()
Deprecated. Called when behaviour starts |
void |
reset()
Deprecated. |
void |
reset(int dt)
Deprecated. |
| Methods inherited from class jade.core.behaviours.Behaviour |
|---|
actionWrapper, block, block, getBehaviourName, getDataStore, getExecutionState, isRunnable, onEnd, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReceiveBehaviour(jade.core.Agent a,
int millis,
jade.lang.acl.MessageTemplate mt)
a - The agent of this Behaviourmillis - timeout (-1 if no timeout)mt - Message Template for message to receive| Method Detail |
|---|
public void action()
action in class jade.core.behaviours.Behaviourpublic boolean done()
done in class jade.core.behaviours.Behaviourpublic jade.lang.acl.ACLMessage getMessage()
public abstract boolean handle(jade.lang.acl.ACLMessage msg)
msg - the received ACL message, or null if time out
public void onStart()
onStart in class jade.core.behaviours.Behaviourpublic void reset()
reset in class jade.core.behaviours.SimpleBehaviourpublic void reset(int dt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||