Class MandatoryClassifierSettings

java.lang.Object
net.ssehub.easy.varModel.model.filter.mandatoryVars.MandatoryClassifierSettings

public class MandatoryClassifierSettings extends Object
Author:
El-Sharkawy
  • Field Details

    • considerDefaultValues

      private boolean considerDefaultValues
      Consider default values as already assigned values. true: Variables with default values are not mandatory, as there is already a value specified (default) false: Variables with default values should be (re-)assigned by the user, if used in a constraint.
    • considerEnumerationsAsMandatory

      private boolean considerEnumerationsAsMandatory
      Consider enumeration variables as mandatory, even if they don't have a default value. true: Enumerations are mandatory, as they enforce to select exact one value. false: Enumerations are not mandatory, as all other variables (default)
  • Constructor Details

    • MandatoryClassifierSettings

      public MandatoryClassifierSettings()
      Creates default settings.
  • Method Details

    • considerDefaultValues

      boolean considerDefaultValues()
      Returns whether default values should be threaten as already set values.
      Returns:
      true: Variables with default values are not mandatory, as there is already a value specified false: Variables with default values should be (re-)assigned by the user, if used in a constraint.
    • setDefaultValueConsideration

      public void setDefaultValueConsideration(boolean considerDefaultValues)
      Specification, whether default values shall be considered.
      Parameters:
      considerDefaultValues - true: Variables with default values are not mandatory, as there is already a value specified false: Variables with default values should be (re-)assigned by the user, if used in a constraint.
    • treatEnumsAsMandatory

      boolean treatEnumsAsMandatory()
      Returns whether enumumeration variables shall be treaten as mandatory variables.
      Returns:
      true: Enumerations are mandatory, as they enforce to select exact one value. false: Enumerations are not mandatory, as all other variables
    • setTreatEnumsAsMandatory

      public void setTreatEnumsAsMandatory(boolean considerEnumerationsAsMandatory)
      Specification, whether enumeration variables shall be considered as mandatory as exactly one value should be selected.
      Parameters:
      considerEnumerationsAsMandatory - true: Enumerations are mandatory, as they enforce to select exact one value. false: Enumerations are not mandatory, as all other variables