cz.cuni.amis.pogamut.sposh.executor
Class DoNothing
java.lang.Object
cz.cuni.amis.pogamut.sposh.executor.StateAction<Context>
cz.cuni.amis.pogamut.sposh.executor.DoNothing
- All Implemented Interfaces:
- IAction
public class DoNothing
- extends StateAction<Context>
Primitive action that doesn't do anything. It is used in empty plans and so on.
- Author:
- Honza
| Fields inherited from class cz.cuni.amis.pogamut.sposh.executor.StateAction |
ctx |
|
Method Summary |
void |
done(VariableContext params)
This action is done, according to posh plan, some other IAction is
supposed to execute, therefore use this to clean up the mess. |
void |
init(VariableContext params)
Initialize action. |
ActionResult |
run(VariableContext params)
Run is called every time evaluation of posh plan determines that this and
no other action is the one that is supposed to execute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoNothing
public DoNothing(Context ctx)
init
public void init(VariableContext params)
- Description copied from interface:
IAction
- Initialize action. Called ever time action is supposed to execute.
After init, run is immediately called, so first run call has same state of world
as init did.
- Parameters:
params - Variable context that is passed from posh plan to the primitive
run
public ActionResult run(VariableContext params)
- Description copied from interface:
IAction
- Run is called every time evaluation of posh plan determines that this and
no other action is the one that is supposed to execute.
- Parameters:
params - Variable context passed from posh plan to the primtive
- Returns:
- result of action in this iteration.
done
public void done(VariableContext params)
- Description copied from interface:
IAction
- This action is done, according to posh plan, some other
IAction is
supposed to execute, therefore use this to clean up the mess.
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.