Class CEdgeValidity
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.agent.Constraint<AEdge>
-
- eu.europa.ec.eurostat.jgiscotools.regionsimplify.CEdgeValidity
-
- All Implemented Interfaces:
Comparable<Constraint<?>>
public class CEdgeValidity extends Constraint<AEdge>
Ensure the edge is valid: 1. The edge do not self intersect (it is simple) 2. Both faces connected to the edge (if any) remain valid, that is: - Their geometry is simple and valid - They do not overlap other faces (this could happen when for example an edge is significantly simplified and a samll island becomes on the other side)- 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 CEdgeValidity(AEdge agent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeSatisfaction()
boolean
isHard()
-
Methods inherited from class eu.europa.ec.eurostat.jgiscotools.agent.Constraint
clear, compareTo, computeCurrentValue, computeGoalValue, computeInitialValue, getAgent, getImportance, getMessage, getPriority, getSatisfaction, getTransformations, isSatisfied, setImportance, setPriority
-
-
-
-
Constructor Detail
-
CEdgeValidity
public CEdgeValidity(AEdge agent)
-
-
Method Detail
-
computeSatisfaction
public void computeSatisfaction()
- Specified by:
computeSatisfaction
in classConstraint<AEdge>
-
isHard
public boolean isHard()
- Overrides:
isHard
in classConstraint<AEdge>
-
-