Package com.plccom.opc.ua.client.utils
Class UaEventFilterUtils
- java.lang.Object
-
- com.plccom.opc.ua.client.utils.UaEventFilterUtils
-
public class UaEventFilterUtils extends Object
PLCcom sdk UaEventFilterUtils Implementation with necessary static event mechanisms- Author:
- Indi.An GmbH, www.indi-an.com, support@indi-an.com
-
-
Constructor Summary
Constructors Constructor Description UaEventFilterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, com.plccom.opc.ua.builtintypes.QualifiedName propertyName)Adds the specified property to the event filter.static voidaddSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, com.plccom.opc.ua.builtintypes.QualifiedName propertyName, com.plccom.opc.ua.builtintypes.UnsignedInteger attributeId)Adds the specified property to the event filter.static voidaddSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, com.plccom.opc.ua.builtintypes.QualifiedName propertyName, UaAttributes attribute)Adds the specified property to the event filter.static voidaddSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, BrowseNames propertyName)Adds the specified property to the event filter.static voidaddSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, BrowseNames propertyName, com.plccom.opc.ua.builtintypes.UnsignedInteger attributeId)Adds the specified property to the event filter.static voidaddSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, BrowseNames propertyName, UaAttributes attribute)Adds the specified property to the event filter.static voidaddSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, String browsePath, com.plccom.opc.ua.builtintypes.UnsignedInteger attributeId)Adds the specified browse path to the event filter.static voidaddSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.core.SimpleAttributeOperand simpleAttributeOperand)Adds the specified property to the event filter.static ArrayList<com.plccom.opc.ua.core.SimpleAttributeOperand>constructSelectClauses(UaClient client, com.plccom.opc.ua.builtintypes.NodeId... eventTypeIds)contsructs one ore more select clauses for the given eventTypeIds *static com.plccom.opc.ua.core.EventFiltercreateEventfilter(boolean setDefaultInstanceNode)Standard constructor for UaEventFilter instancesstatic com.plccom.opc.ua.core.EventFiltercreateEventfilter(com.plccom.opc.ua.core.SimpleAttributeOperand[] SelectClauses, com.plccom.opc.ua.core.ContentFilter WhereClause)constructor for UaEventFilter instances with given select and where clausesstatic com.plccom.opc.ua.core.EventFiltercreateFilter(UaClient client, com.plccom.opc.ua.builtintypes.NodeId... eventTypeIds)Construct the eventfilter for the given eventTypeIds
-
-
-
Method Detail
-
createEventfilter
public static com.plccom.opc.ua.core.EventFilter createEventfilter(boolean setDefaultInstanceNode)
Standard constructor for UaEventFilter instances- Parameters:
setDefaultInstanceNode- if parameter is true, automatically setting the the default instance node = Identifiers.BaseEventType The default instance node must always request the NodeId for the condition instances. this can be done by specifying an operand with an empty browse path.- Returns:
- the created event filter object
-
createEventfilter
public static com.plccom.opc.ua.core.EventFilter createEventfilter(com.plccom.opc.ua.core.SimpleAttributeOperand[] SelectClauses, com.plccom.opc.ua.core.ContentFilter WhereClause)constructor for UaEventFilter instances with given select and where clauses- Parameters:
SelectClauses- an array of select clausesWhereClause- a content filter object with given filter rules- Returns:
- the created event filter object
-
addSelectClause
public static void addSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, BrowseNames propertyName)Adds the specified property to the event filter.- Parameters:
eventFilter- the EventFilter objecteventTypeId- event type id as NodeId objectpropertyName- name of property @seeBrowseNames
-
addSelectClause
public static void addSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, BrowseNames propertyName, UaAttributes attribute)Adds the specified property to the event filter.- Parameters:
eventFilter- the EventFilter objecteventTypeId- event type id as NodeId objectpropertyName- name of property @seeBrowseNamesattribute- the attribute
-
addSelectClause
public static void addSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, BrowseNames propertyName, com.plccom.opc.ua.builtintypes.UnsignedInteger attributeId)Adds the specified property to the event filter.- Parameters:
eventFilter- the EventFilter objecteventTypeId- event type id as NodeId objectpropertyName- name of property @seeBrowseNamesattributeId- the attribute
-
addSelectClause
public static void addSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, com.plccom.opc.ua.builtintypes.QualifiedName propertyName)Adds the specified property to the event filter.- Parameters:
eventFilter- the EventFilter objecteventTypeId- event type id as NodeId objectpropertyName- name of property @seeBrowseNames
-
addSelectClause
public static void addSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, com.plccom.opc.ua.builtintypes.QualifiedName propertyName, UaAttributes attribute)Adds the specified property to the event filter.- Parameters:
eventFilter- the EventFilter objecteventTypeId- event type id as NodeId objectpropertyName- name of property @seeBrowseNamesattribute- the attribute
-
addSelectClause
public static void addSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, com.plccom.opc.ua.builtintypes.QualifiedName propertyName, com.plccom.opc.ua.builtintypes.UnsignedInteger attributeId)Adds the specified property to the event filter.- Parameters:
eventFilter- the EventFilter objecteventTypeId- event type id as NodeId objectpropertyName- name of property @seeBrowseNamesattributeId- the attribute
-
addSelectClause
public static void addSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.core.SimpleAttributeOperand simpleAttributeOperand)Adds the specified property to the event filter.- Parameters:
eventFilter- the EventFilter objectsimpleAttributeOperand- a simpleAttributeOperand object
-
addSelectClause
public static void addSelectClause(com.plccom.opc.ua.core.EventFilter eventFilter, com.plccom.opc.ua.builtintypes.NodeId eventTypeId, String browsePath, com.plccom.opc.ua.builtintypes.UnsignedInteger attributeId)Adds the specified browse path to the event filter.- Parameters:
eventFilter- the EventFilter objecteventTypeId- event type id as NodeId objectbrowsePath- browse path of event type id as NodeId objectattributeId- the atribute
-
createFilter
public static com.plccom.opc.ua.core.EventFilter createFilter(UaClient client, com.plccom.opc.ua.builtintypes.NodeId... eventTypeIds) throws com.plccom.opc.ua.common.ServiceResultException
Construct the eventfilter for the given eventTypeIds- Parameters:
client- a valid UaClient objecteventTypeIds- one or more 'event type ids' as NodeId- Returns:
- a EventFilter object with select and where clauses
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
constructSelectClauses
public static ArrayList<com.plccom.opc.ua.core.SimpleAttributeOperand> constructSelectClauses(UaClient client, com.plccom.opc.ua.builtintypes.NodeId... eventTypeIds) throws com.plccom.opc.ua.common.ServiceResultException
contsructs one ore more select clauses for the given eventTypeIds *Note: Each event type is an ObjectType in the address space. The fields supported by the server are defined as children of the ObjectType. Many of the fields are manadatory and are defined by the UA information model, however, indiviudual servers many not support all of the optional fields.
- Parameters:
client- a valid UaClient objecteventTypeIds- one or more 'event type ids' as NodeId- Returns:
- a Arraylist of SimpleAttributeOperand objects as select clauses
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
-