|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjade.core.Agent
jason.infra.jade.JadeAg
jason.infra.jade.JadeAgArch
public class JadeAgArch
Implementation of the Jade Architecture to run Jason agents
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jade.core.Agent |
---|
jade.core.Agent.Interrupted |
Field Summary | |
---|---|
static java.lang.String |
dfName
name of the "jason agent" service in DF |
protected AgArch |
userAgArch
the user customisation of the architecture |
Fields inherited from class jason.infra.jade.JadeAg |
---|
ASKALL, ASKHOW, conversationIds, logger, running, rwid, TELLHOW, UNACHIEVE, UNTELL, UNTELLHOW |
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 | |
---|---|
JadeAgArch()
|
Method Summary | |
---|---|
void |
act(ActionExec action,
java.util.List<ActionExec> feedback)
Executes the action action and, when finished, add it back in feedback actions. |
boolean |
canSleep()
Returns true whether the agent can sleep according to the arch |
void |
checkMail()
Reads the agent's mailbox and adds messages into the agent's circumstance |
void |
doDelete()
|
java.lang.String |
getAgName()
Gets the agent's name |
RuntimeServicesInfraTier |
getRuntimeServices()
Gets an object with infrastructure runtime services |
void |
informCycleFinished(boolean breakpoint,
int cycle)
Informs the infrastructure tier controller that the agent has finished its reasoning cycle (used in sync mode). |
protected AgentParameters |
parseParameters()
|
java.util.List<Literal> |
perceive()
Gets the agent's perception as a list of Literals |
protected void |
setup()
|
void |
sleep()
Put the agent in "sleep" mode |
void |
stopAg()
Stops the agent |
protected void |
takeDown()
|
protected java.lang.Object |
translateContentToJason(jade.lang.acl.ACLMessage m)
returns the content of the message m and implements some pro-processing of the content, if necessary |
void |
wake()
Removes the agent from the "sleep" mode |
Methods inherited from class jason.infra.jade.JadeAg |
---|
aclToKqml, addAllAgsAsReceivers, ask, broadcast, isRunning, jasonToACL, kqmlToACL, sendMsg |
Methods inherited from class jade.core.Agent |
---|
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, 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 |
Methods inherited from interface jason.architecture.AgArchInfraTier |
---|
broadcast, isRunning, sendMsg |
Field Detail |
---|
public static java.lang.String dfName
protected AgArch userAgArch
Constructor Detail |
---|
public JadeAgArch()
Method Detail |
---|
protected void setup()
setup
in class jade.core.Agent
protected AgentParameters parseParameters() throws jason.mas2j.parser.ParseException, java.io.IOException
jason.mas2j.parser.ParseException
java.io.IOException
public void doDelete()
doDelete
in class JadeAg
protected void takeDown()
takeDown
in class jade.core.Agent
public void stopAg()
AgArchInfraTier
stopAg
in interface AgArchInfraTier
public void sleep()
AgArchInfraTier
sleep
in interface AgArchInfraTier
public void wake()
AgArchInfraTier
wake
in interface AgArchInfraTier
public java.lang.String getAgName()
AgArchInfraTier
getAgName
in interface AgArchInfraTier
public boolean canSleep()
AgArchInfraTier
canSleep
in interface AgArchInfraTier
public void checkMail()
AgArchInfraTier
checkMail
in interface AgArchInfraTier
protected java.lang.Object translateContentToJason(jade.lang.acl.ACLMessage m)
public java.util.List<Literal> perceive()
AgArchInfraTier
perceive
in interface AgArchInfraTier
public void act(ActionExec action, java.util.List<ActionExec> feedback)
AgArchInfraTier
act
in interface AgArchInfraTier
public RuntimeServicesInfraTier getRuntimeServices()
AgArchInfraTier
getRuntimeServices
in interface AgArchInfraTier
public void informCycleFinished(boolean breakpoint, int cycle)
breakpoint is true in case the agent selected one plan with the "breakpoint" annotation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |