Class MandatoryClassifierSettings
java.lang.Object
net.ssehub.easy.varModel.model.filter.mandatoryVars.MandatoryClassifierSettings
Settings for the
MandatoryDeclarationClassifier.- Author:
- El-Sharkawy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanConsider default values as already assigned values.private booleanConsider enumeration variables as mandatory, even if they don't have a default value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanReturns whether default values should be threaten as already set values.voidsetDefaultValueConsideration(boolean considerDefaultValues) Specification, whether default values shall be considered.voidsetTreatEnumsAsMandatory(boolean considerEnumerationsAsMandatory) Specification, whether enumeration variables shall be considered as mandatory as exactly one value should be selected.(package private) booleanReturns whether enumumeration variables shall be treaten as mandatory variables.
-
Field Details
-
considerDefaultValues
private boolean considerDefaultValuesConsider 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 considerEnumerationsAsMandatoryConsider 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 specifiedfalse: 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 specifiedfalse: 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
-