Class DefaultValueHelper

java.lang.Object
net.ssehub.easy.varModel.confModel.DefaultValueHelper

public class DefaultValueHelper extends 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
  • Field Details

  • Constructor Details

  • Method Details

    • 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.
    • getLogger

      private static net.ssehub.easy.basics.logger.EASyLoggerFactory.EASyLogger getLogger()
      Returns the actual logger.
      Returns:
      the logger