Package jmri.jmrit.symbolicprog
Interface Qualifier
- All Known Implementing Classes:
AbstractQualifier,ArithmeticQualifier,JComponentQualifier,PaneQualifier,QualifierCombiner,ValueQualifier
public interface Qualifier
Define capability to watch other things and "Qualify" CVs and Variables.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether this Qualifier is currently in the OK, qualified-to-act state.voidsetWatchedAvailable(boolean enable) Drive the available or not state of the qualified object.voidupdate()Process the current value and do whatever is needed.
-
Method Details
-
update
void update()Process the current value and do whatever is needed. -
currentDesiredState
boolean currentDesiredState()Check whether this Qualifier is currently in the OK, qualified-to-act state.- Returns:
- true if this Qualifier is currently saying OK
-
setWatchedAvailable
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.
- Parameters:
enable- true to drive, else false.
-