Class ValueLinks.ValueHolder

java.lang.Object
org.scictrl.csshell.epics.server.ValueLinks.ValueHolder
Enclosing class:
ValueLinks

public static final class ValueLinks.ValueHolder extends Object
Holds value.
  • Field Details

    • name

      public final String name
      PV name.
    • value

      public final Object value
      Value.
    • severity

      public final gov.aps.jca.dbr.Severity severity
      Severity.
    • status

      public final gov.aps.jca.dbr.Status status
      Status.
    • type

      public final gov.aps.jca.dbr.DBRType type
      Value type.
    • failed

      public final boolean failed
      true if update has failed
    • timestamp

      public final long timestamp
      Timestamp of last update
  • Constructor Details

    • ValueHolder

      public ValueHolder(String name, Object value, gov.aps.jca.dbr.Severity severity, gov.aps.jca.dbr.Status status, gov.aps.jca.dbr.DBRType type, long timestamp)
      Constructor
      Parameters:
      name - PV name
      value - value
      severity - severity
      status - status
      type - value type
      timestamp - update timestamp
    • ValueHolder

      public ValueHolder(String name)
      Constructor
      Parameters:
      name - PV name
  • Method Details

    • toSummaryBit

      public static ValueLinks.ValueHolder toSummaryBit(ValueLinks.ValueHolder[] vh)
      Computes summary value holder.
      Parameters:
      vh - value holders
      Returns:
      summary holder
    • toSummaryBit

      public static ValueLinks.ValueHolder toSummaryBit(ValueLinks.ValueHolder[] vh, boolean[] disable)
      Computes summary value holder.
      Parameters:
      vh - value holders
      disable - disabled values
      Returns:
      summary holder
    • getValid

      public static boolean[] getValid(boolean[] result, ValueLinks.ValueHolder[] vh, boolean defaultValue)
      Returns value holders
      Parameters:
      result - array with result
      vh - value holders
      defaultValue - default value, if not valid
      Returns:
      array with result
    • isAlarm

      public boolean isAlarm()
      Returns true if connection has alarm
      Returns:
      true if connection has alarm
    • longValue

      public long longValue()
      Returns value as long.
      Returns:
      value as long
    • doubleValue

      public double doubleValue()
      Returns value as double.
      Returns:
      value as double
    • doubleArrayValue

      public double[] doubleArrayValue()
      Returns value as double array.
      Returns:
      value as double array
    • toString

      public String toString()
      Overrides:
      toString in class Object