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
ConstructorsConstructorDescriptionParameterValue(String fqn) ParameterValue(Parameter def) Creates a parameter value for a parameter -
Method Summary
Modifier and TypeMethodDescriptionlongRetrieve the parameter definition for this parameter valueDeprecated.booleanbooleanisExpired(long now) Verifies if the parameter value is expired at a given timestamp.voidsetAcquisitionTime(long instant) voidorg.yamcs.protobuf.Pvalue.ParameterValuetoGpb()org.yamcs.protobuf.Pvalue.ParameterValuetoGpb(int numericId) org.yamcs.protobuf.Pvalue.ParameterValuetoGpb(org.yamcs.protobuf.Yamcs.NamedObjectId id) org.yamcs.protobuf.Pvalue.ParameterValuetoProtobufParameterValue(Optional<org.yamcs.protobuf.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, getExpireMills, getMonitoringResult, getRangeCondition, getSevereRange, getStatus, getWarningRange, getWatchRange, hasExpirationTime, setAcquisitionStatus, setCriticalRange, setDeltaMonitoringResult, setDistressRange, setEngValue, setExpireMillis, setMonitoringResult, setRangeCondition, setSevereRange, setStatus, setWarningRange, setWatchRange, toGpbAlarmRangeMethods 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
public org.yamcs.protobuf.Pvalue.ParameterValue toGpb() -
toGpb
public org.yamcs.protobuf.Pvalue.ParameterValue toGpb(org.yamcs.protobuf.Yamcs.NamedObjectId id) -
toGpb
public org.yamcs.protobuf.Pvalue.ParameterValue toGpb(int numericId) -
toProtobufParameterValue
public org.yamcs.protobuf.Pvalue.ParameterValue toProtobufParameterValue(Optional<org.yamcs.protobuf.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:
toStringin classBasicParameterValue
-
getParameterQualifiedName()