Class Constraint<T extends Agent>
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.agent.Constraint<T>
-
- All Implemented Interfaces:
Comparable<Constraint<?>>
- Direct Known Subclasses:
CEdgeFaceSize
,CEdgeGranularity
,CEdgeNoTriangle
,CEdgeSelfIntersection
,CEdgesFacesContainPoints
,CEdgeSize
,CEdgeToEdgeIntersection
,CEdgeValidity
,CFaceContainPoints
,CFaceEdgeToEdgeIntersection
,CFaceNoTriangle
,CFaceSize
,CFaceValidity
,ConstraintOneShot
,CUnitContainPoints
,CUnitNoding
,CUnitNoNarrowGaps
,CUnitNoNarrowParts
,CUnitNoTriangle
,CUnitOverlap
,CUnitSizePreservation
,CUnitValidity
public abstract class Constraint<T extends Agent> extends Object implements Comparable<Constraint<?>>
- Author:
- julien Gaffuri
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Constraint.ConstraintPriorityComparator<R extends Agent>
static class
Constraint.ConstraintSatisfactionComparator<R extends Agent>
-
Field Summary
Fields Modifier and Type Field Description static Constraint.ConstraintPriorityComparator
COMPARATOR_CONSTR
static Constraint.ConstraintSatisfactionComparator
COMPARATOR_CONSTR_BY_SATISFACTION
protected double
satisfaction
-
Constructor Summary
Constructors Constructor Description Constraint(T agent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clear()
int
compareTo(Constraint<?> c)
void
computeCurrentValue()
void
computeGoalValue()
void
computeInitialValue()
abstract void
computeSatisfaction()
T
getAgent()
double
getImportance()
String
getMessage()
double
getPriority()
double
getSatisfaction()
List<Transformation<T>>
getTransformations()
boolean
isHard()
boolean
isSatisfied(double satisfactionResolution)
Constraint<T>
setImportance(double importance)
Constraint<T>
setPriority(double priority)
-
-
-
Field Detail
-
satisfaction
protected double satisfaction
-
COMPARATOR_CONSTR
public static final Constraint.ConstraintPriorityComparator COMPARATOR_CONSTR
-
COMPARATOR_CONSTR_BY_SATISFACTION
public static final Constraint.ConstraintSatisfactionComparator COMPARATOR_CONSTR_BY_SATISFACTION
-
-
Constructor Detail
-
Constraint
public Constraint(T agent)
-
-
Method Detail
-
getAgent
public T getAgent()
-
isHard
public boolean isHard()
-
getImportance
public double getImportance()
-
setImportance
public Constraint<T> setImportance(double importance)
-
getSatisfaction
public double getSatisfaction()
-
isSatisfied
public boolean isSatisfied(double satisfactionResolution)
-
computeInitialValue
public void computeInitialValue()
-
computeCurrentValue
public void computeCurrentValue()
-
computeGoalValue
public void computeGoalValue()
-
computeSatisfaction
public abstract void computeSatisfaction()
-
getPriority
public double getPriority()
-
setPriority
public Constraint<T> setPriority(double priority)
-
getTransformations
public List<Transformation<T>> getTransformations()
-
getMessage
public String getMessage()
-
compareTo
public int compareTo(Constraint<?> c)
- Specified by:
compareTo
in interfaceComparable<T extends Agent>
-
clear
public void clear()
-
-