Class BaselineSelection


  • public class BaselineSelection
    extends Object
    Utilities for deciding if a factor value is a baseline condition.
    Author:
    paul
    • Constructor Detail

      • BaselineSelection

        public BaselineSelection()
    • Method Detail

      • isBaselineCondition

        public static boolean isBaselineCondition​(FactorValue factorValue)
        Check if a given factor value indicates a baseline condition.
      • isBaselineCondition

        public static boolean isBaselineCondition​(Statement c)
        Check if a given statement indicates a baseline condition.
      • isBaselineCondition

        public static boolean isBaselineCondition​(Characteristic c)
        Check if a given characteristic indicate a baseline condition.
      • isForcedBaseline

        public static boolean isForcedBaseline​(FactorValue fv)
        Check if this factor value is the baseline, overriding other possible baselines.

        A baseline can be *forced* in two ways: either by setting FactorValue.setIsBaseline(Boolean) to true or by adding a characteristic with the FORCED_BASELINE_VALUE_URI URI. In practice, this is not much different from isBaselineCondition(Statement), but there might be cases where you would want to indicate that the baseline was explicitly forced.