|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjade.core.Agent
jade.gui.GuiAgent
vs.rationalagent.RationalAgent
vs.worldagent.BasicWorldAgent
public class BasicWorldAgent
World Agent
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jade.core.Agent |
---|
jade.core.Agent.Interrupted |
Field Summary | |
---|---|
static java.lang.String |
PROLOG_FILE
|
static int |
SHOWGRAPH
|
Fields inherited from class vs.rationalagent.RationalAgent |
---|
CHARACTER_SERVICE, CLEAR_KB, CONSULT, EXIT, LOAD_KB, PLOT_SERVICE, QUERY_KB, SAVE_KB, TEST_KB, TRACER_SERVICE, WORLD_SERVICE |
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 |
Constructor Summary | |
---|---|
BasicWorldAgent()
|
Method Summary | |
---|---|
IOperatorScheduler |
getOperatorScheduler()
Retrieves the Operator Scheduler |
jade.core.AID |
getPlotAgent()
Retrieves the Plot Agent that is registered to the World Agent |
int |
getTime()
Gets the world time (in time steps) |
boolean |
handlePerformOperator(PerformOperator po)
Handle incoming operators |
void |
narrate(java.lang.String txt)
|
void |
pulse(int roundNumber)
Start the next time step |
void |
setPlotAgent(jade.core.AID agent)
Sets the Plot Agent registering to the World Agent |
void |
setup()
override jade.core.Agent.setup |
Methods inherited from class vs.rationalagent.RationalAgent |
---|
addEventListener, findServiceType, fireEvent, genCID, getAgent, getCodec, getKnowledgeManager, getOntology, getSniffer, getStoryDomain, getTracer, removeEventListener, setTracer, takeDown, trace, trace, writeConsole, writeGui |
Methods inherited from class jade.gui.GuiAgent |
---|
postGuiEvent |
Methods inherited from class jade.core.Agent |
---|
addBehaviour, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setQueueSize, waitUntilStarted, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface vs.rationalagent.IRationalAgent |
---|
getKnowledgeManager, writeGui |
Methods inherited from interface vs.IAgent |
---|
addEventListener, findServiceType, fireEvent, genCID, getAgent, getCodec, getLocalName, getOntology, getTracer, removeEventListener, setTracer, trace, trace |
Field Detail |
---|
public static final int SHOWGRAPH
public static final java.lang.String PROLOG_FILE
Constructor Detail |
---|
public BasicWorldAgent()
Method Detail |
---|
public IOperatorScheduler getOperatorScheduler()
IWorldAgent
getOperatorScheduler
in interface IWorldAgent
public jade.core.AID getPlotAgent()
IWorldAgent
getPlotAgent
in interface IWorldAgent
public int getTime()
IRationalAgent
getTime
in interface IRationalAgent
public boolean handlePerformOperator(PerformOperator po)
IWorldAgent
handlePerformOperator
in interface IWorldAgent
public void pulse(int roundNumber)
IWorldAgent
pulse
in interface IWorldAgent
roundNumber
- an int representing the round number (given by Plot Agent's NextRound object)public void setPlotAgent(jade.core.AID agent)
IWorldAgent
setPlotAgent
in interface IWorldAgent
public void narrate(java.lang.String txt)
public void setup()
setup
in class RationalAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |