Package cmion.level3.supersimplemind
Class SuperSimpleMindConnector
java.lang.Object
ion.Meta.Element
cmion.architecture.CmionComponent
cmion.level3.AgentMindConnector
cmion.level3.supersimplemind.SuperSimpleMindConnector
The connector to a SuperSimpleMind (example implementation of a simple mind interface)
-
Field Summary
Fields inherited from class cmion.architecture.CmionComponent
architecture -
Constructor Summary
ConstructorsConstructorDescriptionSuperSimpleMindConnector(IArchitecture architecture) creates a new connector for a SuperSimpleMind -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinforms the mind that the architecture is ready for the mind executing actionsvoidsends a command to the mind telling it to resume decision making and action executionbooleanreturns whether the mind is sleeping or notprotected voidinforms mind of the success of the cancellation of an executed actionvoidinforms mind of the failure of a recently executed actionvoidinforms mind of the success of a recently executed actionprotected voidprocessEntityAdded(String entityName) informs the mind that a new entity (agent or object) has been added to the world modelprotected voidprocessEntityRemoved(String entityName) informs the mind that an entity (agent or object) has been removed from the world modelprotected voidprocessPropertyChanged(String entityName, String propertyName, String propertyValue, boolean persistent) informs the mind that a property of an agent or object in the world model has changedprotected voidprocessPropertyRemoved(String entityName, String propertyName) informs the mind that a property of an agent or object in the world model has been removedprotected voidprocessRawMessage(String message) in this message a mind can parse raw messages containing specialised communication / perceptions / requestsvoidprocessRemoteAction(MindAction remoteAction) sends a remoteAction (an action that another agent/user has performed) to the mindvoidpause the mindMethods inherited from class cmion.level3.AgentMindConnector
cancel, newAction, onDestroy, registerHandlersMethods inherited from class cmion.architecture.CmionComponent
getArchitecture, isConnected, raiseMethods inherited from class ion.Meta.Element
destroy, getEventFilters, getEventHandlers, getRequestFilters, getRequestHandlers, getSimulation, getUID, schedule, wasDestroyed
-
Constructor Details
-
SuperSimpleMindConnector
creates a new connector for a SuperSimpleMind
-
-
Method Details
-
awakeMind
public void awakeMind()Description copied from class:AgentMindConnectorsends a command to the mind telling it to resume decision making and action execution- Specified by:
awakeMindin classAgentMindConnector
-
isMindSleeping
public boolean isMindSleeping()Description copied from class:AgentMindConnectorreturns whether the mind is sleeping or not- Specified by:
isMindSleepingin classAgentMindConnector
-
processActionFailure
Description copied from class:AgentMindConnectorinforms mind of the failure of a recently executed action- Specified by:
processActionFailurein classAgentMindConnector
-
processActionSuccess
Description copied from class:AgentMindConnectorinforms mind of the success of a recently executed action- Specified by:
processActionSuccessin classAgentMindConnector
-
processActionCancellation
Description copied from class:AgentMindConnectorinforms mind of the success of the cancellation of an executed action- Specified by:
processActionCancellationin classAgentMindConnector
-
sendMindToSleep
public void sendMindToSleep()pause the mind- Specified by:
sendMindToSleepin classAgentMindConnector
-
processRemoteAction
Description copied from class:AgentMindConnectorsends a remoteAction (an action that another agent/user has performed) to the mind- Specified by:
processRemoteActionin classAgentMindConnector
-
processEntityAdded
Description copied from class:AgentMindConnectorinforms the mind that a new entity (agent or object) has been added to the world model- Specified by:
processEntityAddedin classAgentMindConnector
-
processEntityRemoved
Description copied from class:AgentMindConnectorinforms the mind that an entity (agent or object) has been removed from the world model- Specified by:
processEntityRemovedin classAgentMindConnector
-
processPropertyChanged
protected void processPropertyChanged(String entityName, String propertyName, String propertyValue, boolean persistent) Description copied from class:AgentMindConnectorinforms the mind that a property of an agent or object in the world model has changed- Specified by:
processPropertyChangedin classAgentMindConnector
-
processPropertyRemoved
Description copied from class:AgentMindConnectorinforms the mind that a property of an agent or object in the world model has been removed- Specified by:
processPropertyRemovedin classAgentMindConnector
-
architectureReady
protected void architectureReady()Description copied from class:AgentMindConnectorinforms the mind that the architecture is ready for the mind executing actions- Specified by:
architectureReadyin classAgentMindConnector
-
processRawMessage
Description copied from class:AgentMindConnectorin this message a mind can parse raw messages containing specialised communication / perceptions / requests- Specified by:
processRawMessagein classAgentMindConnector
-