View Javadoc

1   package cz.cuni.amis.pogamut.sposh.executor;
2   
3   import cz.cuni.amis.pogamut.sposh.context.Context;
4   import cz.cuni.amis.pogamut.sposh.engine.VariableContext;
5   
6   /**
7    * Primitive action that doesn't do anything. It is used in empty plans and so on.
8    * @author Honza
9    */
10  @PrimitiveInfo(name = "Do nothing", description = "This action does nothing and lasts one iteration.")
11  public class DoNothing extends StateAction<Context> {
12  
13      public DoNothing(Context ctx) {
14          super(ctx);
15      }
16  
17      @Override
18      public void init(VariableContext params) {
19      }
20  
21      @Override
22      public ActionResult run(VariableContext params) {
23          return ActionResult.RUNNING_ONCE;
24      }
25  
26      @Override
27      public void done(VariableContext params) {
28      }
29  }