public class GeometricConstraintSolver extends RCC2ConstraintSolver
ConstraintSolver.OPTIONS| Modifier and Type | Field and Description |
|---|---|
static float |
MAX_X |
static float |
MAX_Y |
static float |
MIN_X |
static float |
MIN_Y |
autoprop, components, constraintTypes, IDs, logger, name, nesting, noPropOnVarCreation, numcalls, skipPropagation, spacing, theNetwork, variableType| Constructor and Description |
|---|
GeometricConstraintSolver() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addConstraintsSub(Constraint[] c)
This method must be implemented by the developer of the specific
ConstraintSolver
class. |
boolean |
applyDCcliping(Polygon p1,
Polygon p2) |
static java.lang.String |
drawPolygons(java.util.Vector<java.util.Vector<Vec2>> toPlots,
long horizon) |
static double |
getArea(Vec2[] vertices) |
static Vec2[] |
getIntersectionPolygon(Polygon p1,
Polygon p2) |
Variable[] |
getObstacles() |
static GeometricConstraint.Type |
getRelation(Polygon p1,
Polygon p2) |
boolean |
propagate()
Propagate the constraint network.
|
protected void |
removeConstraintsSub(Constraint[] c)
This method must be implemented by the developer of the specific
ConstraintSolver
class. |
void |
setObstacles(Variable[] variables) |
createVariablesSub, registerValueChoiceFunctions, removeVariablesSubaddConstraint, addConstraintNoPropagation, addConstraints, addConstraintsDebug, addConstraintsNoPropagation, containsVariable, createVariable, createVariable, createVariables, createVariables, createVariablesSub, deplenish, getComponent, getComponents, getConstraintNetwork, getConstraints, getConstraints, getDescription, getID, getOption, getVariable, getVariables, getVariables, getVariables, isCompatible, maskConstraints, removeConstraint, removeConstraints, removeVariable, removeVariables, setComponent, setComponents, setConstraintNetwork, setName, setOptions, toString, unmaskConstraintspublic static final float MAX_X
public static final float MAX_Y
public static final float MIN_X
public static final float MIN_Y
public boolean propagate()
ConstraintSolverpropagate in class RCC2ConstraintSolverpublic static GeometricConstraint.Type getRelation(Polygon p1, Polygon p2)
public static double getArea(Vec2[] vertices)
protected boolean addConstraintsSub(Constraint[] c)
ConstraintSolverConstraintSolver
class. It should implement all operations necessary to add multiple constraints, and should return
true upon success, false otherwise.addConstraintsSub in class RCC2ConstraintSolverc - The constraints to add.true iff the constraints were added to the ConstraintNetwork.protected void removeConstraintsSub(Constraint[] c)
ConstraintSolverConstraintSolver
class. Should implement all operations necessary to remove a batch of constraints.removeConstraintsSub in class RCC2ConstraintSolverc - The constraints to remove.public static java.lang.String drawPolygons(java.util.Vector<java.util.Vector<Vec2>> toPlots, long horizon)
public void setObstacles(Variable[] variables)
public Variable[] getObstacles()