Class CUnitSizePreservation
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.agent.Constraint<AUnit>
-
- eu.europa.ec.eurostat.jgiscotools.regionsimplify.CUnitSizePreservation
-
- All Implemented Interfaces:
Comparable<Constraint<?>>
public class CUnitSizePreservation extends Constraint<AUnit>
Constraint ensuring a unit's size is equal to a goal one, typically the initial value.- 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 CUnitSizePreservation(AUnit agent, double goalValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeCurrentValue()
void
computeSatisfaction()
-
Methods inherited from class eu.europa.ec.eurostat.jgiscotools.agent.Constraint
clear, compareTo, computeGoalValue, computeInitialValue, getAgent, getImportance, getMessage, getPriority, getSatisfaction, getTransformations, isHard, isSatisfied, setImportance, setPriority
-
-
-
-
Constructor Detail
-
CUnitSizePreservation
public CUnitSizePreservation(AUnit agent, double goalValue)
-
-
Method Detail
-
computeCurrentValue
public void computeCurrentValue()
- Overrides:
computeCurrentValue
in classConstraint<AUnit>
-
computeSatisfaction
public void computeSatisfaction()
- Specified by:
computeSatisfaction
in classConstraint<AUnit>
-
-