Class Poop<T,V>

java.lang.Object
org.scictrl.csshell.Poop<T,V>
Type Parameters:
T - data type
V - vector delivering value, such as DBR

public final class Poop<T,V> extends Object
Poop is object, which combines deliverables from remotely connected object in one package. Contains value, timestamp, metadata, connection status at the time of creation and reference to vector, an object of actual communication layer, which delivered those values.
Author:
igor@scictrl.com
  • Constructor Details

    • Poop

      public Poop(T value, Timestamp timestamp, MetaData metaData, Status status, V vector)
      Creates new Poop object.
      Parameters:
      value - the value of reote connection
      timestamp - the timestamp, if null, then current local time is used
      metaData - if available metadata (limits, description, etc)
      status - the status of remote connection at the time of value retrieval
      vector - the object from communication layer, which delivered the value
  • Method Details

    • createTimestampPoop

      public static final Poop<Object,Object> createTimestampPoop()

      createTimestampPoop.

      Returns:
      a Poop object
    • getMetaData

      public MetaData getMetaData()

      Getter for the field metaData.

      Returns:
      a MetaData object
    • getStatus

      public Status getStatus()

      Getter for the field status.

      Returns:
      a Status object
    • getTimestamp

      public Timestamp getTimestamp()

      Getter for the field timestamp.

      Returns:
      a Timestamp object
    • getValue

      public T getValue()

      Getter for the field value.

      Returns:
      a T object
    • getVector

      public V getVector()

      Getter for the field vector.

      Returns:
      a V object
    • getString

      public String getString()

      getString.

      Returns:
      a String object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isStatusOK

      public boolean isStatusOK()

      isStatusOK.

      Returns:
      a boolean