Package jason.infra.jade
Class JadeExecutionControl
java.lang.Object
jade.core.Agent
jason.infra.jade.JadeAg
jason.infra.jade.JadeExecutionControl
- All Implemented Interfaces:
jade.core.TimerListener
,jade.util.leap.Serializable
,ExecutionControlInfraTier
,java.io.Serializable
,java.lang.Runnable
public class JadeExecutionControl extends JadeAg implements ExecutionControlInfraTier
Concrete execution control implementation for Jade infrastructure.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class jade.core.Agent
jade.core.Agent.Interrupted
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
controllerOntology
private java.util.concurrent.ExecutorService
executor
private org.w3c.dom.Document
state
private java.lang.Object
syncWaitState
private ExecutionControl
userControl
Fields inherited from class jason.infra.jade.JadeAg
ASKALL, ASKHOW, conversationIds, logger, running, 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
Constructors Constructor Description JadeExecutionControl()
-
Method Summary
Modifier and Type Method Description org.w3c.dom.Document
getAgState(java.lang.String agName)
Gets the agent state (beliefs, intentions, plans, ...) as an XML documentRuntimeServices
getRuntimeServices()
Gets an object with infrastructure runtime servicesExecutionControl
getUserControl()
void
informAgToPerformCycle(java.lang.String agName, int cycle)
Informs an agent to continue to its next reasoning cycle.void
informAllAgsToPerformCycle(int cycle)
Informs all agents to continue to its next reasoning cycle.void
setup()
protected void
takeDown()
private org.w3c.dom.Document
waitState()
Methods inherited from class jason.infra.jade.JadeAg
aclPerformativeToKqml, addAllAgsAsReceivers, ask, broadcast, doDelete, incReplyWithId, isRunning, jasonToACL, kqmlToACL, putConversationId, 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, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, registerO2AInterface, 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
-
Field Details
-
controllerOntology
public static java.lang.String controllerOntology -
userControl
-
executor
private java.util.concurrent.ExecutorService executor -
state
private org.w3c.dom.Document state -
syncWaitState
private java.lang.Object syncWaitState
-
-
Constructor Details
-
JadeExecutionControl
public JadeExecutionControl()
-
-
Method Details
-
setup
public void setup()- Overrides:
setup
in classjade.core.Agent
-
takeDown
protected void takeDown()- Overrides:
takeDown
in classjade.core.Agent
-
getUserControl
-
informAgToPerformCycle
public void informAgToPerformCycle(java.lang.String agName, int cycle)Description copied from interface:ExecutionControlInfraTier
Informs an agent to continue to its next reasoning cycle.- Specified by:
informAgToPerformCycle
in interfaceExecutionControlInfraTier
-
informAllAgsToPerformCycle
public void informAllAgsToPerformCycle(int cycle)Description copied from interface:ExecutionControlInfraTier
Informs all agents to continue to its next reasoning cycle.- Specified by:
informAllAgsToPerformCycle
in interfaceExecutionControlInfraTier
-
getAgState
public org.w3c.dom.Document getAgState(java.lang.String agName)Description copied from interface:ExecutionControlInfraTier
Gets the agent state (beliefs, intentions, plans, ...) as an XML document- Specified by:
getAgState
in interfaceExecutionControlInfraTier
-
waitState
private org.w3c.dom.Document waitState() -
getRuntimeServices
Description copied from interface:ExecutionControlInfraTier
Gets an object with infrastructure runtime services- Specified by:
getRuntimeServices
in interfaceExecutionControlInfraTier
-