Package org.scictrl.csshell.epics.server
Class ValueLinks.ValueHolder
java.lang.Object
org.scictrl.csshell.epics.server.ValueLinks.ValueHolder
- Enclosing class:
ValueLinks
Holds value.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionValueHolder
(String name) ConstructorValueHolder
(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 -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Returns value as double array.double
Returns value as double.static boolean[]
getValid
(boolean[] result, ValueLinks.ValueHolder[] vh, boolean defaultValue) Returns value holdersboolean
isAlarm()
Returnstrue
if connection has alarmlong
Returns value as long.toString()
static ValueLinks.ValueHolder
Computes summary value holder.static ValueLinks.ValueHolder
toSummaryBit
(ValueLinks.ValueHolder[] vh, boolean[] disable) Computes summary value holder.
-
Field Details
-
name
PV name. -
value
Value. -
severity
public final gov.aps.jca.dbr.Severity severitySeverity. -
status
public final gov.aps.jca.dbr.Status statusStatus. -
type
public final gov.aps.jca.dbr.DBRType typeValue type. -
failed
public final boolean failedtrue
if update has failed -
timestamp
public final long timestampTimestamp 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 namevalue
- valueseverity
- severitystatus
- statustype
- value typetimestamp
- update timestamp
-
ValueHolder
Constructor- Parameters:
name
- PV name
-
-
Method Details
-
toSummaryBit
Computes summary value holder.- Parameters:
vh
- value holders- Returns:
- summary holder
-
toSummaryBit
Computes summary value holder.- Parameters:
vh
- value holdersdisable
- disabled values- Returns:
- summary holder
-
getValid
public static boolean[] getValid(boolean[] result, ValueLinks.ValueHolder[] vh, boolean defaultValue) Returns value holders- Parameters:
result
- array with resultvh
- value holdersdefaultValue
- default value, if not valid- Returns:
- array with result
-
isAlarm
public boolean isAlarm()Returnstrue
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
-