Package org.yamcs.parameter
Class ParameterValue
java.lang.Object
org.yamcs.parameter.RawEngValue
org.yamcs.parameter.BasicParameterValue
org.yamcs.parameter.ParameterValue
- Direct Known Subclasses:
ContainerParameterValue
,PartialParameterValue
-
Field Summary
Fields inherited from class org.yamcs.parameter.RawEngValue
engValue, generationTime, rawValue
-
Constructor Summary
ConstructorDescriptionParameterValue
(String fqn) ParameterValue
(Parameter def) Creates a parameter value for a parameter -
Method Summary
Modifier and TypeMethodDescriptionlong
Retrieve the parameter definition for this parameter valueDeprecated.boolean
boolean
isExpired
(long now) Verifies if the parameter value is expired at a given timestamp.void
setAcquisitionTime
(long instant) void
toGpb()
toGpb
(int numericId) toProtobufParameterValue
(Optional<Yamcs.NamedObjectId> id, OptionalInt numericId) Convert a PV to a ProtobufPVtoString()
Methods inherited from class org.yamcs.parameter.BasicParameterValue
addAlarmRanges, fromGpb, fromGpb, getAcquisitionStatus, getCriticalRange, getDeltaMonitoringResult, getDistressRange, getExpireMillis, getExpireMills, getMonitoringResult, getRangeCondition, getSevereRange, getStatus, getWarningRange, getWatchRange, hasExpirationTime, setAcquisitionStatus, setCriticalRange, setDeltaMonitoringResult, setDistressRange, setEngValue, setExpireMillis, setMonitoringResult, setRangeCondition, setSevereRange, setStatus, setWarningRange, setWatchRange, toGpbAlarmRange
Methods inherited from class org.yamcs.parameter.RawEngValue
getEngValue, getGenerationTime, getRawValue, hasGenerationTime, setBinaryValue, setBooleanValue, setDoubleValue, setEngineeringValue, setFloatValue, setGenerationTime, setRawDoubleValue, setRawFloatValue, setRawSignedInteger, setRawSignedLong, setRawUnsignedInteger, setRawUnsignedLong, setRawValue, setRawValue, setRawValue, setRawValue, setSignedIntegerValue, setSignedLongValue, setStringValue, setUnsignedIntegerValue, setUnsignedLongValue
-
Constructor Details
-
ParameterValue
Creates a parameter value for a parameter- Parameters:
def
- the parameter definition
-
ParameterValue
-
ParameterValue
-
-
Method Details
-
setAcquisitionTime
public void setAcquisitionTime(long instant) -
setParameter
-
getParameter
Retrieve the parameter definition for this parameter value- Returns:
- parameter definition
-
getParameterQualifiedName
-
getParameterQualifiedNamed
Deprecated.- Returns:
-
getAcquisitionTime
public long getAcquisitionTime() -
toGpb
-
toGpb
-
toGpb
-
toProtobufParameterValue
public Pvalue.ParameterValue toProtobufParameterValue(Optional<Yamcs.NamedObjectId> id, OptionalInt numericId) Convert a PV to a ProtobufPV- Parameters:
id
- - the parameter identifier- Returns:
- the created ProtobufPV
-
hasAcquisitionTime
public boolean hasAcquisitionTime() -
isExpired
public boolean isExpired(long now) Verifies if the parameter value is expired at a given timestamp. Returns false if the expireMillis is not set.- Parameters:
now
-- Returns:
- true if the parameter is expired at the timestamp now.
-
toString
- Overrides:
toString
in classBasicParameterValue
-
getParameterQualifiedName()