Class ConstraintOneShot<T extends Agent>
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.agent.Constraint<T>
-
- eu.europa.ec.eurostat.jgiscotools.agent.ConstraintOneShot<T>
-
- All Implemented Interfaces:
Comparable<Constraint<?>>
- Direct Known Subclasses:
CTesselationRemoveNarrowGaps
public class ConstraintOneShot<T extends Agent> extends Constraint<T>
A constraint to force a transformation to be applied. The moment when the transformation is to be applied can be adjusted with the constraint priority.- Author:
- Julien Gaffuri
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.europa.ec.eurostat.jgiscotools.agent.Constraint
Constraint.ConstraintPriorityComparator<R extends Agent>, Constraint.ConstraintSatisfactionComparator<R extends Agent>
-
-
Field Summary
-
Fields inherited from class eu.europa.ec.eurostat.jgiscotools.agent.Constraint
COMPARATOR_CONSTR, COMPARATOR_CONSTR_BY_SATISFACTION, satisfaction
-
-
Constructor Summary
Constructors Constructor Description ConstraintOneShot(T agent, Transformation<T> transformation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeCurrentValue()
void
computeSatisfaction()
List<Transformation<T>>
getTransformations()
-
Methods inherited from class eu.europa.ec.eurostat.jgiscotools.agent.Constraint
clear, compareTo, computeGoalValue, computeInitialValue, getAgent, getImportance, getMessage, getPriority, getSatisfaction, isHard, isSatisfied, setImportance, setPriority
-
-
-
-
Constructor Detail
-
ConstraintOneShot
public ConstraintOneShot(T agent, Transformation<T> transformation)
-
-
Method Detail
-
computeCurrentValue
public void computeCurrentValue()
- Overrides:
computeCurrentValue
in classConstraint<T extends Agent>
-
computeSatisfaction
public void computeSatisfaction()
- Specified by:
computeSatisfaction
in classConstraint<T extends Agent>
-
getTransformations
public List<Transformation<T>> getTransformations()
- Overrides:
getTransformations
in classConstraint<T extends Agent>
-
-