Class CUnitNoTriangle
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.agent.Constraint<AUnit>
-
- eu.europa.ec.eurostat.jgiscotools.regionsimplify.CUnitNoTriangle
-
- All Implemented Interfaces:
Comparable<Constraint<?>>
public class CUnitNoTriangle extends Constraint<AUnit>
Ensure an edge does not become a triangle.- 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 CUnitNoTriangle(AUnit agent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeInitialValue()
void
computeSatisfaction()
boolean
isHard()
-
Methods inherited from class eu.europa.ec.eurostat.jgiscotools.agent.Constraint
clear, compareTo, computeCurrentValue, computeGoalValue, getAgent, getImportance, getMessage, getPriority, getSatisfaction, getTransformations, isSatisfied, setImportance, setPriority
-
-
-
-
Constructor Detail
-
CUnitNoTriangle
public CUnitNoTriangle(AUnit agent)
-
-
Method Detail
-
computeInitialValue
public void computeInitialValue()
- Overrides:
computeInitialValue
in classConstraint<AUnit>
-
computeSatisfaction
public void computeSatisfaction()
- Specified by:
computeSatisfaction
in classConstraint<AUnit>
-
isHard
public boolean isHard()
- Overrides:
isHard
in classConstraint<AUnit>
-
-