Package Jade.Agents

Class StupidPlayerAgent

java.lang.Object
jade.core.Agent
Jade.Agents.Player
Jade.Agents.StupidPlayerAgent
All Implemented Interfaces:
jade.core.TimerListener, jade.util.leap.Serializable, Serializable, Runnable

public class StupidPlayerAgent extends Player
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class jade.core.Agent

    jade.core.Agent.Interrupted
  • Field Summary

    Fields inherited from class jade.core.Agent

    AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Setups the agent for the game.
    protected void
     

    Methods inherited from class jade.core.Agent

    addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getProperty, getQueueSize, getState, here, isAlive, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, waitUntilStarted, write

    Methods inherited from class java.lang.Object

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

    • StupidPlayerAgent

      public StupidPlayerAgent()
  • Method Details

    • setup

      protected void setup()
      Setups the agent for the game. In the following order the agent: - Initializes the grid - Sets himself as Stupid (to differenciate this agent from the intelligent one) - Regisers the agent in the DF - Sets himself ready to receive his opponent and start the game - Periodically checks if there's a winner or the game is over
      Overrides:
      setup in class jade.core.Agent
    • takeDown

      protected void takeDown()
      Overrides:
      takeDown in class jade.core.Agent