public interface UaServerNode extends Node
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(Reference reference)
Add a
Reference to this node. |
DataValue |
getAttribute(AttributeContext context,
AttributeId attributeId)
Get an attribute of this node, taking the
AttributeContext into account and respecting any
AttributeDelegate this node may have. |
UaNodeContext |
getNodeContext() |
com.google.common.collect.ImmutableList<Reference> |
getReferences() |
default DataValue |
readAttribute(AttributeContext context,
AttributeId attributeId,
@Nullable TimestampsToReturn timestamps,
@Nullable String indexRange,
@Nullable QualifiedName dataEncoding)
Read the specified attribute, applying
timestamps and indexRange if specified. |
default DataValue |
readAttribute(AttributeContext context,
UInteger attribute)
Read the specified attribute.
|
default DataValue |
readAttribute(AttributeContext context,
UInteger attribute,
@Nullable TimestampsToReturn timestamps,
@Nullable String indexRange,
@Nullable QualifiedName dataEncoding)
Read the specified attribute.
|
void |
removeReference(Reference reference)
Remove a
Reference from this node. |
void |
setAttribute(AttributeContext context,
AttributeId attributeId,
DataValue value)
Set an attribute of this node, taking the
AttributeContext into account and respecting any
AttributeDelegate this node may have. |
default void |
writeAttribute(AttributeContext context,
AttributeId attributeId,
DataValue value,
String indexRange)
Write to the specified attribute.
|
default void |
writeAttribute(AttributeContext context,
UInteger attribute,
DataValue value,
String indexRange)
Write to the specified attribute.
|
getBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMaskUaNodeContext getNodeContext()
UaNodeContext for this UaServerNode.void addReference(Reference reference)
Reference to this node.reference - the Reference to add.void removeReference(Reference reference)
Reference from this node.reference - to remove.com.google.common.collect.ImmutableList<Reference> getReferences()
References.default DataValue readAttribute(AttributeContext context, UInteger attribute)
If the attribute is not specified on this node, a value with status StatusCodes.Bad_AttributeIdInvalid
will be returned.
attribute - the id of the attribute to read.default DataValue readAttribute(AttributeContext context, UInteger attribute, @Nullable @Nullable TimestampsToReturn timestamps, @Nullable @Nullable String indexRange, @Nullable @Nullable QualifiedName dataEncoding)
If the attribute is not specified on this node, a value with status StatusCodes.Bad_AttributeIdInvalid
will be returned.
attribute - the id of the attribute to read.timestamps - the TimestampsToReturn.indexRange - the index range to read. Must be a parseable by NumericRange.dataEncoding - the requested data encoding.default DataValue readAttribute(AttributeContext context, AttributeId attributeId, @Nullable @Nullable TimestampsToReturn timestamps, @Nullable @Nullable String indexRange, @Nullable @Nullable QualifiedName dataEncoding)
timestamps and indexRange if specified.
If the attribute is not specified on this node, a value with status StatusCodes.Bad_AttributeIdInvalid
will be returned.
attributeId - the id of the attribute to read.timestamps - the TimestampsToReturn.indexRange - the index range to read. Must be a parseable by NumericRange.dataEncoding - the requested data encoding.default void writeAttribute(AttributeContext context, UInteger attribute, DataValue value, String indexRange) throws UaException
context - the AttributeContext.attribute - the id of the attribute to write.value - the DataValue write.indexRange - the index range to write. Must be a parseable by NumericRange.UaException - if writing to the attribute fails.default void writeAttribute(AttributeContext context, AttributeId attributeId, DataValue value, String indexRange) throws UaException
context - the AttributeContext.attributeId - the AttributeId of the attribute to write.value - the DataValue write.indexRange - the index range to write. Must be a parseable by NumericRange.UaException - if writing to the attribute fails.DataValue getAttribute(AttributeContext context, AttributeId attributeId)
AttributeContext into account and respecting any
AttributeDelegate this node may have.context - the AttributeContext to get the attribute in.attributeId - the AttributeId to get.DataValue containing the attribute value or a StatusCode describing any failure.void setAttribute(AttributeContext context, AttributeId attributeId, DataValue value) throws UaException
AttributeContext into account and respecting any
AttributeDelegate this node may have.context - the AttributeContext to set the attribute in.attributeId - the AttributeId to set.value - the new DataValue to set for the attribute.UaException - if setting the attribute failed for any reason.Copyright © 2021. All rights reserved.