|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.comp.robot.RobotActionExecutor
| Constructor Summary | |
RobotActionExecutor()
|
|
| Method Summary | |
abstract MActionResponse |
executeAction(MAction action)
Implementations should execute the desired action and return immediate results here. |
protected java.lang.String |
getConfigEntry(java.lang.String entry)
Returns a String entry from the configuration. |
protected java.lang.String |
getConnectedAgent()
Returns the name of the agent currently controlling the robot. |
abstract ConsoleQuestionTypeIF[] |
getConsoleQuestionContributions()
Implementations should return an array of contributions to the console Q/A system. |
protected static RobotActionExecutor |
getInstance()
|
protected Logger |
getLogger()
Returns the logger for this component. |
protected static void |
setup(java.lang.String classname,
ConfigurationReaderIF config,
java.lang.String prefix,
RobotWorldComponent tecLayer)
|
abstract void |
shutdown()
Called when the action executor should terminate. |
abstract void |
tick(long simStep)
Called periodically right before a new system cycle begins. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RobotActionExecutor()
| Method Detail |
protected static final void setup(java.lang.String classname,
ConfigurationReaderIF config,
java.lang.String prefix,
RobotWorldComponent tecLayer)
throws MicropsiException
MicropsiException
protected static final RobotActionExecutor getInstance()
throws MicropsiException
MicropsiExceptionprotected Logger getLogger()
protected java.lang.String getConfigEntry(java.lang.String entry)
throws MicropsiConfigException
entry - the entry's name in the configuration
MicropsiConfigException - if there is no such entryprotected java.lang.String getConnectedAgent()
public abstract MActionResponse executeAction(MAction action)
action - the Action to be executed.
for a discussion of
possible problems with distribution.
Once more, the constraints:
- Return immediately, do not wait until the action has been executed fully
- This method is called exactly once per Micropsi system cycle
- MActionResponse doesn't need to contain anything, if there is nothing
to report at that point of time.
public abstract ConsoleQuestionTypeIF[] getConsoleQuestionContributions()
public abstract void tick(long simStep)
simStep - public abstract void shutdown()
|
(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 | |||||||||