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