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    * This action always fails (returns false) and does nothing else.
10   * @author Honza
11   */
12  @PrimitiveInfo(name = "fail", description = "do nothing and return false")
13  public class Fail extends StateSense<Context, Boolean> {
14  
15      public Fail(Context ctx) {
16          super("fail", ctx);
17      }
18  
19      @Override
20      public Boolean query(VariableContext params) {
21          return false;
22      }
23  }