Class CUnitNoNarrowGaps
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.agent.Constraint<AUnit>
-
- eu.europa.ec.eurostat.jgiscotools.regionsimplify.CUnitNoNarrowGaps
-
- All Implemented Interfaces:
Comparable<Constraint<?>>
public class CUnitNoNarrowGaps extends Constraint<AUnit>
Constraint ensuring that a unit has no narrow gap.- 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 CUnitNoNarrowGaps(AUnit agent, double separationDistanceMeter, double nodingResolution, int quad, boolean preserveAllUnits, boolean preserveIfPointsInIt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeCurrentValue()
void
computeSatisfaction()
List<Transformation<AUnit>>
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
-
CUnitNoNarrowGaps
public CUnitNoNarrowGaps(AUnit agent, double separationDistanceMeter, double nodingResolution, int quad, boolean preserveAllUnits, boolean preserveIfPointsInIt)
-
-
Method Detail
-
computeCurrentValue
public void computeCurrentValue()
- Overrides:
computeCurrentValue
in classConstraint<AUnit>
-
computeSatisfaction
public void computeSatisfaction()
- Specified by:
computeSatisfaction
in classConstraint<AUnit>
-
getTransformations
public List<Transformation<AUnit>> getTransformations()
- Overrides:
getTransformations
in classConstraint<AUnit>
-
-