Package Jade.Behaviours.Players
Class ReceiveMessageBehaviour
java.lang.Object
jade.core.behaviours.Behaviour
Jade.Behaviours.Players.ReceiveMessageBehaviour
- All Implemented Interfaces:
jade.util.leap.Serializable
,Serializable
public class ReceiveMessageBehaviour
extends jade.core.behaviours.Behaviour
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
jade.core.behaviours.Behaviour.RunnableChangedEvent
-
Field Summary
Fields inherited from class jade.core.behaviours.Behaviour
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
-
Constructor Summary
-
Method Summary
Methods inherited from class jade.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
-
Constructor Details
-
ReceiveMessageBehaviour
public ReceiveMessageBehaviour()
-
-
Method Details
-
action
public void action()When a message of a move is received, the agents starts the PlayBehaviour, updating his grid with the new move from the opponent.- Specified by:
action
in classjade.core.behaviours.Behaviour
-
done
public boolean done()- Specified by:
done
in classjade.core.behaviours.Behaviour
-