|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.comp.agent.micropsi.actions.EatAction
| Constructor Summary | |
EatAction(NetFacadeIF net,
MicroPsiAgent agent,
Logger logger)
|
|
| Method Summary | |
MAction |
calculateAction()
This method will be called on the action translator with the highest priority. |
void |
dontCalculateAction()
This method is called on the actions with lower priorities. |
java.lang.String |
getActionID()
Returns the ID of the action that this translator will construct. |
double |
getCurrentActionPriority()
Returns the action's current priority. |
void |
receiveActionResult(double value)
Called every cycle to report the success of the action, without regard of previous cycle's priorities. |
void |
shutdown()
This is called directly before destruction and should be used to unregister listeners etc. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EatAction(NetFacadeIF net,
MicroPsiAgent agent,
Logger logger)
| Method Detail |
public java.lang.String getActionID()
ActionTranslatorIF
getActionID in interface ActionTranslatorIFpublic MAction calculateAction()
ActionTranslatorIF
calculateAction in interface ActionTranslatorIFpublic void receiveActionResult(double value)
ActionTranslatorIF
receiveActionResult in interface ActionTranslatorIFvalue - the success of this action's executionpublic double getCurrentActionPriority()
ActionTranslatorIF
getCurrentActionPriority in interface ActionTranslatorIFpublic void dontCalculateAction()
ActionTranslatorIF
dontCalculateAction in interface ActionTranslatorIFpublic void shutdown()
ActionTranslatorIF
shutdown in interface ActionTranslatorIF
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||