View Javadoc

1   package cz.cuni.amis.pogamut.sposh.elements;
2   
3   /**
4    * Interface for elements that use condition: either goal or trigger. Both of
5    * them are list of {@link Sense}s connected by logical operation <em>AND</em>.
6    *
7    * @param <CONDITION_OWNER> Class implementing the interface (e.g. {@link DriveElement}
8    * has a {@link Trigger} so when it implements this interface, it will use {@link DriveElement}).
9    * @author Honza H
10   */
11  public interface IConditionElement<CONDITION_OWNER extends PoshElement> {
12  
13      /**
14       * Get condition of the element.
15       *
16       * @return Condition of the element, never null, but condition can be empty
17       * (e.g. it contains no senses).
18       */
19      Trigger<CONDITION_OWNER> getCondition();
20  }