Package trclib.driverio
Class TrcPriorityIndicator.PatternState
java.lang.Object
trclib.driverio.TrcPriorityIndicator.PatternState
- Enclosing class:
- TrcPriorityIndicator<T>
This class implements the pattern state. It contains the pattern and the state if the pattern is active or not.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) double(package private) double(package private) boolean(package private) double(package private) final T -
Constructor Summary
ConstructorsConstructorDescriptionPatternState(T pattern) Constructor: Create an instance of the object.PatternState(T pattern, boolean enabled, double onDuration, double offDuration) Constructor: Create an instance of the object. -
Method Summary
-
Field Details
-
pattern
-
enabled
boolean enabled -
onDuration
double onDuration -
offDuration
double offDuration -
on
boolean on -
expiredTime
double expiredTime
-
-
Constructor Details
-
PatternState
Constructor: Create an instance of the object.- Parameters:
pattern- specifies the pattern.enabled- specifies the initial state of the pattern.onDuration- specifies the time in seconds the pattern remains ON, zero to turn it ON indefinitely.offDuration- specifies the time in seconds the pattern remains OFF, then turn the LED back ON. Zero for disabling after onDuration expires.
-
PatternState
Constructor: Create an instance of the object.- Parameters:
pattern- specifies the indicator pattern.
-
-
Method Details