public abstract class Implications extends Object
Project: choco-solver.
Constructor and Description |
---|
Implications() |
Modifier and Type | Method and Description |
---|---|
abstract void |
collectNodesFromConflict(ContradictionException conflict,
ValueSortedMap<IntVar> front)
Fill set with indices of nodes that throws the conflict
|
abstract void |
copyComplementSet(IntVar var,
IntIterableRangeSet set,
IntIterableRangeSet dest)
Copy in dest the complement of set
wrt to root domain of var
|
abstract void |
findPredecessor(ValueSortedMap<IntVar> front,
IntVar vi,
int p)
Find the direct predecessor of a node, declared on variable vi, starting from node at
position p.
|
abstract ICause |
getCauseAt(int idx)
Get the
ICause declared in node idx |
abstract IntIterableRangeSet |
getDomainAt(int idx)
Get the
IntIterableRangeSet that represents domain declared in node idx |
abstract int |
getEventMaskAt(int idx)
Get the mask of event declared in node idx.
|
abstract IntVar |
getIntVarAt(int idx)
Get the
IntVar declared in node idx |
abstract int |
getPredecessorOf(int idx)
Get the position of precedent entry of the one declared in node idx
|
abstract IntIterableRangeSet |
getRootDomain(IntVar var)
Get the
IntIterableRangeSet that represents domain of this variables
as declared in the model |
abstract int |
getValueAt(int idx)
Get the value declared in node idx
|
abstract void |
init(Model model)
Initialize this class
|
abstract void |
predecessorsOf(int p,
ValueSortedMap<IntVar> front)
Retrieve the nodes that are predecessors of node p in this and put them into set.
|
abstract void |
pushEvent(IntVar var,
ICause cause,
IntEventType mask,
int one,
int two,
int three)
Push an event
|
abstract void |
reset()
Reset the model, set at its creation state, before calling
init(Model) . |
abstract int |
size() |
abstract void |
undoLastEvent()
Undo the last event stored, use only when dealing with views.
|
public abstract void init(Model model)
model
- if needed, a reference to the model that uses this classpublic abstract void reset()
init(Model)
.public abstract void pushEvent(IntVar var, ICause cause, IntEventType mask, int one, int two, int three)
var
- modified variablecause
- cause of the modificationmask
- modification maskone
- an inttwo
- an intthree
- an intpublic abstract int size()
public abstract void collectNodesFromConflict(ContradictionException conflict, ValueSortedMap<IntVar> front)
conflict
- the failure, in the form of a ContradictionException
front
- (initially empty) map of (node, variable) in conflictpublic abstract void predecessorsOf(int p, ValueSortedMap<IntVar> front)
p
- index of the node whom predecessors have to be foundfront
- map of (node, variable) in conflictpublic abstract void findPredecessor(ValueSortedMap<IntVar> front, IntVar vi, int p)
front
- the set to updatevi
- the variable to look the predecessor forp
- the rightmost position of the node (below means outdated node).public abstract ICause getCauseAt(int idx)
ICause
declared in node idxidx
- position of the node to querypublic abstract int getEventMaskAt(int idx)
IntEventType
.idx
- position of the node to querypublic abstract IntVar getIntVarAt(int idx)
IntVar
declared in node idxidx
- position of the node to querypublic abstract int getValueAt(int idx)
idx
- position of the node to querypublic abstract IntIterableRangeSet getDomainAt(int idx)
IntIterableRangeSet
that represents domain declared in node idxidx
- position of the node to querypublic abstract int getPredecessorOf(int idx)
idx
- position of the node to querypublic abstract IntIterableRangeSet getRootDomain(IntVar var)
IntIterableRangeSet
that represents domain of this variables
as declared in the modelvar
- variable to querypublic abstract void copyComplementSet(IntVar var, IntIterableRangeSet set, IntIterableRangeSet dest)
var
- variable to querypublic abstract void undoLastEvent()
Copyright © 2018. All rights reserved.