FAtiMAConnector, FAtiMARetainer, SuperSimpleMigratingByInviteMindConnector, SuperSimpleMigratingMindConnector, SuperSimpleMindConnectorpublic abstract class AgentMindConnector extends CmionComponent
architecture| Constructor | Description |
|---|---|
AgentMindConnector(IArchitecture architecture) |
create a new Agent Mind Connector
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
architectureReady() |
informs the mind that the architecture is ready for the mind executing actions
|
abstract void |
awakeMind() |
sends a command to the mind telling it to resume decision making and action execution
|
void |
cancel(MindAction mindAction) |
cancels a currently executing mind action (if such an action is currently running)
|
abstract boolean |
isMindSleeping() |
returns whether the mind is sleeping or not
|
void |
newAction(MindAction mindAction) |
call this if the mind decides to execute a new action, this will schedule an ION request
with the competency manager to execute the action
|
void |
onDestroy() |
abstract method overridden from ION.meta.element
|
protected abstract void |
processActionCancellation(MindAction a) |
informs mind of the success of the cancellation of an executed action
|
protected abstract void |
processActionFailure(MindAction a) |
informs mind of the failure of a recently executed action
|
protected abstract void |
processActionSuccess(MindAction a) |
informs mind of the success of a recently executed action
|
protected abstract void |
processEntityAdded(java.lang.String entityName) |
informs the mind that a new entity (agent or object) has been added to the world model
|
protected abstract void |
processEntityRemoved(java.lang.String entityName) |
informs the mind that an entity (agent or object) has been removed from the world model
|
protected abstract void |
processPropertyChanged(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyValue,
boolean persistent) |
informs the mind that a property of an agent or object in the world model has changed
|
protected abstract void |
processPropertyRemoved(java.lang.String entityName,
java.lang.String propertyName) |
informs the mind that a property of an agent or object in the world model has been removed
|
protected abstract void |
processRawMessage(java.lang.String message) |
in this message a mind can parse raw messages containing specialised communication / perceptions / requests
|
protected abstract void |
processRemoteAction(MindAction remoteAction) |
sends a remoteAction (an action that another agent/user has performed) to the mind
|
void |
registerHandlers() |
in this method the mind connector registers its request and event handlers with ION
|
abstract void |
sendMindToSleep() |
sends a command to the connected mind, making it pause any decision making processes and
action execution, while the mind is paused it should not send any action
|
getArchitecture, isConnected, raisepublic AgentMindConnector(IArchitecture architecture)
public abstract void sendMindToSleep()
public abstract boolean isMindSleeping()
public abstract void awakeMind()
protected abstract void processRemoteAction(MindAction remoteAction)
protected abstract void processActionSuccess(MindAction a)
protected abstract void processActionFailure(MindAction a)
protected abstract void processActionCancellation(MindAction a)
protected abstract void processEntityAdded(java.lang.String entityName)
protected abstract void processEntityRemoved(java.lang.String entityName)
protected abstract void processPropertyChanged(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyValue,
boolean persistent)
protected abstract void processPropertyRemoved(java.lang.String entityName,
java.lang.String propertyName)
protected abstract void processRawMessage(java.lang.String message)
protected abstract void architectureReady()
public final void registerHandlers()
registerHandlers in class CmionComponentpublic final void newAction(MindAction mindAction)
public final void cancel(MindAction mindAction)
public void onDestroy()
onDestroy in class CmionComponent