com.prosysopc.ua.server
Class ContentFilterDefinition

java.lang.Object
  extended by com.prosysopc.ua.server.ContentFilterDefinition

public class ContentFilterDefinition
extends Object


Constructor Summary
ContentFilterDefinition()
           
 
Method Summary
 Boolean evaluate(EventData eventData, Boolean defaultResult)
          Evaluates the filter against an EventData.
 org.opcfoundation.ua.builtintypes.DiagnosticInfo[] getElementDiagnosticInfos()
           
 org.opcfoundation.ua.core.ContentFilterElementResult[] getElementResults()
           
 void parse(org.opcfoundation.ua.core.ContentFilter contentFilter, NodeManagerRoot nodeManagerRoot)
           
static void parseEventFilter(NodeManagerRoot nodeManagerRoot, org.opcfoundation.ua.core.EventFilter eventFilter, List<List<org.opcfoundation.ua.builtintypes.QualifiedName>> fieldPaths, ContentFilterDefinition filterDefinition, org.opcfoundation.ua.core.EventFilterResult eventFilterResult)
          Parse an EventFilter to fieldPaths and filterDefinition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentFilterDefinition

public ContentFilterDefinition()
Method Detail

parseEventFilter

public static void parseEventFilter(NodeManagerRoot nodeManagerRoot,
                                    org.opcfoundation.ua.core.EventFilter eventFilter,
                                    List<List<org.opcfoundation.ua.builtintypes.QualifiedName>> fieldPaths,
                                    ContentFilterDefinition filterDefinition,
                                    org.opcfoundation.ua.core.EventFilterResult eventFilterResult)
Parse an EventFilter to fieldPaths and filterDefinition.

Parameters:
nodeManagerRoot - Node Manager used to find necessary nodes for the filter
eventFilter - the filter definition received from the client application
fieldPaths - the fieldPaths to fill in
filterDefinition - the content filter definition to fill in
eventFilterResult - the results of the filter evaluation

evaluate

public Boolean evaluate(EventData eventData,
                        Boolean defaultResult)
Evaluates the filter against an EventData.

Parameters:
eventData - The event data structure that is being checked. Only the fields that are defined in the EventData are checked.
defaultResult - the result in case the filter evaluates to null, due to missing fields or fields that have value null.
Returns:
true if the event passes the filter, i.e. it would be sent to the client of this monitored item.

getElementDiagnosticInfos

public org.opcfoundation.ua.builtintypes.DiagnosticInfo[] getElementDiagnosticInfos()
Returns:
the elementDiagnosticInfos

getElementResults

public org.opcfoundation.ua.core.ContentFilterElementResult[] getElementResults()
Returns:
the elementResults

parse

public void parse(org.opcfoundation.ua.core.ContentFilter contentFilter,
                  NodeManagerRoot nodeManagerRoot)
Parameters:
contentFilter -
nodeManagerRoot - a node manager reference to use for nodeId->node searches


Copyright © 2018. All rights reserved.