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.ConstraintConstraint.ConstraintConstants
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractConstraint(String name, List<String> parameterNames, ConstraintStatus constraintStatus)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintStatusgetConstraintStatus()StringgetName()List<String>getParameterNames()voidsetName(String name)StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface de.rwth.swc.coffee4j.engine.configuration.model.constraints.ConstraintcheckIfValid, getConverterFactory
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractConstraintpublic AbstractConstraint(String name, List<String> parameterNames, ConstraintStatus constraintStatus) - Parameters:
- name- name to improve readability without further semantics
- parameterNames- the names of all involved parameters. Must not be, or contain- null, or be empty
- constraintStatus- status is either Unknown or Correct which is related to conflict detection
 
 
- 
 - 
Method Detail- 
setNamepublic void setName(String name) - Specified by:
- setNamein interface- Constraint
- Parameters:
- name- new name of the constraint.
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- Constraint
- Returns:
- name of the constraint.
 
 - 
getParameterNamespublic List<String> getParameterNames() - Specified by:
- getParameterNamesin interface- Constraint
- Returns:
- names of all involved parameters.
 
 - 
getConstraintStatuspublic ConstraintStatus getConstraintStatus() - Specified by:
- getConstraintStatusin interface- Constraint
- Returns:
- status of the constraint.
 
 
- 
 
-