|
||||||||||
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.characteragent.BasicCharacterAgent
public class BasicCharacterAgent
Character Agent
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jade.core.Agent |
---|
jade.core.Agent.Interrupted |
Field Summary | |
---|---|
static int |
CREATEPLAN
|
static int |
DOACTION
|
static java.lang.String |
PROLOG_FILE
|
static int |
SAVEEPISODICMEMORY
|
static int |
SET_CHARACTER_URI
|
static int |
SETINTENTIONS
|
static int |
SHOWACTIONS
|
static int |
SHOWAGENTID
|
static int |
SHOWPLANS
|
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 | |
---|---|
BasicCharacterAgent()
|
Method Summary | |
---|---|
java.util.Set<FabulaCausality> |
explainCausalities()
Explain the motivations, the causalities or enablements that the interfaced class produced. |
java.util.Set<FabulaElement> |
explainElements()
Explain the fabula elements that the interfaced class produced |
CharacterProcess |
getCharacterProcess()
|
java.lang.String |
getCharacterURI()
Get the AgentID this character agent has in the World |
EpisodicMemory |
getEpisodicMemory()
|
IInterpretationModule |
getInterpretationModule()
|
jade.core.AID |
getPlotAgent()
Retrieves the Plot Agent that is registered to the Rational Agent |
int |
getTime()
Return the time (in rounds) |
void |
handleCharacterInfo(CharacterInfo c)
Handle CharacterInfo's by setting AgentID to the name given |
void |
handleIncomingSetting(IncomingSetting is)
Handle an incoming setting by adding it to the KB. |
void |
handleNextRound(NextRound n)
Next round has no consequences yet. |
void |
handleOperatorResult(OperatorResult or)
Handle an incoming result of an operator (finished, aborted, etc) |
void |
handlePerception(StoryPerception p)
Handle a perception by adding it to the KB if it is positive and deleting it if it is negative. |
StoryAction |
handleSelectAction()
Handles the selection of an action to perform. |
boolean |
setCharacterURI(java.lang.String characterURI)
Set the AgentID this character agent has in the World |
void |
setPlotAgent(jade.core.AID agent)
Sets the Plot Agent registering to the Rational 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 SET_CHARACTER_URI
public static final int SHOWAGENTID
public static final int SHOWACTIONS
public static final int DOACTION
public static final int SHOWPLANS
public static final int SETINTENTIONS
public static final int CREATEPLAN
public static final int SAVEEPISODICMEMORY
public static final java.lang.String PROLOG_FILE
Constructor Detail |
---|
public BasicCharacterAgent()
Method Detail |
---|
public java.lang.String getCharacterURI()
ICharacterAgent
getCharacterURI
in interface ICharacterAgent
public CharacterProcess getCharacterProcess()
getCharacterProcess
in interface ICharacterAgent
public EpisodicMemory getEpisodicMemory()
getEpisodicMemory
in interface ICharacterAgent
public IInterpretationModule getInterpretationModule()
getInterpretationModule
in interface ICharacterAgent
public jade.core.AID getPlotAgent()
ICharacterAgent
getPlotAgent
in interface ICharacterAgent
public int getTime()
getTime
in interface IRationalAgent
public void handleCharacterInfo(CharacterInfo c)
ICharacterAgent
handleCharacterInfo
in interface ICharacterAgent
public void handleIncomingSetting(IncomingSetting is)
handleIncomingSetting
in interface ICharacterAgent
public void handleNextRound(NextRound n)
handleNextRound
in interface ICharacterAgent
public void handleOperatorResult(OperatorResult or)
handleOperatorResult
in interface ICharacterAgent
public void handlePerception(StoryPerception p)
handlePerception
in interface ICharacterAgent
public StoryAction handleSelectAction()
handleSelectAction
in interface ICharacterAgent
public boolean setCharacterURI(java.lang.String characterURI)
ICharacterAgent
setCharacterURI
in interface ICharacterAgent
public void setPlotAgent(jade.core.AID agent)
ICharacterAgent
setPlotAgent
in interface ICharacterAgent
public java.util.Set<FabulaCausality> explainCausalities()
IExplainable
explainCausalities
in interface IExplainable
public java.util.Set<FabulaElement> explainElements()
IExplainable
explainElements
in interface IExplainable
public void setup()
setup
in class RationalAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |