public class SimpleHybridPlanner extends MetaConstraintSolver
MetaConstraintSolver.TerminalNodeMultiConstraintSolver.OPTIONS| Modifier and Type | Field and Description |
|---|---|
java.util.Vector<SimpleOperator> |
operatorsAlongBranch |
java.util.Vector<java.lang.String> |
unificationAlongBranch |
animationTime, breakSearch, counterMoves, currentFocus, currentVertex, g, metaConstraints, metaVarsToMetaCons, resolvers, resolversInverseMappingconstraintSolvers, ingredientsautoprop, components, constraintTypes, IDs, logger, name, nesting, noPropOnVarCreation, numcalls, skipPropagation, spacing, theNetwork, variableType| Constructor and Description |
|---|
SimpleHybridPlanner(long origin,
long horizon,
long animationTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGoal(SymbolicVariableActivity act) |
void |
addObservation(java.util.HashMap<java.lang.String,java.awt.Rectangle> observation) |
void |
addObservedSpatialFluents(SpatialFluent observedSpatialFluent) |
protected boolean |
addResolverSub(ConstraintNetwork metaVariable,
ConstraintNetwork metaValue)
Implement this method to define any additional operations that should happen before
adding a meta-value in the meta-CSP search (e.g., when branching).
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
getConflictRanking() |
java.util.Vector<SymbolicVariableActivity> |
getGoals() |
protected double |
getLowerBound() |
java.lang.String |
getManipulationAreaEncoding() |
java.util.Vector<SpatialFluent> |
getObservedSpatialFluents() |
java.util.HashMap<java.lang.String,BoundingBox> |
getOldRectangularRegion() |
protected double |
getUpperBound() |
protected boolean |
hasConflictClause(ConstraintNetwork metaValue) |
boolean |
learningFromFailure() |
void |
postBacktrack(MetaVariable mv)
Implement this method to define any extra operations that should be performed
after branching over a
MetaVariable. |
void |
preBacktrack()
Implement this method to define any extra operations that should be performed
before backtracking over a
MetaVariable (and before it is even chosen). |
protected void |
resetFalseClause() |
protected void |
retractResolverSub(ConstraintNetwork metaVariable,
ConstraintNetwork metaValue)
Implement this method to define any extra operations that should happen
after retracting a meta-value in the meta-CSP search (e.g., when backtracking).
|
protected void |
setLowerBound() |
void |
setManipulationAreasEncoding(java.lang.String manipulationAreaEncoding) |
void |
setObstacles(java.util.Vector<SpatialAssertionalRelation> sAssertionalRels) |
protected void |
setUpperBound() |
addMetaConstraint, addResolver, backtrack, branchAndBound, breakSearch, clearResolvers, draw, failurePruning, focus, getAddedResolvers, getConflict, getConstraintSolvers, getCounterMoves, getCurrentFocusConstraint, getDescription, getFocused, getGroundVariables, getMetaConstraint, getMetaConstraints, getResolvers, getResolversInverseMapping, getTimeOut, isFocused, propagate, registerValueChoiceFunctions, removeFromCurrentFocus, retractResolver, retractResolvers, setCounterMoves, setCurrentFocusConstraint, setFocus, setResolversaddConstraintsSub, createVariablesSub, createVariablesSub, createVariablesSub, drawConstraintNetworkHierarchy, drawConstraintSolverHierarchy, getConstraintNetworkHierarchy, getConstraintNetworksFromSolverHierarchy, getConstraintSolver, getConstraintSolverHierarchy, getConstraintSolversFromConstraintSolverHierarchy, getOption, removeConstraintsSub, removeVariablesSub, setConstraintSolver, setIngredients, setOptionsaddConstraint, addConstraintNoPropagation, addConstraints, addConstraintsDebug, addConstraintsNoPropagation, containsVariable, createVariable, createVariable, createVariables, createVariables, deplenish, getComponent, getComponents, getConstraintNetwork, getConstraints, getConstraints, getID, getOption, getVariable, getVariables, getVariables, getVariables, isCompatible, maskConstraints, removeConstraint, removeConstraints, removeVariable, removeVariables, setComponent, setComponents, setConstraintNetwork, setName, setOptions, toString, unmaskConstraintspublic java.util.Vector<SimpleOperator> operatorsAlongBranch
public java.util.Vector<java.lang.String> unificationAlongBranch
public SimpleHybridPlanner(long origin,
long horizon,
long animationTime)
public void preBacktrack()
MetaConstraintSolverMetaVariable (and before it is even chosen).preBacktrack in class MetaConstraintSolverpublic void postBacktrack(MetaVariable mv)
MetaConstraintSolverMetaVariable.postBacktrack in class MetaConstraintSolvermv - The MetaVariable that has been branched upon.public boolean learningFromFailure()
protected void retractResolverSub(ConstraintNetwork metaVariable, ConstraintNetwork metaValue)
MetaConstraintSolverretractResolverSub in class MetaConstraintSolvermetaVariable - The MetaVariable over which backtracking occurs.metaValue - The meta-value that has been retracted.protected boolean addResolverSub(ConstraintNetwork metaVariable, ConstraintNetwork metaValue)
MetaConstraintSolveraddResolverSub in class MetaConstraintSolvermetaVariable - The MetaVariable over which the search is branching.metaValue - The meta-value that has been selected (the branch).true iff the metavalue is consistent with the ground-CSP (Note: if false is returned, the ground-CSP has not been changed, i.e., it is left in a consistent state.)protected double getUpperBound()
getUpperBound in class MetaConstraintSolverprotected void setUpperBound()
setUpperBound in class MetaConstraintSolverprotected double getLowerBound()
getLowerBound in class MetaConstraintSolverprotected void setLowerBound()
setLowerBound in class MetaConstraintSolverprotected boolean hasConflictClause(ConstraintNetwork metaValue)
hasConflictClause in class MetaConstraintSolverprotected void resetFalseClause()
resetFalseClause in class MetaConstraintSolverpublic java.util.HashMap<java.lang.String,BoundingBox> getOldRectangularRegion()
public void addGoal(SymbolicVariableActivity act)
public java.util.Vector<SymbolicVariableActivity> getGoals()
public void addObservation(java.util.HashMap<java.lang.String,java.awt.Rectangle> observation)
public void addObservedSpatialFluents(SpatialFluent observedSpatialFluent)
public java.util.Vector<SpatialFluent> getObservedSpatialFluents()
public java.util.HashMap<java.lang.String,java.lang.Integer> getConflictRanking()
public void setManipulationAreasEncoding(java.lang.String manipulationAreaEncoding)
public java.lang.String getManipulationAreaEncoding()
public void setObstacles(java.util.Vector<SpatialAssertionalRelation> sAssertionalRels)