Class WaitProposalArbiterBehaviour

java.lang.Object
jade.core.behaviours.Behaviour
Jade.Behaviours.Arbiter.WaitProposalArbiterBehaviour
All Implemented Interfaces:
jade.util.leap.Serializable, Serializable

public class WaitProposalArbiterBehaviour 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    When the arbiter receives the message from the Master Arbiter regarding a game proposal (ACLMessage.PROPOSE), it can now start to arbiter the game.
    boolean
    Returns true if the proposal has been received, false otherwise

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WaitProposalArbiterBehaviour

      public WaitProposalArbiterBehaviour()
  • Method Details

    • action

      public void action()
      When the arbiter receives the message from the Master Arbiter regarding a game proposal (ACLMessage.PROPOSE), it can now start to arbiter the game. First of all, it sends a PROPOSE message to the two players, asking them to start a game, giving them their symbols and opponents information. He then waits for the two players to respond to the proposal and to the moves with the GameToCheckBehaviour.
      Specified by:
      action in class jade.core.behaviours.Behaviour
    • done

      public boolean done()
      Returns true if the proposal has been received, false otherwise
      Specified by:
      done in class jade.core.behaviours.Behaviour
      Returns:
      boolean