|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.cp.solver.constraints.global.geost.layers.GeometricKernel
public final class GeometricKernel
This is the Geometric kernel class. It implements the functionality of the sweep point algorithm.
Constructor Summary | |
---|---|
GeometricKernel(Constants c,
Setup s,
ExternalLayer extrL,
IntermediateLayer intermL,
boolean memo_,
Map<com.sun.tools.javac.util.Pair<Integer,Integer>,Boolean> included_,
Solver aSolver,
Geost_Constraint aConstraint)
Creates an ExternalLayer instance for a specific Constants class, a specific Setup class, a specific ExternalLayer class and a specific IntermediateLayer class. |
Method Summary | |
---|---|
static List<Point> |
circleIntersectiont(double x1,
double y1,
double r1,
double x2,
double y2,
double r2)
|
boolean |
filterCtrs(int k,
int[] oIDs,
List<ExternalConstraint> ectrs)
This is the main filtering algorithm associated with the Geost_Constraint. |
boolean |
fixAllObjs_incr(int k,
int[] oIDs,
List<ExternalConstraint> ectrs,
List<int[]> ctrlVs,
IStateInt idxLastFreeObject)
|
boolean |
fixAllObjs(int k,
int[] oIDs,
List<ExternalConstraint> ectrs,
List<int[]> ctrlVs,
IStateInt idxLastFreeObject)
Tries to fix all the objects within one single propagation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometricKernel(Constants c, Setup s, ExternalLayer extrL, IntermediateLayer intermL, boolean memo_, Map<com.sun.tools.javac.util.Pair<Integer,Integer>,Boolean> included_, Solver aSolver, Geost_Constraint aConstraint)
c
- The constants classs
- The Setup classextrL
- aSolver
- aConstraint
- Method Detail |
---|
public boolean filterCtrs(int k, int[] oIDs, List<ExternalConstraint> ectrs) throws ContradictionException
k
- The total number of dimensions (The dimension of the space we are working in)oIDs
- The list of object IDsectrs
- The list of external constraints
ContradictionException
public boolean fixAllObjs(int k, int[] oIDs, List<ExternalConstraint> ectrs, List<int[]> ctrlVs, IStateInt idxLastFreeObject) throws ContradictionException
k
- The total number of dimensions (The dimension of the space we are working in)oIDs
- The list of object IDsectrs
- The list of external constraintsctrlVs
- The list of controlling vectorsidxLastFreeObject
-
ContradictionException
public boolean fixAllObjs_incr(int k, int[] oIDs, List<ExternalConstraint> ectrs, List<int[]> ctrlVs, IStateInt idxLastFreeObject) throws ContradictionException
ContradictionException
public static List<Point> circleIntersectiont(double x1, double y1, double r1, double x2, double y2, double r2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |