All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.xtce.FloatValidRange Maven / Gradle / Ivy

There is a newer version: 5.10.7
Show newest version
package org.yamcs.xtce;

import org.yamcs.xtce.util.DoubleRange;

/**
 * Holds the min/max of a ValidRange for floating point.
 * 
 * @author nm
 *
 */
public class FloatValidRange extends DoubleRange {
    private static final long serialVersionUID = 2L;

    /**
     * The range specified applies to the destination data type if true, or the raw source data type if false. The
     * default is false and reflects the more likely scenario of checking raw values before conversion or calibration in
     * telemetry.
     */
    private boolean validRangeAppliesToCalibrated;

    public FloatValidRange(double minInclusive, double maxInclusive) {
        super(minInclusive, maxInclusive);
    }

    public FloatValidRange(DoubleRange range) {
        super(range);
    }

    public boolean isValidRangeAppliesToCalibrated() {
        return validRangeAppliesToCalibrated;
    }

    public void setValidRangeAppliesToCalibrated(boolean validRangeAppliesToCalibrated) {
        this.validRangeAppliesToCalibrated = validRangeAppliesToCalibrated;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy