public class PubSubVariableDataSetConfFactory extends Object
PubSubVariableDataSetConf for "well known" (via the
DataSetClassId) DataSets (or their templates, i.e. when the factory is used to produce the
dataset, the node/value for a given field is given and everyhing else related to the field is
effectively hard-coded in the template).
NOTE! At the moment this factory does not support setting AttributeId (Value assumed), DeadbandType, DeadbandValue, IndexRange nor SamplingIntervalHint for a node-based source.
| Modifier and Type | Method and Description |
|---|---|
PubSubVariableDataSetConf |
build(String name)
Returns a PublishedVariableDataSet with the given name with all fields set either to be
constants or node-based, throws
IllegalStateException if not all fields are set. |
static PubSubVariableDataSetConfFactory |
from(PubSubVariableDataSetConf partial)
Constructs PubSubVariableDataSetConfFactory that reflects the given partial representation of a
DataSet.
|
void |
setFieldToConstant(String fieldName,
Object value)
Sets field value to a constant, effectively setting the
PubSubPublishedVariableConf.getSubstituteValue() plus setting
PubSubPublishedVariableConf#getForceSubstituteValue() to true. |
void |
setFieldToNode(String fieldName,
UaNodeId node)
Sets field value to be node-based, effectively setting
PubSubPublishedVariableConf.getPublishedVariable(). |
public static PubSubVariableDataSetConfFactory from(PubSubVariableDataSetConf partial)
PubSubVariableDataSetConf.getDataSetClassId() and all fields shall have their
DataType/ValueRank defined, otherwise this method will throw IllegalArgumentException.public PubSubVariableDataSetConf build(String name)
IllegalStateException if not all fields are set.public void setFieldToConstant(String fieldName, Object value)
PubSubPublishedVariableConf.getSubstituteValue() plus setting
PubSubPublishedVariableConf#getForceSubstituteValue() to true. Removes any previous
mapping (constant or node) for the field.public void setFieldToNode(String fieldName, UaNodeId node)
PubSubPublishedVariableConf.getPublishedVariable(). Removes any previous mapping
(constant or node) for the field.Copyright © 2026. All rights reserved.