Class ParameterValue

    • Constructor Detail

      • ParameterValue

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

        public ParameterValue​(String fqn)
    • Method Detail

      • 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
      • getParameterQualifiedNamed

        public String getParameterQualifiedNamed()
      • getAcquisitionTime

        public long getAcquisitionTime()
      • 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,
                                                                                 boolean withUtc)
        Convert a PV to a ProtobufPV
        Parameters:
        id - - the parameter identifier
        withUtc - - if true - set the UTC string times
        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.