Class ParameterValue

Direct Known Subclasses:
ContainerParameterValue, PartialParameterValue

public class ParameterValue extends BasicParameterValue
  • Constructor Details

    • ParameterValue

      public ParameterValue(Parameter def)
      Creates a parameter value for a parameter
      Parameters:
      def - the parameter definition
    • ParameterValue

      public ParameterValue(String fqn)
    • ParameterValue

      public ParameterValue(ParameterValue pv)
  • Method Details

    • setAcquisitionTime

      public void setAcquisitionTime(long instant)
    • setParameter

      public void setParameter(Parameter p)
    • getParameter

      public Parameter getParameter()
      Retrieve the parameter definition for this parameter value
      Returns:
      parameter definition
    • getParameterQualifiedName

      public String getParameterQualifiedName()
    • getParameterQualifiedNamed

      @Deprecated public String getParameterQualifiedNamed()
      Returns:
    • getAcquisitionTime

      public long getAcquisitionTime()
    • toGpb

      public Pvalue.ParameterValue toGpb()
    • toGpb

    • toGpb

      public Pvalue.ParameterValue toGpb(int numericId)
    • 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

      public String toString()
      Overrides:
      toString in class BasicParameterValue