Class PropertySetNodeManager
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.tags.evaluation.subscriptions.AbstractNodePropertyManager
-
- com.inductiveautomation.ignition.gateway.tags.evaluation.subscriptions.PropertySetNodeManager
-
public class PropertySetNodeManager extends AbstractNodePropertyManager
This node manager publishes properties from a PropertyValueSource. It is useful when we have a property set that we want to publish fully, and we don't know exactly when the individual values have changed- this class will track the last values published, and will evaluate only the properties that actually have subscriptions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.gateway.tags.evaluation.subscriptions.AbstractNodePropertyManager
AbstractNodePropertyManager.ChangeTrackingNodeSubscription, AbstractNodePropertyManager.PropertyNode
-
-
Constructor Summary
Constructors Constructor Description PropertySetNodeManager(PropertyValueSource source)
PropertySetNodeManager(PropertyValueSource source, Property<?> defaultProperty)
PropertySetNodeManager(PropertyValueSource source, Property<?> defaultProperty, java.util.Collection<? extends Property<?>> publishedProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Property<?>
getDefaultSubscriptionProp()
protected <T> T
getPropertyValue(Property<T> prop)
protected java.util.Collection<? extends Property<?>>
getPublishedProperties()
These are the properties that are published for browsing.void
subscribe(Property<?> prop, NodeSubscription sub)
Subscribes to the specified property.void
updateSource(PropertyValueSource source)
-
Methods inherited from class com.inductiveautomation.ignition.gateway.tags.evaluation.subscriptions.AbstractNodePropertyManager
browse, clearSubscriptions, createDescriptionFor, fireAllSubscriptions, fireSubscription, fireSubscription, fireSubscriptionToTarget, getPropertyNode, getPropertyQualifiedValue, getSubscribedSet, getTarget, hasTarget, readProperty, unsubscribe, writeProperty
-
-
-
-
Constructor Detail
-
PropertySetNodeManager
public PropertySetNodeManager(PropertyValueSource source, Property<?> defaultProperty, java.util.Collection<? extends Property<?>> publishedProperties)
-
PropertySetNodeManager
public PropertySetNodeManager(PropertyValueSource source, Property<?> defaultProperty)
-
PropertySetNodeManager
public PropertySetNodeManager(PropertyValueSource source)
-
-
Method Detail
-
getPublishedProperties
protected java.util.Collection<? extends Property<?>> getPublishedProperties()
Description copied from class:AbstractNodePropertyManager
These are the properties that are published for browsing.- Specified by:
getPublishedProperties
in classAbstractNodePropertyManager
-
getDefaultSubscriptionProp
protected Property<?> getDefaultSubscriptionProp()
- Specified by:
getDefaultSubscriptionProp
in classAbstractNodePropertyManager
-
getPropertyValue
protected <T> T getPropertyValue(Property<T> prop)
- Specified by:
getPropertyValue
in classAbstractNodePropertyManager
-
updateSource
public void updateSource(PropertyValueSource source)
-
subscribe
public void subscribe(Property<?> prop, NodeSubscription sub)
Description copied from class:AbstractNodePropertyManager
Subscribes to the specified property. If prop == null, it will be the default property of the node. Important point: we track "default null" separately from an actual property value for default. This is because the subscription system doesn't know what our default is. This also means that if the default prop is "Value", subscribing to "Tag.Value" is heavier than just "Tag".- Overrides:
subscribe
in classAbstractNodePropertyManager
-
-