Class Sample

java.lang.Object
org.eso.ias.plugin.Sample
Direct Known Subclasses:
Filter.EnrichedSample

public class Sample extends Object
A sample of the value read from the remote system.

The type of the value of the sample is is Object to allow the developer to send to the core any value without specifying its configuration. The translation to the proper type will be done by the converter that can always access the configuration database.

The alarm is a special case: to send alarms to the core the type of value must be Alarm. A sample is immutable.

Author:
acaproni
  • Field Details

    • value

      public final Object value
      The monitor point value or alarm red from the remote system.

      Note that for alarms the value must be Alarm

    • timestamp

      public final long timestamp
      The point in time when the value has been read from the remote system
  • Constructor Details

    • Sample

      public Sample(Object value, long timestamp)
      Constructor.

      Note that for alarms the of the value parameter must be Alarm

      Parameters:
      value - The value red from the system
      timestamp - The timestamp
    • Sample

      public Sample(Object value)
      Constructor

      Note that for alarms the of the value parameter must be Alarm

      Parameters:
      value - The value red from the system