public class PropUnreachable extends solver.constraints.Propagator<solver.variables.IntVar>
| Constructor and Description |
|---|
PropUnreachable(solver.variables.IntVar[] edges,
int from,
int to)
Enforce no path from one node to another.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getPropagationConditions(int vIdx) |
util.ESat |
isEntailed() |
void |
propagate(int evtmask) |
void |
propagate(int idxVarInProp,
int mask) |
String |
toString() |
addVariable, advise, arity, clearMask, compareTo, contradiction, decNbPendingEvt, defineIn, dynPriority, explain, flushPendingEvt, forcePropagate, getConstraint, getId, getMask, getNbPendingEvt, getNbVars, getPriority, getSolver, getVar, getVars, getVIndices, hashCode, incNbPendingEvt, isActive, isCompletelyInstantiated, isPassive, isReifiedAndSilent, isStateLess, setActive, setPassive, setReifiedSilent, setReifiedTrue, setVIndices, updateMaskpublic PropUnreachable(solver.variables.IntVar[] edges, int from, int to)
edges[i] = j implies
that there is a directed edge from node i to node j.
edges[i] ≥ edges.length implies that there are no direct edges
from node i.edges - the edgesfrom - the start nodeto - the end nodeprotected int getPropagationConditions(int vIdx)
getPropagationConditions in class solver.constraints.Propagator<solver.variables.IntVar>public void propagate(int evtmask) throws solver.exception.ContradictionException
propagate in class solver.constraints.Propagator<solver.variables.IntVar>solver.exception.ContradictionExceptionpublic void propagate(int idxVarInProp, int mask) throws solver.exception.ContradictionException
propagate in class solver.constraints.Propagator<solver.variables.IntVar>solver.exception.ContradictionExceptionpublic util.ESat isEntailed()
isEntailed in class solver.constraints.Propagator<solver.variables.IntVar>Copyright © 2013. All Rights Reserved.