Package Jade.Agents
Class IntelligentPlayerAgent
java.lang.Object
jade.core.Agent
Jade.Agents.Player
Jade.Agents.IntelligentPlayerAgent
- All Implemented Interfaces:
jade.core.TimerListener
,jade.util.leap.Serializable
,Serializable
,Runnable
- 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
-
Method Summary
Methods inherited from class Jade.Agents.Player
getArbiterAID, getGrid, getOpponentAID, getPlayerAID, getRound, getStart, getStupid, getSymbol, getTotalRounds, setArbiter, setGrid, setOpponent, setRound, setStart, setStupid, setSymbol, setTotalRounds
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
-
Constructor Details
-
IntelligentPlayerAgent
public IntelligentPlayerAgent()
-
-
Method Details
-
setup
protected void setup()Setups the agent for the game. In the following order the agent: - Initializes the grid - Sets himself as NOT-Stupid (to differenciate this agent from the stupid 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 classjade.core.Agent
-
takeDown
protected void takeDown()- Overrides:
takeDown
in classjade.core.Agent
-