java.lang.Object
de.iip_ecosphere.platform.connectors.opcuav1.DataItem
All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery

public class DataItem extends Object implements de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery
Represents a monitored, changed data item send to the ConnectorOutputTypeTranslator for detailed change data, but only if enabled through ModelAccess.setDetailNotifiedItem(boolean).
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.eclipse.milo.opcua.stack.core.types.builtin.Variant
     
    private Object
     
    private de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataItem(de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery query)
    Creates a data item.
    DataItem(Object identifier, org.eclipse.milo.opcua.stack.core.types.builtin.Variant data)
    Creates a data item.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.milo.opcua.stack.core.types.builtin.Variant
    Returns the changed data.
    Returns the identifier in the model.
    de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery
    Returns the query.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery

    delay
  • Field Details

    • query

      private de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery query
    • data

      private org.eclipse.milo.opcua.stack.core.types.builtin.Variant data
    • identifier

      private Object identifier
  • Constructor Details

    • DataItem

      public DataItem(de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery query)
      Creates a data item.
      Parameters:
      query - the data trigger query
    • DataItem

      public DataItem(Object identifier, org.eclipse.milo.opcua.stack.core.types.builtin.Variant data)
      Creates a data item.
      Parameters:
      identifier - the data item identifier in the model, usually a string but who knows in Milo
      data - the new data
  • Method Details

    • getData

      public org.eclipse.milo.opcua.stack.core.types.builtin.Variant getData()
      Returns the changed data.
      Returns:
      the changed data (may be null if getQuery() is specified)
    • getIdentifier

      public Object getIdentifier()
      Returns the identifier in the model.
      Returns:
      the data item identifier in the model, usually a string but who knows in Milo (may be null if getQuery() is specified)
    • getQuery

      public de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery getQuery()
      Returns the query.
      Returns:
      the query (may be null if getData()/getIdentifier() are specified)