Package jason.infra.local
Class LocalEnvironment
java.lang.Object
jason.infra.local.LocalEnvironment
- All Implemented Interfaces:
EnvironmentInfraTier
This class implements the Local version of the environment infrastructure tier.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidact(String agName, ActionExec action) called by the agent infra arch to perform an action in the environmentvoidactionExecuted(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).booleanreturns true if the infrastructure environment is runningvoidvoidstop()called before the end of MAS execution, it just calls the user environment class stop method.
-
Constructor Details
-
LocalEnvironment
- Throws:
JasonException
-
-
Method Details
-
isRunning
public boolean isRunning()Description copied from interface:EnvironmentInfraTierreturns true if the infrastructure environment is running- Specified by:
isRunningin interfaceEnvironmentInfraTier
-
stop
public void stop()called before the end of MAS execution, it just calls the user environment class stop method. -
setUserEnvironment
-
getUserEnvironment
-
act
called by the agent infra arch to perform an action in the environment -
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
-
getRuntimeServices
Description copied from interface:EnvironmentInfraTierGets an object with infrastructure runtime services- Specified by:
getRuntimeServicesin interfaceEnvironmentInfraTier
-