Class DataItem
- java.lang.Object
-
- de.iip_ecosphere.platform.connectors.opcuav1.DataItem
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery
public class DataItem extends java.lang.Object implements de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQueryRepresents a monitored, changed data item send to theConnectorOutputTypeTranslatorfor detailed change data, but only if enabled throughModelAccess.setDetailNotifiedItem(boolean).- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.milo.opcua.stack.core.types.builtin.Variantdataprivate java.lang.Objectidentifierprivate de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQueryquery
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.milo.opcua.stack.core.types.builtin.VariantgetData()Returns the changed data.java.lang.ObjectgetIdentifier()Returns the identifier in the model.de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuerygetQuery()Returns the query.
-
-
-
Constructor Detail
-
DataItem
public DataItem(de.iip_ecosphere.platform.connectors.events.ConnectorTriggerQuery query)
Creates a data item.- Parameters:
query- the data trigger query
-
DataItem
public DataItem(java.lang.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 Milodata- the new data
-
-
Method Detail
-
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 java.lang.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)
-
-