View Javadoc

1   package cz.cuni.amis.pogamut.sposh.ut2004.actions;
2   
3   import cz.cuni.amis.pogamut.sposh.context.Context;
4   import cz.cuni.amis.pogamut.sposh.engine.VariableContext;
5   import cz.cuni.amis.pogamut.sposh.executor.PrimitiveInfo;
6   import cz.cuni.amis.pogamut.sposh.executor.StateAction;
7   
8   /**
9    *
10   * @author Honza
11   */
12  @PrimitiveInfo(name="doNothing", description="This action doesn't do anything.")
13  public class DoNothing extends StateAction<Context, Boolean>{
14  
15      public DoNothing(Context ctx) {
16          super("doNothing", ctx);
17      }
18  
19      @Override
20      public void init(VariableContext ctx) {
21      }
22  
23      @Override
24      public Boolean run(VariableContext ctx) {
25          return true;
26      }
27  
28      @Override
29      public void done(VariableContext ctx) {
30      }
31  
32  }