Class AbstractMapTransform
java.lang.Object
com.inductiveautomation.perspective.gateway.binding.transforms.AbstractSynchronousTransform
com.inductiveautomation.perspective.gateway.binding.transforms.map.AbstractMapTransform
- All Implemented Interfaces:
Transform
Base class for a Map Transform. Handles thread-safe scheduling of its
MappingCollection's
updates and is the liaison between the BindingContext
and the
MappingCollection.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
isReady()
Used for unit tests to see if this tranfsorm is ready immediately after startup or if it is required to wait until bindingContext.processPublishedValue is called for the first time.void
shutdown()
Shutdown hook called by theAbstractBindingHarness
.void
startup()
Startup hook called by theAbstractBindingHarness
.protected QualifiedValue
Perform a blocking transformation on aQualifiedValue
, returning the transformed value as a QualifiedValue.Methods inherited from class com.inductiveautomation.perspective.gateway.binding.transforms.AbstractSynchronousTransform
transform
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.Transform
resolveReferences
-
Field Details
-
context
-
fallback
-
-
Method Details
-
startup
public void startup()Description copied from interface:Transform
Startup hook called by theAbstractBindingHarness
. This method will run on theSessionContext's
ExecutionQueue
thread. The default implementation is a no-op. -
isReady
public boolean isReady()Used for unit tests to see if this tranfsorm is ready immediately after startup or if it is required to wait until bindingContext.processPublishedValue is called for the first time. -
shutdown
public void shutdown()Description copied from interface:Transform
Shutdown hook called by theAbstractBindingHarness
. This method will run on theSessionContext's
ExecutionQueue
thread. The default implementation is a no-op. -
synchronousTransformInternal
Description copied from class:AbstractSynchronousTransform
Perform a blocking transformation on aQualifiedValue
, returning the transformed value as a QualifiedValue.- Specified by:
synchronousTransformInternal
in classAbstractSynchronousTransform
- Parameters:
value
- The input value to transform. The value will never be null.- Returns:
- The transformed value.
-