Interface StateVariableType
- All Superinterfaces:
BaseDataVariableType,BaseVariableType,org.eclipse.milo.opcua.sdk.core.nodes.Node,org.eclipse.milo.opcua.sdk.core.nodes.VariableNode
- All Known Subinterfaces:
FiniteStateVariableType,TwoStateVariableType
- All Known Implementing Classes:
FiniteStateVariableTypeNode,StateVariableTypeNode,TwoStateVariableTypeNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.milo.opcua.sdk.core.QualifiedProperty<org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText>static final org.eclipse.milo.opcua.sdk.core.QualifiedProperty<Object>static final org.eclipse.milo.opcua.sdk.core.QualifiedProperty<org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName>static final org.eclipse.milo.opcua.sdk.core.QualifiedProperty<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.milo.opcua.stack.core.types.builtin.LocalizedTextGet the local value of the EffectiveDisplayName Node.Get the EffectiveDisplayNamePropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyType>Asynchronous implementation ofgetEffectiveDisplayNameNode().getId()Get the local value of the Id Node.Get the IdPropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyType>Asynchronous implementation ofgetIdNode().org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedNamegetName()Get the local value of the Name Node.Get the NamePropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyType>Asynchronous implementation ofgetNameNode().org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UIntegerGet the local value of the Number Node.Get the NumberPropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyType>Asynchronous implementation ofgetNumberNode().org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedTextRead the value of the EffectiveDisplayName Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText>An asynchronous implementation ofreadEffectiveDisplayName().readId()Read the value of the Id Node from the server and update the local value if the operation succeeds.An asynchronous implementation ofreadId().org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedNamereadName()Read the value of the Name Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName>An asynchronous implementation ofreadName().org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UIntegerRead the value of the Number Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger>An asynchronous implementation ofreadNumber().voidsetEffectiveDisplayName(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) Set the local value of the EffectiveDisplayName Node.voidSet the local value of the Id Node.voidsetName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName value) Set the local value of the Name Node.voidsetNumber(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) Set the local value of the Number Node.voidwriteEffectiveDisplayName(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) Write a new value for the EffectiveDisplayName Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeEffectiveDisplayNameAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) An asynchronous implementation ofwriteEffectiveDisplayName(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText).voidWrite a new value for the Id Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeIdAsync(Object value) An asynchronous implementation ofwriteId(java.lang.Object).voidwriteName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName value) Write a new value for the Name Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeNameAsync(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName value) An asynchronous implementation ofwriteName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName).voidwriteNumber(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) Write a new value for the Number Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeNumberAsync(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) An asynchronous implementation ofwriteNumber(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger).Methods inherited from interface org.eclipse.milo.opcua.sdk.core.nodes.Node
getAccessRestrictions, getBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getRolePermissions, getUserRolePermissions, getUserWriteMask, getWriteMask, setAccessRestrictions, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setRolePermissions, setUserRolePermissions, setUserWriteMask, setWriteMaskMethods inherited from interface org.eclipse.milo.opcua.sdk.core.nodes.VariableNode
getAccessLevel, getAccessLevelEx, getArrayDimensions, getDataType, getHistorizing, getMinimumSamplingInterval, getUserAccessLevel, getValue, getValueRank, setAccessLevel, setAccessLevelEx, setArrayDimensions, setDataType, setHistorizing, setMinimumSamplingInterval, setUserAccessLevel, setValue, setValueRank
-
Field Details
-
ID
-
NAME
static final org.eclipse.milo.opcua.sdk.core.QualifiedProperty<org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName> NAME -
NUMBER
static final org.eclipse.milo.opcua.sdk.core.QualifiedProperty<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> NUMBER -
EFFECTIVE_DISPLAY_NAME
static final org.eclipse.milo.opcua.sdk.core.QualifiedProperty<org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText> EFFECTIVE_DISPLAY_NAME
-
-
Method Details
-
getId
Get the local value of the Id Node.The returned value is the last seen; it is not read live from the server.
- Returns:
- the local value of the Id Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Id Node.
-
setId
Set the local value of the Id Node.The value is only updated locally; it is not written to the server.
- Parameters:
value- the local value to set for the Id Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Id Node.
-
readId
Read the value of the Id Node from the server and update the local value if the operation succeeds.- Returns:
- the
Objectvalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeId
Write a new value for the Id Node to the server and update the local value if the operation succeeds.- Parameters:
value- theObjectvalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readIdAsync
CompletableFuture<?> readIdAsync()An asynchronous implementation ofreadId().- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeIdAsync
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeIdAsync(Object value) An asynchronous implementation ofwriteId(java.lang.Object).- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getIdNode
Get the IdPropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Returns:
- the Id
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getIdNodeAsync
CompletableFuture<? extends PropertyType> getIdNodeAsync()Asynchronous implementation ofgetIdNode().- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-
getName
org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName getName() throws org.eclipse.milo.opcua.stack.core.UaExceptionGet the local value of the Name Node.The returned value is the last seen; it is not read live from the server.
- Returns:
- the local value of the Name Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Name Node.
-
setName
void setName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName value) throws org.eclipse.milo.opcua.stack.core.UaException Set the local value of the Name Node.The value is only updated locally; it is not written to the server.
- Parameters:
value- the local value to set for the Name Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Name Node.
-
readName
org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName readName() throws org.eclipse.milo.opcua.stack.core.UaExceptionRead the value of the Name Node from the server and update the local value if the operation succeeds.- Returns:
- the
QualifiedNamevalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeName
void writeName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName value) throws org.eclipse.milo.opcua.stack.core.UaException Write a new value for the Name Node to the server and update the local value if the operation succeeds.- Parameters:
value- theQualifiedNamevalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readNameAsync
CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName> readNameAsync()An asynchronous implementation ofreadName().- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeNameAsync
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeNameAsync(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName value) An asynchronous implementation ofwriteName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName).- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getNameNode
Get the NamePropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Returns:
- the Name
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getNameNodeAsync
CompletableFuture<? extends PropertyType> getNameNodeAsync()Asynchronous implementation ofgetNameNode().- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-
getNumber
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getNumber() throws org.eclipse.milo.opcua.stack.core.UaExceptionGet the local value of the Number Node.The returned value is the last seen; it is not read live from the server.
- Returns:
- the local value of the Number Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Number Node.
-
setNumber
void setNumber(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) throws org.eclipse.milo.opcua.stack.core.UaException Set the local value of the Number Node.The value is only updated locally; it is not written to the server.
- Parameters:
value- the local value to set for the Number Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Number Node.
-
readNumber
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger readNumber() throws org.eclipse.milo.opcua.stack.core.UaExceptionRead the value of the Number Node from the server and update the local value if the operation succeeds.- Returns:
- the
UIntegervalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeNumber
void writeNumber(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) throws org.eclipse.milo.opcua.stack.core.UaException Write a new value for the Number Node to the server and update the local value if the operation succeeds.- Parameters:
value- theUIntegervalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readNumberAsync
CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> readNumberAsync()An asynchronous implementation ofreadNumber().- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeNumberAsync
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeNumberAsync(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) An asynchronous implementation ofwriteNumber(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger).- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getNumberNode
Get the NumberPropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Returns:
- the Number
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getNumberNodeAsync
CompletableFuture<? extends PropertyType> getNumberNodeAsync()Asynchronous implementation ofgetNumberNode().- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-
getEffectiveDisplayName
org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText getEffectiveDisplayName() throws org.eclipse.milo.opcua.stack.core.UaExceptionGet the local value of the EffectiveDisplayName Node.The returned value is the last seen; it is not read live from the server.
- Returns:
- the local value of the EffectiveDisplayName Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the EffectiveDisplayName Node.
-
setEffectiveDisplayName
void setEffectiveDisplayName(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) throws org.eclipse.milo.opcua.stack.core.UaException Set the local value of the EffectiveDisplayName Node.The value is only updated locally; it is not written to the server.
- Parameters:
value- the local value to set for the EffectiveDisplayName Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the EffectiveDisplayName Node.
-
readEffectiveDisplayName
org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText readEffectiveDisplayName() throws org.eclipse.milo.opcua.stack.core.UaExceptionRead the value of the EffectiveDisplayName Node from the server and update the local value if the operation succeeds.- Returns:
- the
LocalizedTextvalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeEffectiveDisplayName
void writeEffectiveDisplayName(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) throws org.eclipse.milo.opcua.stack.core.UaException Write a new value for the EffectiveDisplayName Node to the server and update the local value if the operation succeeds.- Parameters:
value- theLocalizedTextvalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readEffectiveDisplayNameAsync
CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText> readEffectiveDisplayNameAsync()An asynchronous implementation ofreadEffectiveDisplayName().- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeEffectiveDisplayNameAsync
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeEffectiveDisplayNameAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) An asynchronous implementation ofwriteEffectiveDisplayName(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText).- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getEffectiveDisplayNameNode
Get the EffectiveDisplayNamePropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Returns:
- the EffectiveDisplayName
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getEffectiveDisplayNameNodeAsync
CompletableFuture<? extends PropertyType> getEffectiveDisplayNameNodeAsync()Asynchronous implementation ofgetEffectiveDisplayNameNode().- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-