Class ArithmeticQualifier

java.lang.Object
jmri.jmrit.symbolicprog.AbstractQualifier
jmri.jmrit.symbolicprog.ArithmeticQualifier
All Implemented Interfaces:
PropertyChangeListener, EventListener, Qualifier
Direct Known Subclasses:
JComponentQualifier, PaneQualifier, ValueQualifier

public abstract class ArithmeticQualifier extends AbstractQualifier
Mechanism to qualify on the value of a number.

The usual arithmetic operations are possible: ge, le, gt, lt, eq, ne. The sense of this is comparing "current value" to "constant", for example "current value gt 3".

You can also check whether the value "exists" (value of 1) or not (value of 0). Comparisons with the value of a non-existent variable always fail.