Package cmion.level3.supersimplemind
Class SuperSimpleMind
- java.lang.Object
-
- cmion.level3.supersimplemind.SuperSimpleMind
-
public class SuperSimpleMind extends java.lang.Objectan example mind that does almost nothing except executing random actions, this is just to show how one could interface a different mind then FAtiMA, e.g. a user controlled mind for debugging purposes
-
-
Constructor Summary
Constructors Constructor Description SuperSimpleMind(SuperSimpleMindConnector connector)creates a new super simple mind
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAgentName()returns the name of the agentbooleanisSleeping()returns whether the mind is sleeping or notvoidsendAwake()this is called to awake the mindvoidsendCancel(MindAction a)notify the mind of an action cancellationvoidsendEntityAdded(java.lang.String entityName)the mind processes added entities in this functionvoidsendEntityRemoved(java.lang.String entityName)the mind processes removed entities in this functionvoidsendFailure(MindAction a)notify the mind of an action failurevoidsendPropertyChanged(java.lang.String entityName, java.lang.String propertyName, java.lang.String propertyValue)the mind processes changed properties in this functionvoidsendPropertyRemoved(java.lang.String entityName, java.lang.String propertyName)the mind processes removed properties in this functionvoidsendRemoteAction(MindAction remoteAction)the mind processes remote actions (actions of other agents / users) in this functionvoidsendSleep()send the mind to sleepvoidsendSuccess(MindAction a)notify the mind of an action success
-
-
-
Constructor Detail
-
SuperSimpleMind
public SuperSimpleMind(SuperSimpleMindConnector connector)
creates a new super simple mind
-
-
Method Detail
-
getAgentName
public java.lang.String getAgentName()
returns the name of the agent
-
sendAwake
public void sendAwake()
this is called to awake the mind
-
sendFailure
public void sendFailure(MindAction a)
notify the mind of an action failure
-
sendSuccess
public void sendSuccess(MindAction a)
notify the mind of an action success
-
sendCancel
public void sendCancel(MindAction a)
notify the mind of an action cancellation
-
sendSleep
public void sendSleep()
send the mind to sleep
-
sendRemoteAction
public void sendRemoteAction(MindAction remoteAction)
the mind processes remote actions (actions of other agents / users) in this function
-
isSleeping
public boolean isSleeping()
returns whether the mind is sleeping or not
-
sendEntityAdded
public void sendEntityAdded(java.lang.String entityName)
the mind processes added entities in this function
-
sendEntityRemoved
public void sendEntityRemoved(java.lang.String entityName)
the mind processes removed entities in this function
-
sendPropertyChanged
public void sendPropertyChanged(java.lang.String entityName, java.lang.String propertyName, java.lang.String propertyValue)the mind processes changed properties in this function
-
sendPropertyRemoved
public void sendPropertyRemoved(java.lang.String entityName, java.lang.String propertyName)the mind processes removed properties in this function
-
-