Package jmri.jmrit.symbolicprog
Class ValueQualifier
- java.lang.Object
-
- jmri.jmrit.symbolicprog.AbstractQualifier
-
- jmri.jmrit.symbolicprog.ArithmeticQualifier
-
- jmri.jmrit.symbolicprog.ValueQualifier
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
,Qualifier
public class ValueQualifier extends ArithmeticQualifier
Qualify a variable on greater than or equal a number
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.symbolicprog.ArithmeticQualifier
ArithmeticQualifier.Test
-
-
Field Summary
Fields Modifier and Type Field Description (package private) VariableValue
qualifiedVal
-
Fields inherited from class jmri.jmrit.symbolicprog.ArithmeticQualifier
test, value, warnedDoesntExist
-
Fields inherited from class jmri.jmrit.symbolicprog.AbstractQualifier
watchedVal
-
-
Constructor Summary
Constructors Constructor Description ValueQualifier(VariableValue qualifiedVal, VariableValue watchedVal, int value, java.lang.String relation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
currentAvailableState()
Retrieve the current "available" state from the qualified Object.void
setWatchedAvailable(boolean enable)
Drive the available or not state of the qualified Object.-
Methods inherited from class jmri.jmrit.symbolicprog.ArithmeticQualifier
availableStateFromValue, currentDesiredState, update
-
Methods inherited from class jmri.jmrit.symbolicprog.AbstractQualifier
availableStateFromEvent, getWatchedVariable, processValueChangeEvent, propertyChange
-
-
-
-
Field Detail
-
qualifiedVal
VariableValue qualifiedVal
-
-
Constructor Detail
-
ValueQualifier
public ValueQualifier(VariableValue qualifiedVal, VariableValue watchedVal, int value, java.lang.String relation)
-
-
Method Detail
-
setWatchedAvailable
public void setWatchedAvailable(boolean enable)
Description copied from class:AbstractQualifier
Drive the available or not state of the qualified Object.Subclasses implement this to control a specific type of qualified Object, like a Variable or Pane.
- Specified by:
setWatchedAvailable
in interfaceQualifier
- Specified by:
setWatchedAvailable
in classAbstractQualifier
- Parameters:
enable
- true if should be enabled
-
currentAvailableState
protected boolean currentAvailableState()
Description copied from class:AbstractQualifier
Retrieve the current "available" state from the qualified Object.- Specified by:
currentAvailableState
in classAbstractQualifier
- Returns:
- true if available
-
-