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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValueHolder(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.doubleReturns value as double.static boolean[]getValid(boolean[] result, ValueLinks.ValueHolder[] vh, boolean defaultValue) Returns value holdersbooleanisAlarm()Returnstrueif connection has alarmlongReturns value as long.toString()static ValueLinks.ValueHolderComputes summary value holder.static ValueLinks.ValueHoldertoSummaryBit(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 failedtrueif 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()Returnstrueif connection has alarm- Returns:
trueif 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
-