com.prosysopc.ua.types.opcua.server
Class TwoStateVariableTypeNode

java.lang.Object
  extended by com.prosysopc.ua.nodes.AbstractUaNode
      extended by com.prosysopc.ua.server.nodes.ServerNode
          extended by com.prosysopc.ua.server.nodes.BaseNode
              extended by com.prosysopc.ua.server.nodes.UaInstanceNode
                  extended by com.prosysopc.ua.server.nodes.UaVariableNode
                      extended by com.prosysopc.ua.server.nodes.CacheVariable
                          extended by com.prosysopc.ua.server.nodes.AbstractGeneratedVariableNode
                              extended by com.prosysopc.ua.types.opcua.server.BaseVariableTypeNode
                                  extended by com.prosysopc.ua.types.opcua.server.BaseDataVariableTypeNodeBase
                                      extended by com.prosysopc.ua.types.opcua.server.BaseDataVariableTypeNode
                                          extended by com.prosysopc.ua.types.opcua.server.StateVariableTypeNodeBase
                                              extended by com.prosysopc.ua.types.opcua.server.StateVariableTypeNode
                                                  extended by com.prosysopc.ua.types.opcua.server.TwoStateVariableTypeNodeBase
                                                      extended by 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


Field Summary
 
Fields inherited from class com.prosysopc.ua.server.nodes.BaseNode
NODE_VERSION_PROPERTY_NAME
 
Fields inherited from class com.prosysopc.ua.server.nodes.ServerNode
eventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap
 
Fields inherited from interface com.prosysopc.ua.types.opcua.TwoStateVariableType
EFFECTIVE_TRANSITION_TIME, FALSE_STATE, ID, TRANSITION_TIME, TRUE_STATE
 
Fields inherited from interface com.prosysopc.ua.types.opcua.StateVariableType
EFFECTIVE_DISPLAY_NAME, NAME, NUMBER
 
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.types.opcua.server.BaseDataVariableTypeNodeBase
getBaseDataVariableTypeNodeInitializer, setBaseDataVariableTypeNodeInitializer
 
Methods inherited from class com.prosysopc.ua.server.nodes.AbstractGeneratedVariableNode
callAfterCreateIfExists, getDefaultTypeDefinition, getQualifiedName
 
Methods inherited from class com.prosysopc.ua.server.nodes.CacheVariable
doSetValue, getValue, updateValue, updateValue
 
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.UaInstanceNode
addModellingRule, getTypeDefinition, getTypeDefinitionId, hasTypeDefinition, registerOverridePlainMethod, setTypeDefinitionId, supportsTypeDefinitionNode
 
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 class com.prosysopc.ua.nodes.AbstractUaNode
getForwardReferences, getInverseReferences, getReferences, getReferences, referenceTypeInherits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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.types.opcua.BaseVariableType
getValue, setValue
 
Methods inherited from interface com.prosysopc.ua.types.opcua.BaseInstanceType
getQualifiedName
 
Methods inherited from interface com.prosysopc.ua.nodes.UaVariable
addDataChangeListener, getAccessLevel, getHistorizing, getMinimumSamplingInterval, getUserAccessLevel, removeDataChangeListener, setAccessLevel, setHistorizing, setMinimumSamplingInterval, setUserAccessLevel
 
Methods inherited from interface com.prosysopc.ua.nodes.UaInstance
getTypeDefinition, getTypeDefinitionId, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionId
 
Methods inherited from interface com.prosysopc.ua.nodes.UaValueNode
getArrayDimensions, getDataType, getDataTypeId, getValueRank, setArrayDimensions, setDataType, setDataTypeId, setValue, setValueRank
 
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
 

Constructor Detail

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

Method Detail

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 texts
locale - 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 state
transitionTime - 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 texts
locale - 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.