public class GeneralModelChangeEvent extends Object
GeneralModelChangeEventType.| Constructor and Description |
|---|
GeneralModelChangeEvent(NamespaceTable namespaceTable) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAffectedNode(UaNode affectedNode)
Adds the node to affected nodes (if it doesn't already exist there.
|
void |
addChange(NodeId affectedNodeId,
NodeId typeDefinition,
int verb)
Add a model change to the event before triggering it.
|
void |
addChange(NodeId affectedNodeId,
NodeId typeDefinition,
ModelChangeType... changeTypes)
Add a model change to the event before triggering it.
|
void |
addChange(NodeId affectedNodeId,
NodeId typeDefinition,
UnsignedByte verb)
Add a model change to the event before triggering it.
|
void |
addChange(UaNode affectedNode,
ModelChangeType... changeTypes)
Add a model change to the event before triggering it.
|
void |
addChanges(List<ModelChangeStructureDataType> changes)
Adds a list of changes to the event.
|
void |
addChanges(ModelChangeStructureDataType[] changes)
Adds a list of changes to the event.
|
void |
clearChanges()
Clears the current set of changes.
|
UaNode[] |
getAffectedNodes()
The AffectedNodes is used to keep a list of UaNode objects that are affected by the change and
to which the NodeVersion should be updated after the event is sent.
|
ModelChangeStructureDataType[] |
getChanges()
Returns changes.
|
boolean |
hasChanges()
Returns true if there is at least one change, otherwise false.
|
boolean |
hasChanges(NodeId affectedNode)
Returns true if there is at least once change regarding the given NodeId, false if not.
|
void |
setChanges(ModelChangeStructureDataType[] changes)
Sets the list of changes to send.
|
void |
updateNodeVersions()
Updates the NodeVersion property of all
getAffectedNodes(). |
public GeneralModelChangeEvent(NamespaceTable namespaceTable)
public void addChange(NodeId affectedNodeId, NodeId typeDefinition, int verb)
affectedNodeId - The NodeId of the affected node. If the node is UaNode, use
addChange(UaNode, ModelChangeType...) instead.typeDefinition - the type of the node, in case it is an Object or Variable nodeverb - the change types made to the node, defined as a bit setaddChange(UaNode, ModelChangeType...),
addChange(NodeId, NodeId, ModelChangeType...)public void addChange(NodeId affectedNodeId, NodeId typeDefinition, ModelChangeType... changeTypes)
affectedNodeId - The NodeId of the affected nodetypeDefinition - the type of the node, in case it is an Object or Variable nodechangeTypes - The change type made to the affectedNodepublic void addChange(NodeId affectedNodeId, NodeId typeDefinition, UnsignedByte verb)
affectedNodeId - The NodeId of the affected node. If the node is UaNode, use
addChange(UaNode, ModelChangeType...) instead.typeDefinition - the type of the node, in case it is an Object or Variable nodeverb - the change types made to the node, defined as a bit setaddChange(UaNode, ModelChangeType...),
addChange(NodeId, NodeId, ModelChangeType...)public void addChange(UaNode affectedNode, ModelChangeType... changeTypes)
affectedNode - The node that was changedchangeTypes - The change type made to the affectedNodepublic void addChanges(List<ModelChangeStructureDataType> changes)
public void addChanges(ModelChangeStructureDataType[] changes)
changes - the changes to add.public void clearChanges()
triggerEvent
is calledpublic UaNode[] getAffectedNodes()
public ModelChangeStructureDataType[] getChanges()
public boolean hasChanges()
public boolean hasChanges(NodeId affectedNode)
public void setChanges(ModelChangeStructureDataType[] changes)
addChange(NodeId, NodeId, int) for each change in the list.changes - the list of changes to send with the event.addChange(com.prosysopc.ua.stack.builtintypes.NodeId, com.prosysopc.ua.stack.builtintypes.NodeId, int),
addChanges(java.util.List<com.prosysopc.ua.stack.core.ModelChangeStructureDataType>),
#triggerEventpublic void updateNodeVersions()
getAffectedNodes(). Should be called once
before triggering.protected void addAffectedNode(UaNode affectedNode)
Copyright © 2026. All rights reserved.