Package jason.infra.jade
Class JadeEnvironment
java.lang.Object
jade.core.Agent
jason.infra.jade.JadeAg
jason.infra.jade.JadeEnvironment
- All Implemented Interfaces:
jade.core.TimerListener,jade.util.leap.Serializable,EnvironmentInfraTier,Serializable,Runnable
This class implements the Jade version of the environment
infrastructure tier.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jade.core.Agent
jade.core.Agent.Interrupted -
Field Summary
FieldsFields inherited from class jason.infra.jade.JadeAg
ASKALL, ASKHOW, conversationIds, logger, running, TELLHOW, UNACHIEVE, UNTELL, UNTELLHOWFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidactionExecuted(String agName, Structure actTerm, boolean success, Object infraData) called by the user implementation of the environment when the action was executedGets an object with infrastructure runtime servicesvoidinformAgsEnvironmentChanged(String... agents) Sends a message to the given agents notifying them that the environment has changed (called by the user environment).voidinformAgsEnvironmentChanged(Collection<String> agentsToNotify) voidsetup()protected voidtakeDown()Methods inherited from class jason.infra.jade.JadeAg
aclPerformativeToKqml, addAllAgsAsReceivers, ask, broadcast, doDelete, incReplyWithId, isRunning, jasonToACL, kqmlToACL, putConversationId, sendMsgMethods 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, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jason.environment.EnvironmentInfraTier
isRunning
-
Field Details
-
actionOntology
-
perceptionOntology
-
-
Constructor Details
-
JadeEnvironment
public JadeEnvironment()
-
-
Method Details
-
setup
public void setup()- Overrides:
setupin classjade.core.Agent
-
takeDown
protected void takeDown()- Overrides:
takeDownin classjade.core.Agent
-
actionExecuted
Description copied from interface:EnvironmentInfraTiercalled by the user implementation of the environment when the action was executed- Specified by:
actionExecutedin interfaceEnvironmentInfraTier
-
informAgsEnvironmentChanged
Description copied from interface:EnvironmentInfraTierSends a message to the given agents notifying them that the environment has changed (called by the user environment). If no agent is informed, the notification is sent to all agents.- Specified by:
informAgsEnvironmentChangedin interfaceEnvironmentInfraTier
-
informAgsEnvironmentChanged
-
getRuntimeServices
Description copied from interface:EnvironmentInfraTierGets an object with infrastructure runtime services- Specified by:
getRuntimeServicesin interfaceEnvironmentInfraTier
-