Class AbstractConstraint
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.configuration.model.constraints.AbstractConstraint
-
- All Implemented Interfaces:
Constraint
- Direct Known Subclasses:
MethodBasedConstraint
,TupleBasedConstraint
public abstract class AbstractConstraint extends Object implements Constraint
Abstract Class providing functionality and fields that are commonly used by all types of constraints.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.rwth.swc.coffee4j.engine.configuration.model.constraints.Constraint
Constraint.ConstraintConstants
-
-
Constructor Summary
Constructors Constructor Description AbstractConstraint(String name, List<String> parameterNames, ConstraintStatus constraintStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintStatus
getConstraintStatus()
String
getName()
List<String>
getParameterNames()
void
setName(String name)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.rwth.swc.coffee4j.engine.configuration.model.constraints.Constraint
checkIfValid, getConverterFactory
-
-
-
-
Constructor Detail
-
AbstractConstraint
public AbstractConstraint(String name, List<String> parameterNames, ConstraintStatus constraintStatus)
- Parameters:
name
- name to improve readability without further semanticsparameterNames
- the names of all involved parameters. Must not be, or containnull
, or be emptyconstraintStatus
- status is either Unknown or Correct which is related to conflict detection
-
-
Method Detail
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceConstraint
- Parameters:
name
- new name of the constraint.
-
getName
public String getName()
- Specified by:
getName
in interfaceConstraint
- Returns:
- name of the constraint.
-
getParameterNames
public List<String> getParameterNames()
- Specified by:
getParameterNames
in interfaceConstraint
- Returns:
- names of all involved parameters.
-
getConstraintStatus
public ConstraintStatus getConstraintStatus()
- Specified by:
getConstraintStatus
in interfaceConstraint
- Returns:
- status of the constraint.
-
-