Package cmion.level3.supersimplemind
Class SuperSimpleMind
java.lang.Object
cmion.level3.supersimplemind.SuperSimpleMind
an 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
ConstructorsConstructorDescriptionSuperSimpleMind(SuperSimpleMindConnector connector) creates a new super simple mind -
Method Summary
Modifier and TypeMethodDescriptionreturns the name of the agentbooleanreturns whether the mind is sleeping or notvoidthis is called to awake the mindvoidnotify the mind of an action cancellationvoidsendEntityAdded(String entityName) the mind processes added entities in this functionvoidsendEntityRemoved(String entityName) the mind processes removed entities in this functionvoidnotify the mind of an action failurevoidsendPropertyChanged(String entityName, String propertyName, String propertyValue) the mind processes changed properties in this functionvoidsendPropertyRemoved(String entityName, String propertyName) the mind processes removed properties in this functionvoidsendRemoteAction(MindAction remoteAction) the mind processes remote actions (actions of other agents / users) in this functionvoidsend the mind to sleepvoidnotify the mind of an action success
-
Constructor Details
-
SuperSimpleMind
creates a new super simple mind
-
-
Method Details
-
getAgentName
returns the name of the agent -
sendAwake
public void sendAwake()this is called to awake the mind -
sendFailure
notify the mind of an action failure -
sendSuccess
notify the mind of an action success -
sendCancel
notify the mind of an action cancellation -
sendSleep
public void sendSleep()send the mind to sleep -
sendRemoteAction
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
the mind processes added entities in this function -
sendEntityRemoved
the mind processes removed entities in this function -
sendPropertyChanged
the mind processes changed properties in this function -
sendPropertyRemoved
the mind processes removed properties in this function
-