Package jmri.jmrit.symbolicprog
Class QualifierCombiner
java.lang.Object
jmri.jmrit.symbolicprog.QualifierCombiner
- All Implemented Interfaces:
PropertyChangeListener,EventListener,Qualifier
Force a set of Qualifiers to work in an AND relationship.
On transition, the qualifiers are evaluated in order, stopping when the outcome is known.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether this Qualifier is currently in the OK, qualified-to-act state.voidvoidsetWatchedAvailable(boolean enable) Drive the available or not state of the qualified object.voidupdate()Process the current value and do whatever is needed.
-
Field Details
-
qualifiers
-
-
Constructor Details
-
QualifierCombiner
-
-
Method Details
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
setWatchedAvailable
Description copied from interface:QualifierDrive 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:
setWatchedAvailablein interfaceQualifier- Parameters:
enable- true to drive, else false.
-
currentDesiredState
Description copied from interface:QualifierCheck whether this Qualifier is currently in the OK, qualified-to-act state.- Specified by:
currentDesiredStatein interfaceQualifier- Returns:
- true if this Qualifier is currently saying OK
-
update
Description copied from interface:QualifierProcess the current value and do whatever is needed.
-