Class PropBinCSP
- java.lang.Object
-
- org.chocosolver.solver.constraints.Propagator<IntVar>
-
- org.chocosolver.solver.constraints.extension.binary.PropBinCSP
-
- All Implemented Interfaces:
Comparable<Propagator>,ICause,Identity
- Direct Known Subclasses:
PropBinAC2001,PropBinAC3,PropBinAC3bitrm,PropBinAC3rm,PropBinFC
public abstract class PropBinCSP extends Propagator<IntVar>
- Since:
- 08/06/11
- Author:
- Charles Prud'homme, Hadrien Cambazard
-
-
Field Summary
Fields Modifier and Type Field Description protected BinRelationrelationprotected IntVarv0protected IntVarv1-
Fields inherited from class org.chocosolver.solver.constraints.Propagator
constraint, model, priority, reactToFineEvt, vars
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropBinCSP(IntVar x, IntVar y, BinRelation relation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TuplesextractTuples()Extract the tuples from this internal data structureBinRelationgetRelation()ESatisEntailed()Check wetherthisis entailed according to the current state of its internal structure.-
Methods inherited from class org.chocosolver.solver.constraints.Propagator
addVariable, arity, compareTo, doFinePropagation, doFlush, doSchedule, doScheduleEvent, dynPriority, equals, fails, forcePropagate, forcePropagationOnBacktrack, getConstraint, getId, getModel, getNbVars, getPosition, getPriority, getPropagationConditions, getVar, getVars, getVIndice, getVIndices, hashCode, isActive, isCompletelyInstantiated, isPassive, isReifiedAndSilent, isStateLess, linkVariables, propagate, propagate, reactToFineEvent, setActive, setPassive, setPosition, setReifiedSilent, setReifiedTrue, setVIndices, toString, unlinkVariables, unschedule, why
-
-
-
-
Field Detail
-
relation
protected BinRelation relation
-
v0
protected IntVar v0
-
v1
protected IntVar v1
-
-
Constructor Detail
-
PropBinCSP
protected PropBinCSP(IntVar x, IntVar y, BinRelation relation)
-
-
Method Detail
-
getRelation
public final BinRelation getRelation()
-
isEntailed
public ESat isEntailed()
Description copied from class:PropagatorCheck wetherthisis entailed according to the current state of its internal structure. At least, should check the satisfaction ofthis(when all is instantiated).- Specified by:
isEntailedin classPropagator<IntVar>- Returns:
- ESat.TRUE if entailed, ESat.FALSE if not entailed, ESat.UNDEFINED if unknown
-
extractTuples
public Tuples extractTuples()
Extract the tuples from this internal data structure- Returns:
- a tuples object
-
-