Class CEdgeSize
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.agent.Constraint<AEdge>
-
- eu.europa.ec.eurostat.jgiscotools.regionsimplify.CEdgeSize
-
- All Implemented Interfaces:
Comparable<Constraint<?>>
public class CEdgeSize extends Constraint<AEdge>
Ensure too short segment edges are collapsed or lengthened.- 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeCurrentValue()
void
computeGoalValue()
void
computeSatisfaction()
List<Transformation<AEdge>>
getTransformations()
-
Methods inherited from class eu.europa.ec.eurostat.jgiscotools.agent.Constraint
clear, compareTo, computeInitialValue, getAgent, getImportance, getMessage, getPriority, getSatisfaction, isHard, isSatisfied, setImportance, setPriority
-
-
-
-
Constructor Detail
-
CEdgeSize
public CEdgeSize(AEdge agent, double minSize, double delSize)
-
-
Method Detail
-
computeCurrentValue
public void computeCurrentValue()
- Overrides:
computeCurrentValue
in classConstraint<AEdge>
-
computeGoalValue
public void computeGoalValue()
- Overrides:
computeGoalValue
in classConstraint<AEdge>
-
computeSatisfaction
public void computeSatisfaction()
- Specified by:
computeSatisfaction
in classConstraint<AEdge>
-
getTransformations
public List<Transformation<AEdge>> getTransformations()
- Overrides:
getTransformations
in classConstraint<AEdge>
-
-