com.prosysopc.ua.types.opcua.server
Class TwoStateVariableTypeNode
java.lang.Object
com.prosysopc.ua.nodes.AbstractUaNode
com.prosysopc.ua.server.nodes.ServerNode
com.prosysopc.ua.server.nodes.BaseNode
com.prosysopc.ua.server.nodes.UaInstanceNode
com.prosysopc.ua.server.nodes.UaVariableNode
com.prosysopc.ua.server.nodes.CacheVariable
com.prosysopc.ua.server.nodes.AbstractGeneratedVariableNode
com.prosysopc.ua.types.opcua.server.BaseVariableTypeNode
com.prosysopc.ua.types.opcua.server.BaseDataVariableTypeNodeBase
com.prosysopc.ua.types.opcua.server.BaseDataVariableTypeNode
com.prosysopc.ua.types.opcua.server.StateVariableTypeNodeBase
com.prosysopc.ua.types.opcua.server.StateVariableTypeNode
com.prosysopc.ua.types.opcua.server.TwoStateVariableTypeNodeBase
com.prosysopc.ua.types.opcua.server.TwoStateVariableTypeNode
- All Implemented Interfaces:
- UaInstance, UaNode, UaValueNode, UaVariable, GeneratedNode, BaseDataVariableType, BaseInstanceType, BaseVariableType, StateVariableType, TwoStateVariableType
public class TwoStateVariableTypeNode
- extends TwoStateVariableTypeNodeBase
|
Constructor Summary |
protected |
TwoStateVariableTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
NodeBuilder uses this, you should not call this yourself. |
|
Method Summary |
void |
afterCreate()
This method is called after NodeBuilder has constructed the instance, it is called for every
sub-node that also implement this interface |
void |
setFalseState(String text,
Locale locale)
Set the text for the description of the false state for a single locale. |
void |
setId(Boolean value)
|
void |
setId(boolean id,
org.opcfoundation.ua.builtintypes.DateTime transitionTime)
Set the state of the variable, i.e. the value of Id property |
protected void |
setIdWithTime(Boolean id,
org.opcfoundation.ua.builtintypes.DateTime transitionTime)
|
void |
setTrueState(String text,
Locale locale)
Set the text for the description of the true state for a single locale. |
| Methods inherited from class com.prosysopc.ua.types.opcua.server.TwoStateVariableTypeNodeBase |
getEffectiveTransitionTime, getEffectiveTransitionTimeNode, getFalseState, getFalseStateNode, getIdNode, getTransitionTime, getTransitionTimeNode, getTrueState, getTrueStateNode, getTwoStateVariableTypeNodeInitializer, isId, setEffectiveTransitionTime, setFalseState, setTransitionTime, setTrueState, setTwoStateVariableTypeNodeInitializer |
| Methods inherited from class com.prosysopc.ua.types.opcua.server.StateVariableTypeNodeBase |
getEffectiveDisplayName, getEffectiveDisplayNameNode, getId, getName, getNameNode, getNumber, getNumberNode, getStateVariableTypeNodeInitializer, setEffectiveDisplayName, setId, setName, setNumber, setNumber, setStateVariableTypeNodeInitializer |
| Methods inherited from class com.prosysopc.ua.server.nodes.UaVariableNode |
addProperty, addReflectiveVariable, beforeAddReference, checkPropertyType, checkPropertyType, createDataValue, exposeStructureWithReflectiveVariables, getAccessLevel, getArrayDimensions, getAttributes, getAttributes, getDataType, getDataTypeId, getHistorizing, getMinimumSamplingInterval, getNodeClass, getProperties, getStatus, getUserAccessLevel, getValueRank, hasUserWriteAccess, hasWriteAccess, initSupportedAttributes, isPropertyType, notifyValueChanging, notifyValueChanging, readAttributeValue, semanticsChanged, setAccessLevel, setArrayDimensions, setAttributes, setDataType, setDataTypeId, setHistorizing, setMinimumSamplingInterval, setStatus, setTypeDefinition, setTypeDefinitionId, setUserAccessLevel, setValue, setValue, setValueRank, structureChanged, toString, writeAttributeValue |
| Methods inherited from class com.prosysopc.ua.server.nodes.BaseNode |
addPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeVersion, getNodeVersionValue, getProperty, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setBrowseName, setDescription, setDisplayName, setNodeVersionValue, setPropertyValue, setUserWriteMask, setWriteMask, writeAttribute |
| Methods inherited from class com.prosysopc.ua.server.nodes.ServerNode |
addComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addReference, addReference, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, hashCode, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChain |
| Methods inherited from interface com.prosysopc.ua.types.opcua.StateVariableType |
getEffectiveDisplayName, getEffectiveDisplayNameNode, getId, getName, getNameNode, getNumber, getNumberNode, setEffectiveDisplayName, setId, setName, setNumber |
| Methods inherited from interface com.prosysopc.ua.nodes.UaNode |
addComponent, addProperty, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeClass, getNodeId, getNodeVersion, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute |
TwoStateVariableTypeNode
protected TwoStateVariableTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
- NodeBuilder uses this, you should not call this yourself. If you do call it, you need to create
the structure of the Node yourself
afterCreate
public void afterCreate()
- Description copied from interface:
GeneratedNode
- This method is called after NodeBuilder has constructed the instance, it is called for every
sub-node that also implement this interface
- Specified by:
afterCreate in interface GeneratedNode- Overrides:
afterCreate in class TwoStateVariableTypeNodeBase
setFalseState
public void setFalseState(String text,
Locale locale)
- Set the text for the description of the false state for a single locale. By default, "false"
(English) is defined.
- Parameters:
text - the localized text to add to the false state textslocale - The locale for which the text is defined
setId
public void setId(boolean id,
org.opcfoundation.ua.builtintypes.DateTime transitionTime)
- Set the state of the variable, i.e. the value of Id property
- Parameters:
id - the new statetransitionTime - the time for the state change; if null, currentTime is used
setId
public void setId(Boolean value)
- Specified by:
setId in interface TwoStateVariableType- Overrides:
setId in class TwoStateVariableTypeNodeBase
setTrueState
public void setTrueState(String text,
Locale locale)
- Set the text for the description of the true state for a single locale. By default, "true"
(English) is defined.
- Parameters:
text - the localized text to add to the true state textslocale - The locale for which the text is defined
setIdWithTime
protected void setIdWithTime(Boolean id,
org.opcfoundation.ua.builtintypes.DateTime transitionTime)
- Parameters:
id - transitionTime -
Copyright © 2018. All rights reserved.