Package Jade.Behaviours.Players
Class ReceiveOpponentBehaviour
java.lang.Object
jade.core.behaviours.Behaviour
jade.core.behaviours.SimpleBehaviour
jade.core.behaviours.CyclicBehaviour
Jade.Behaviours.Players.ReceiveOpponentBehaviour
- All Implemented Interfaces:
jade.util.leap.Serializable
,Serializable
public class ReceiveOpponentBehaviour
extends jade.core.behaviours.CyclicBehaviour
- 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
Modifier and TypeMethodDescriptionvoid
action()
This behaviour is essential for the player to understand who is going to be its arbiter and opponent for the game.Methods inherited from class jade.core.behaviours.CyclicBehaviour
done
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
-
Constructor Details
-
ReceiveOpponentBehaviour
public ReceiveOpponentBehaviour(boolean stupid)
-
-
Method Details
-
action
public void action()This behaviour is essential for the player to understand who is going to be its arbiter and opponent for the game. When a message of a game proposal is received from the arbiter, the player accepts the proposal and schedules the PlayBehaviour- Specified by:
action
in classjade.core.behaviours.Behaviour
-