|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.server.GeneralModelChangeEvent
public class GeneralModelChangeEvent
| Constructor Summary | |
|---|---|
GeneralModelChangeEvent(org.opcfoundation.ua.common.NamespaceTable namespaceTable)
|
|
| Method Summary | |
|---|---|
protected void |
addAffectedNode(UaNode affectedNode)
|
void |
addChange(org.opcfoundation.ua.builtintypes.NodeId affectedNodeId,
org.opcfoundation.ua.builtintypes.NodeId typeDefinition,
int verb)
Add a model change to the event before triggering it. |
void |
addChange(org.opcfoundation.ua.builtintypes.NodeId affectedNodeId,
org.opcfoundation.ua.builtintypes.NodeId typeDefinition,
ModelChangeType... changeTypes)
Add a model change to the event before triggering it. |
void |
addChange(org.opcfoundation.ua.builtintypes.NodeId affectedNodeId,
org.opcfoundation.ua.builtintypes.NodeId typeDefinition,
org.opcfoundation.ua.builtintypes.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<org.opcfoundation.ua.core.ModelChangeStructureDataType> changes)
Adds a list of changes to the event. |
void |
addChanges(org.opcfoundation.ua.core.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. |
org.opcfoundation.ua.core.ModelChangeStructureDataType[] |
getChanges()
|
boolean |
hasChanges()
|
void |
setChanges(org.opcfoundation.ua.core.ModelChangeStructureDataType[] changes)
Sets the list of changes to send. |
void |
updateNodeVersions()
Updates the NodeVersion property of all getAffectedNodes(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneralModelChangeEvent(org.opcfoundation.ua.common.NamespaceTable namespaceTable)
| Method Detail |
|---|
public void addChange(org.opcfoundation.ua.builtintypes.NodeId affectedNodeId,
org.opcfoundation.ua.builtintypes.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(org.opcfoundation.ua.builtintypes.NodeId affectedNodeId,
org.opcfoundation.ua.builtintypes.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 affectedNode
public void addChange(org.opcfoundation.ua.builtintypes.NodeId affectedNodeId,
org.opcfoundation.ua.builtintypes.NodeId typeDefinition,
org.opcfoundation.ua.builtintypes.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<org.opcfoundation.ua.core.ModelChangeStructureDataType> changes)
changes - public void addChanges(org.opcfoundation.ua.core.ModelChangeStructureDataType[] changes)
changes - the changes to add.public void clearChanges()
triggerEvent
is called
public UaNode[] getAffectedNodes()
public org.opcfoundation.ua.core.ModelChangeStructureDataType[] getChanges()
public boolean hasChanges()
public void setChanges(org.opcfoundation.ua.core.ModelChangeStructureDataType[] changes)
addChange(NodeId, NodeId, int) for each change in the list.
changes - the list of changes to send with the event.addChange(org.opcfoundation.ua.builtintypes.NodeId, org.opcfoundation.ua.builtintypes.NodeId, int),
addChanges(java.util.List) ,
#triggerEventpublic void updateNodeVersions()
getAffectedNodes(). Should be called once
before triggering.
protected void addAffectedNode(UaNode affectedNode)
affectedNode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||