|
||||||||||
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.plotagent.BasicPlotAgent
public class BasicPlotAgent
Plot Monitor agent
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jade.core.Agent |
---|
jade.core.Agent.Interrupted |
Field Summary | |
---|---|
static int |
GETSUGGESTIONS
|
static java.lang.String |
PROLOG_FILE
|
static int |
SHOWFABULA
|
static int |
STATUS_READY
|
static int |
STATUS_STORY_OVER
|
static int |
STATUS_WAITING
|
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 | |
---|---|
BasicPlotAgent()
|
Method Summary | |
---|---|
void |
buildAgentRelations()
Builds a network of relations with other agents using the Directory Facilitator (DF) to subscribe to services the Plot Agent is interested in. |
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 |
ICharacterManager |
getCharacterManager()
Retrieves the Character Manager |
IFabulaBuilder |
getFabulaBuilder()
Retrieves the Fabula Builder |
IInspirationModule |
getInspirationModule()
Retrieves the Inspiration module |
IPerceptionManager |
getPerceptionManager()
Retrieves the Perception Manager |
IPlotGoalManager |
getPlotGoalManager()
Retrieves the Plot Goal Manager |
IThreadManager |
getThreadManager()
Retrieves the Episode Manager |
int |
getTime()
Gets the world time (in time steps) |
jade.core.AID |
getWorldAgent()
Getter for World Agent |
void |
handleIncomingAction(StoryAction act)
If the Plot Agent receives an Action from a character agent, this method handles this by sending a REQUEST to the World Agent to execute the Action. |
void |
handleSubscription(jade.domain.FIPAAgentManagement.DFAgentDescription dfds)
Deals with incoming subscriptions or UNsubscriptions from both world agents and character agents. |
void |
nextRound()
Starts the next time step |
void |
setup()
override jade.core.Agent.setup |
void |
setWorldAgent(jade.core.AID worldAgent)
Setter for World Agent |
void |
takeDown()
overrides jade.core.Agent.takeDown |
Methods inherited from class vs.rationalagent.RationalAgent |
---|
addEventListener, findServiceType, fireEvent, genCID, getAgent, getCodec, getKnowledgeManager, getOntology, getSniffer, getStoryDomain, getTracer, removeEventListener, setTracer, 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 STATUS_WAITING
public static final int STATUS_READY
public static final int STATUS_STORY_OVER
public static final int SHOWFABULA
public static final int GETSUGGESTIONS
public static final java.lang.String PROLOG_FILE
Constructor Detail |
---|
public BasicPlotAgent()
Method Detail |
---|
public void buildAgentRelations()
public java.util.Set<FabulaCausality> explainCausalities()
IExplainable
explainCausalities
in interface IExplainable
public java.util.Set<FabulaElement> explainElements()
IExplainable
explainElements
in interface IExplainable
public ICharacterManager getCharacterManager()
IPlotAgent
getCharacterManager
in interface IPlotAgent
public IFabulaBuilder getFabulaBuilder()
IPlotAgent
getFabulaBuilder
in interface IPlotAgent
public IInspirationModule getInspirationModule()
IPlotAgent
getInspirationModule
in interface IPlotAgent
public IPerceptionManager getPerceptionManager()
IPlotAgent
getPerceptionManager
in interface IPlotAgent
public IPlotGoalManager getPlotGoalManager()
IPlotAgent
getPlotGoalManager
in interface IPlotAgent
public IThreadManager getThreadManager()
IPlotAgent
getThreadManager
in interface IPlotAgent
public int getTime()
IRationalAgent
getTime
in interface IRationalAgent
public jade.core.AID getWorldAgent()
getWorldAgent
in interface IPlotAgent
public void handleIncomingAction(StoryAction act)
handleIncomingAction
in interface IPlotAgent
act
- the Action sent by the character agentpublic void handleSubscription(jade.domain.FIPAAgentManagement.DFAgentDescription dfds)
handleSubscription
in interface IPlotAgent
dfds
- the agent description of the agent whose presence the plot agent is subscribed topublic void nextRound()
IPlotAgent
nextRound
in interface IPlotAgent
public void setup()
setup
in class RationalAgent
public void setWorldAgent(jade.core.AID worldAgent)
setWorldAgent
in interface IPlotAgent
worldAgent
- the AID of the World Agentpublic void takeDown()
RationalAgent
takeDown
in class RationalAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |