public class SuperSimpleMigratingMind
extends java.lang.Object
| Constructor | Description |
|---|---|
SuperSimpleMigratingMind(SuperSimpleMigratingMindConnector connector) |
creates a new super simple mind
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
executeMigrationBackAction() |
creates a Migrating action to a specific device and attempts to execute it
|
java.lang.String |
getAgentName() |
returns the name of the agent
|
boolean |
isSleeping() |
returns whether the mind is sleeping or not
|
void |
sendAwake() |
this is called to awake the mind
|
void |
sendEntityAdded(java.lang.String entityName) |
the mind processes added entities in this function
|
void |
sendEntityRemoved(java.lang.String entityName) |
the mind processes removed entities in this function
|
void |
sendFailure(MindAction a) |
notify the mind of an action failure
|
void |
sendPropertyChanged(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyValue) |
the mind processes changed properties in this function
|
void |
sendPropertyRemoved(java.lang.String entityName,
java.lang.String propertyName) |
the mind processes removed properties in this function
|
void |
sendRemoteAction(MindAction remoteAction) |
the mind processes remote actions (actions of other agents / users) in this function
|
void |
sendSleep() |
send the mind to sleep
|
void |
sendSuccess(MindAction a) |
notify the mind of an action success
|
public SuperSimpleMigratingMind(SuperSimpleMigratingMindConnector connector)
public java.lang.String getAgentName()
public void sendAwake()
public void sendFailure(MindAction a)
public void sendSuccess(MindAction a)
public void sendSleep()
public void sendRemoteAction(MindAction remoteAction)
public boolean isSleeping()
public void executeMigrationBackAction()
public void sendEntityAdded(java.lang.String entityName)
public void sendEntityRemoved(java.lang.String entityName)
public void sendPropertyChanged(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyValue)
public void sendPropertyRemoved(java.lang.String entityName,
java.lang.String propertyName)