View Javadoc

1   package cz.cuni.amis.pogamut.sposh.ut2004.senses;
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.StateSense;
7   
8   /**
9    * Success sense, always succeed (return true) and do nothing else.
10   * @author Honza
11   */
12  @PrimitiveInfo(name = "succeed", description = "do nothing and return success")
13  public class Succeed extends StateSense<Context, Boolean> {
14      public Succeed(Context ctx) {
15          super("succeed", ctx);
16      }
17  
18      @Override
19      public Boolean query(VariableContext ctx) {
20          return true;
21      }
22  }