Class DisplayThenSourceCondition

java.lang.Object
com.inductiveautomation.ignition.common.alarming.query.conditions.DisplayThenSourceCondition
All Implemented Interfaces:
Condition<Path[]>, Serializable

public class DisplayThenSourceCondition extends Object implements Condition<Path[]>
This condition is basically a standard path condition, but the value is an array of paths. If a Display path is set that value checked against the condition. If no display path is set, the source path is used. It is important that the Path array that is provided is in the correct order. The Display Path should be first followed by the source path.

(See AlarmFilter.DISPPATH_THEN_SOURCE)

See Also:
  • Constructor Details

    • DisplayThenSourceCondition

      public DisplayThenSourceCondition(PathCondition<Path> condition)
  • Method Details

    • getPathCondition

      public PathCondition<Path> getPathCondition()
      Returns the condition against which incoming paths will be evaluated.
    • passes

      public boolean passes(Path[] value)
      Description copied from interface: Condition
      Returns whether the provided value passes the condition.
      Specified by:
      passes in interface Condition<Path[]>
    • toString

      public String toString()
      Overrides:
      toString in class Object