Class ProgramStateMachineNode
- java.lang.Object
-
- com.plccom.opc.ua.client.application.model.nodes.UaNode
-
- com.plccom.opc.ua.client.application.model.nodes.UaObjectNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.BaseObjectNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.StateMachineNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.FiniteStateMachineNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.ProgramStateMachineNode
-
public class ProgramStateMachineNode extends FiniteStateMachineNode
PLCcom sdk ProgramStateMachineNode Implementation for Opc Ua- Author:
- Indi.An GmbH, www.indi-an.com, support@indi-an.com
-
-
Constructor Summary
Constructors Constructor Description ProgramStateMachineNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)default constructor for ProgramStateMachineNode instances
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetAutoDelete()Returns the attribute AUTO_DELETE from cache or directly from connected ua serverBooleangetCreatable()Returns the attribute CREATABLE from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.LocalizedTextgetCurrentState()Returns the CurrentStateBooleangetDeletable()Returns the attribute DELETABLE from cache or directly from connected ua serverBaseObjectNodegetFinalResultData()Returns the FinalResultData valueStateNodegetHalted()Returns the Halted valueTransitionNodegetHaltedToReady()Returns the HaltedToReady valuecom.plccom.opc.ua.builtintypes.UnsignedIntegergetInstanceCount()Returns the attribute INSTANCE_COUNT from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.LocalizedTextgetLastTransition()Returns the lastTransitioncom.plccom.opc.ua.builtintypes.UnsignedIntegergetMaxInstanceCount()Returns the attribute MAX_INSTANCE_COUNT from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.UnsignedIntegergetMaxRecycleCount()Returns the attribute MAX_RECYCLE_COUNT from cache or directly from connected ua servercom.plccom.opc.ua.core.ProgramDiagnosticDataTypegetProgramDiagnostics()Returns the ProgramDiagnosticsStateNodegetReady()Returns the Ready valueTransitionNodegetReadyToHalted()Returns the ReadyToHalted valueTransitionNodegetReadyToRunning()Returns the ReadyToRunning valueIntegergetRecycleCount()Returns the attribute RECYCLE_COUNT from cache or directly from connected ua serverStateNodegetRunning()Returns the Running valueTransitionNodegetRunningToHalted()Returns the RunningToHalted valueTransitionNodegetRunningToReady()Returns the RunningToReady valueTransitionNodegetRunningToSuspended()Returns the RunningToSuspended valueStateNodegetSuspended()Returns the Suspended valueTransitionNodegetSuspendedToHalted()Returns the SuspendedToHalted valueTransitionNodegetSuspendedToReady()Returns the SuspendedToReady valueTransitionNodegetSuspendedToRunning()Returns the SuspendedToRunning valuecom.plccom.opc.ua.builtintypes.StatusCodesetAutoDelete(Boolean value)Sets the attribute AUTO_DELETE of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetCreatable(Boolean value)Sets the attribute CREATABLE of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetCurrentState(com.plccom.opc.ua.builtintypes.LocalizedText value)Sets the CurrentStatecom.plccom.opc.ua.builtintypes.StatusCodesetDeletable(Boolean value)Sets the attribute DELETABLE of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetInstanceCount(com.plccom.opc.ua.builtintypes.UnsignedInteger value)Sets the attribute INSTANCE_COUNT of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetLastTransition(com.plccom.opc.ua.builtintypes.LocalizedText value)Sets the lastTransitioncom.plccom.opc.ua.builtintypes.StatusCodesetMaxInstanceCount(com.plccom.opc.ua.builtintypes.UnsignedInteger value)Sets the attribute MAX_INSTANCE_COUNT of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetMaxRecycleCount(com.plccom.opc.ua.builtintypes.UnsignedInteger value)Sets the attribute MAX_RECYCLE_COUNT of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetProgramDiagnostics(com.plccom.opc.ua.core.ProgramDiagnosticDataType value)Sets the ProgramDiagnosticscom.plccom.opc.ua.builtintypes.StatusCodesetRecycleCount(Integer value)Sets the attribute RECYCLE_COUNT of this node at connected ua server and refreshing the nodecache-
Methods inherited from class com.plccom.opc.ua.client.application.model.nodes.UaObjectNode
browseObjectType, browseVariable, getEventNotifier, readEventNotifier, setEventNotifier, writeEventNotifier
-
Methods inherited from class com.plccom.opc.ua.client.application.model.nodes.UaNode
getBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, readBrowseName, readDescription, readDisplayName, readNodeClass, readNodeId, readUserWriteMask, readWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMask, writeBrowseName, writeDescription, writeDisplayName, writeNodeClass, writeNodeId, writeUserWriteMask, writeWriteMask
-
-
-
-
Constructor Detail
-
ProgramStateMachineNode
public ProgramStateMachineNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)
default constructor for ProgramStateMachineNode instances- Parameters:
client- the client instancenodeId- the based nodeid
-
-
Method Detail
-
getCreatable
public Boolean getCreatable() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute CREATABLE from cache or directly from connected ua server- Returns:
- the CREATABLE attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setCreatable
public com.plccom.opc.ua.builtintypes.StatusCode setCreatable(Boolean value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute CREATABLE of this node at connected ua server and refreshing the nodecache- Parameters:
value- the CREATABLE attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getDeletable
public Boolean getDeletable() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute DELETABLE from cache or directly from connected ua server- Returns:
- the DELETABLE attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setDeletable
public com.plccom.opc.ua.builtintypes.StatusCode setDeletable(Boolean value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute DELETABLE of this node at connected ua server and refreshing the nodecache- Parameters:
value- the DELETABLE attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getAutoDelete
public Boolean getAutoDelete() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute AUTO_DELETE from cache or directly from connected ua server- Returns:
- the AUTO_DELETE attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setAutoDelete
public com.plccom.opc.ua.builtintypes.StatusCode setAutoDelete(Boolean value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute AUTO_DELETE of this node at connected ua server and refreshing the nodecache- Parameters:
value- the AUTO_DELETE attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getRecycleCount
public Integer getRecycleCount() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute RECYCLE_COUNT from cache or directly from connected ua server- Returns:
- the RECYCLE_COUNT attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setRecycleCount
public com.plccom.opc.ua.builtintypes.StatusCode setRecycleCount(Integer value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute RECYCLE_COUNT of this node at connected ua server and refreshing the nodecache- Parameters:
value- the RECYCLE_COUNT attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getInstanceCount
public com.plccom.opc.ua.builtintypes.UnsignedInteger getInstanceCount() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute INSTANCE_COUNT from cache or directly from connected ua server- Returns:
- the INSTANCE_COUNT attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setInstanceCount
public com.plccom.opc.ua.builtintypes.StatusCode setInstanceCount(com.plccom.opc.ua.builtintypes.UnsignedInteger value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute INSTANCE_COUNT of this node at connected ua server and refreshing the nodecache- Parameters:
value- the INSTANCE_COUNT attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getMaxInstanceCount
public com.plccom.opc.ua.builtintypes.UnsignedInteger getMaxInstanceCount() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute MAX_INSTANCE_COUNT from cache or directly from connected ua server- Returns:
- the MAX_INSTANCE_COUNT attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setMaxInstanceCount
public com.plccom.opc.ua.builtintypes.StatusCode setMaxInstanceCount(com.plccom.opc.ua.builtintypes.UnsignedInteger value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute MAX_INSTANCE_COUNT of this node at connected ua server and refreshing the nodecache- Parameters:
value- the MAX_INSTANCE_COUNT attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getMaxRecycleCount
public com.plccom.opc.ua.builtintypes.UnsignedInteger getMaxRecycleCount() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute MAX_RECYCLE_COUNT from cache or directly from connected ua server- Returns:
- the MAX_RECYCLE_COUNT attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setMaxRecycleCount
public com.plccom.opc.ua.builtintypes.StatusCode setMaxRecycleCount(com.plccom.opc.ua.builtintypes.UnsignedInteger value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute MAX_RECYCLE_COUNT of this node at connected ua server and refreshing the nodecache- Parameters:
value- the MAX_RECYCLE_COUNT attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getCurrentState
public com.plccom.opc.ua.builtintypes.LocalizedText getCurrentState() throws com.plccom.opc.ua.encoding.DecodingException, com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the CurrentState- Overrides:
getCurrentStatein classFiniteStateMachineNode- Returns:
- the CurrentState
- Throws:
com.plccom.opc.ua.encoding.DecodingException- throws if internal cast operation throws errorscom.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setCurrentState
public com.plccom.opc.ua.builtintypes.StatusCode setCurrentState(com.plccom.opc.ua.builtintypes.LocalizedText value) throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionSets the CurrentState- Overrides:
setCurrentStatein classFiniteStateMachineNode- Parameters:
value- the new CurrentState- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
getLastTransition
public com.plccom.opc.ua.builtintypes.LocalizedText getLastTransition() throws com.plccom.opc.ua.encoding.DecodingException, com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the lastTransition- Overrides:
getLastTransitionin classFiniteStateMachineNode- Returns:
- the lastTransition
- Throws:
com.plccom.opc.ua.encoding.DecodingException- throws if internal cast operation throws errorscom.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setLastTransition
public com.plccom.opc.ua.builtintypes.StatusCode setLastTransition(com.plccom.opc.ua.builtintypes.LocalizedText value) throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionSets the lastTransition- Overrides:
setLastTransitionin classFiniteStateMachineNode- Parameters:
value- the new lastTransition- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
getProgramDiagnostics
public com.plccom.opc.ua.core.ProgramDiagnosticDataType getProgramDiagnostics() throws com.plccom.opc.ua.encoding.DecodingException, com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the ProgramDiagnostics- Returns:
- the ProgramDiagnostics
- Throws:
com.plccom.opc.ua.encoding.DecodingException- throws if internal cast operation throws errorscom.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setProgramDiagnostics
public com.plccom.opc.ua.builtintypes.StatusCode setProgramDiagnostics(com.plccom.opc.ua.core.ProgramDiagnosticDataType value) throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionSets the ProgramDiagnostics- Parameters:
value- the new ProgramDiagnostics- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
getFinalResultData
public BaseObjectNode getFinalResultData() throws com.plccom.opc.ua.common.ServiceResultException
Returns the FinalResultData value- Returns:
- the FinalResultData value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getReady
public StateNode getReady() throws com.plccom.opc.ua.common.ServiceResultException
Returns the Ready value- Returns:
- the Ready value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getRunning
public StateNode getRunning() throws com.plccom.opc.ua.common.ServiceResultException
Returns the Running value- Returns:
- the Running value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getSuspended
public StateNode getSuspended() throws com.plccom.opc.ua.common.ServiceResultException
Returns the Suspended value- Returns:
- the Suspended value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getHalted
public StateNode getHalted() throws com.plccom.opc.ua.common.ServiceResultException
Returns the Halted value- Returns:
- the Halted value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getHaltedToReady
public TransitionNode getHaltedToReady() throws com.plccom.opc.ua.common.ServiceResultException
Returns the HaltedToReady value- Returns:
- the HaltedToReady value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getReadyToRunning
public TransitionNode getReadyToRunning() throws com.plccom.opc.ua.common.ServiceResultException
Returns the ReadyToRunning value- Returns:
- the ReadyToRunning value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getRunningToHalted
public TransitionNode getRunningToHalted() throws com.plccom.opc.ua.common.ServiceResultException
Returns the RunningToHalted value- Returns:
- the RunningToHalted value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getRunningToReady
public TransitionNode getRunningToReady() throws com.plccom.opc.ua.common.ServiceResultException
Returns the RunningToReady value- Returns:
- the RunningToReady value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getRunningToSuspended
public TransitionNode getRunningToSuspended() throws com.plccom.opc.ua.common.ServiceResultException
Returns the RunningToSuspended value- Returns:
- the RunningToSuspended value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getSuspendedToRunning
public TransitionNode getSuspendedToRunning() throws com.plccom.opc.ua.common.ServiceResultException
Returns the SuspendedToRunning value- Returns:
- the SuspendedToRunning value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getSuspendedToHalted
public TransitionNode getSuspendedToHalted() throws com.plccom.opc.ua.common.ServiceResultException
Returns the SuspendedToHalted value- Returns:
- the SuspendedToHalted value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getSuspendedToReady
public TransitionNode getSuspendedToReady() throws com.plccom.opc.ua.common.ServiceResultException
Returns the SuspendedToReady value- Returns:
- the SuspendedToReady value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getReadyToHalted
public TransitionNode getReadyToHalted() throws com.plccom.opc.ua.common.ServiceResultException
Returns the ReadyToHalted value- Returns:
- the ReadyToHalted value
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
-