Class ExpressionDrivenQualifiedValue
java.lang.Object
com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue<T>
com.inductiveautomation.perspective.gateway.driven.ExpressionDrivenValue<QualifiedValue>
com.inductiveautomation.perspective.gateway.driven.ExpressionDrivenQualifiedValue
- All Implemented Interfaces:
DrivenValue<QualifiedValue>
-
Field Summary
Fields inherited from class com.inductiveautomation.perspective.gateway.driven.ExpressionDrivenValue
dirty, value
Fields inherited from class com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue
lock
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionDrivenQualifiedValue
(Object lock, PerspectiveExpression expr, Runnable valueChangedCallback) -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<QualifiedValue>
Called after asserting that the calling thread holds the injected lock.protected boolean
isValidValue
(QualifiedValue value) This method is called when a new value is emitted from the expression.Methods inherited from class com.inductiveautomation.perspective.gateway.driven.ExpressionDrivenValue
getAndClear, isDirtyInternal, isReadyInternal, resolveReferencesInternal, shutdown, startup
Methods inherited from class com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue
isDirty, isReady, resolveReferences
-
Constructor Details
-
ExpressionDrivenQualifiedValue
public ExpressionDrivenQualifiedValue(@Nonnull Object lock, @Nonnull PerspectiveExpression expr, @Nonnull Runnable valueChangedCallback)
-
-
Method Details
-
isValidValue
Description copied from class:ExpressionDrivenValue
This method is called when a new value is emitted from the expression. If the value passes validation, the value is set, dirty bits are set, and the callback is notified. If the value does not pass validation, nothing happens and a debug message is logged.- Specified by:
isValidValue
in classExpressionDrivenValue<QualifiedValue>
- Parameters:
value
- the latest value emitted from the expression- Returns:
- true if the value passes validation, false otherwise
-
getAndClearInternal
Description copied from class:LockGuardedDrivenValue
Called after asserting that the calling thread holds the injected lock.- Specified by:
getAndClearInternal
in classLockGuardedDrivenValue<QualifiedValue>
- See Also:
-