Class IntelligentPlayBehaviour

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

public class IntelligentPlayBehaviour 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
    Behaviour of the intelligent player.
    void
    Method that decides the move of the player.
    boolean
     

    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

    • IntelligentPlayBehaviour

      public IntelligentPlayBehaviour()
  • Method Details

    • action

      public void action()
      Behaviour of the intelligent player. When a message is received from the arbiter (at any turn in the game) the player decides its move, then it sends it to the arbiter.
      Specified by:
      action in class jade.core.behaviours.Behaviour
    • decideMove

      public void decideMove()
      Method that decides the move of the player. Differentiates between the turns number with cases.
    • done

      public boolean done()
      Specified by:
      done in class jade.core.behaviours.Behaviour