Class DefaultValueHelper


  • public class DefaultValueHelper
    extends java.lang.Object
    Assigns the defined default value(s). This class is intended to support interactive configuration. Otherwise, please rely on the reasoning capabilities. Instances of this class are intended for reuse, so call initialize(IDecisionVariable) before use (alternatively DefaultValueHelper(IDecisionVariable) for creation) and clear() after use.
    Author:
    Holger Eichelberger
    • Method Detail

      • fillDefaults

        public static void fillDefaults​(IDecisionVariable variable)
        Fills the value of the given variable with defined default values. Currently, evaluation errors are ignored.
        Parameters:
        variable - the variable to fill
      • initialize

        public void initialize​(IDecisionVariable variable)
        Initializes this instance.
        Parameters:
        variable - the variable to fill with default values
      • clear

        public void clear()
        Clears this instance for reuse.
      • assignDefaultValue

        private void assignDefaultValue​(IDecisionVariable var)
        Assigns default value(s) to the given variable var.
        Parameters:
        var - the variable to assign the default value(s)
      • assignConstraintValue

        private void assignConstraintValue()
        Assigns the default value to a constraint variable.
      • assignCompoundValue

        private void assignCompoundValue​(Compound compound)
        Assigns the default value to a compound.
        Parameters:
        compound - the compound type
      • assignSingleExpressionDefault

        private void assignSingleExpressionDefault()
        Assigns a basic default value based on a single expression.