View Javadoc

1   package cz.cuni.amis.pogamut.shady;
2   
3   import cz.cuni.amis.pogamut.sposh.executor.IWorkExecutor;
4   import java.math.BigDecimal;
5   
6   /**
7    * Interface for getting integer value from some part of the plan, e.g. getting
8    * priority.
9    *
10   * @see QueryCall
11   * @see QueryCmp
12   * @see QueryInt
13   * @see QueryFloat
14   * @see QueryGt
15   * @see QueryGe
16   * @see QueryEq
17   * @see QueryNe
18   * @see QueryLe
19   * @see QueryLt
20   * @see QueryAnd
21   * @see QueryOr
22   * @see QueryNot
23   *
24   * @author Honza
25   */
26  public interface IQuery {
27  
28      /**
29       * Execute query and return number.
30       *
31       * @return number as result of query. 0 is failure, otherwise is success
32       */
33      BigDecimal execute(IWorkExecutor executor);
34  }