| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.AbstractEntity
choco.AbstractConstraint
choco.integer.constraints.AbstractIntConstraint
choco.integer.constraints.AbstractLargeIntConstraint
choco.global.Occurrence
public class Occurrence
| Field Summary | |
|---|---|
|  boolean | constrainOnInfNumber | 
|  boolean | constrainOnSupNumber | 
|  StoredBitSet | isPossibleisPossible[i] is true if variable i can take the occurence value | 
|  StoredBitSet | isSureisSure[i] is true if variable i is instantiated to the occurence value. | 
|  StoredInt | nbPossibleStore the number of variables which can still take the occurence value | 
|  StoredInt | nbSureStore the number of variables which are instantiated to the occurence value | 
| Fields inherited from class choco.integer.constraints.AbstractLargeIntConstraint | 
|---|
| cIndices, cste, vars | 
| Fields inherited from class choco.AbstractConstraint | 
|---|
| active, constAwakeEvent, hook, priority | 
| Fields inherited from class choco.AbstractEntity | 
|---|
| problem | 
| Constructor Summary | |
|---|---|
| Occurrence(IntDomainVar[] vars,
           int occval,
           boolean onInf,
           boolean onSup)Constructor, API: should be used through the Problem.createOccurrence API Define an occurence constraint setting size{forall v in lvars | v = occval} <= or >= or = occVar assumes the occVar variable to be the last of the variables of the constraint: vars = [lvars | occVar] with lvars = list of variables for which the occurence of occval in their domain is constrained | |
| Method Summary | |
|---|---|
|  void | awake()Default initial propagation: full constraint re-propagation. | 
|  void | awakeOnInf(int idx)Default propagation on improved lower bound: propagation on domain revision. | 
|  void | awakeOnInst(int idx)Default propagation on instantiation: full constraint re-propagation. | 
|  void | awakeOnRem(int idx,
           int x)Default propagation on one value removal: propagation on domain revision. | 
|  void | awakeOnSup(int idx)Default propagation on improved upper bound: propagation on domain revision. | 
|  void | checkNbPossible() | 
|  void | checkNbSure() | 
|  java.lang.Object | clone()returns a copy of the constraint. | 
|  void | filter() | 
|  void | init(int occval,
     boolean onInf,
     boolean onSup) | 
|  boolean | isSatisfied()Semantic: Testing if the constraint is satisfied. | 
|  java.lang.String | pretty()pretty printing of the object. | 
|  void | propagate()Propagates the constraint awake events. | 
| Methods inherited from class choco.integer.constraints.AbstractLargeIntConstraint | 
|---|
| assignIndices, getConstraintIdx, getIntVar, getNbVars, getVar, isCompletelyInstantiated, setConstraintIndex, setVar | 
| Methods inherited from class choco.integer.constraints.AbstractIntConstraint | 
|---|
| awakeOnBounds, awakeOnRemovals, getSelfIndex, isConsistent | 
| Methods inherited from class choco.AbstractConstraint | 
|---|
| addListener, awakeOnVar, connectVar, constAwake, delete, fail, getEvent, getPlugIn, getPriority, getProblem, getVarIdxInOpposite, isActive, isEntailed, isEquivalentTo, opposite, setActive, setEntailed, setPassive, setPlugIn, substituteVar | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface choco.Propagator | 
|---|
| awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority, isEntailed | 
| Methods inherited from interface choco.prop.VarEventListener | 
|---|
| addListener, isActive, setActive, setPassive | 
| Methods inherited from interface choco.prop.VarEventListener | 
|---|
| addListener, isActive, setActive, setPassive | 
| Field Detail | 
|---|
public StoredBitSet isPossible
public StoredBitSet isSure
public StoredInt nbPossible
public StoredInt nbSure
public boolean constrainOnInfNumber
public boolean constrainOnSupNumber
| Constructor Detail | 
|---|
public Occurrence(IntDomainVar[] vars,
                  int occval,
                  boolean onInf,
                  boolean onSup)
occval - checking valueonInf - if true, constraint insures size{forall v in lvars | v = occval} <= occVaronSup - if true, constraint insure size{forall v in lvars | v = occval} >= occVar| Method Detail | 
|---|
public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Constraint
clone in interface Constraintclone in class AbstractLargeIntConstraintjava.lang.CloneNotSupportedException
public void init(int occval,
                 boolean onInf,
                 boolean onSup)
public void awakeOnInf(int idx)
                throws ContradictionException
AbstractIntConstraint
awakeOnInf in interface IntVarEventListenerawakeOnInf in class AbstractIntConstraintContradictionException
public void awakeOnSup(int idx)
                throws ContradictionException
AbstractIntConstraint
awakeOnSup in interface IntVarEventListenerawakeOnSup in class AbstractIntConstraintContradictionException
public void awakeOnInst(int idx)
                 throws ContradictionException
AbstractIntConstraint
awakeOnInst in interface IntVarEventListenerawakeOnInst in class AbstractIntConstraintContradictionException
public void awakeOnRem(int idx,
                       int x)
                throws ContradictionException
AbstractIntConstraint
awakeOnRem in interface IntVarEventListenerawakeOnRem in class AbstractIntConstraintContradictionExceptionpublic boolean isSatisfied()
Constraint
public void checkNbPossible()
                     throws ContradictionException
ContradictionException
public void checkNbSure()
                 throws ContradictionException
ContradictionException
public void filter()
            throws ContradictionException
ContradictionException
public void propagate()
               throws ContradictionException
AbstractLargeIntConstraint
propagate in interface Propagatorpropagate in class AbstractLargeIntConstraintContradictionException
public void awake()
           throws ContradictionException
AbstractConstraint
awake in interface Propagatorawake in class AbstractConstraintContradictionExceptionpublic java.lang.String pretty()
Entity
pretty in interface Entitypretty in class AbstractEntity| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||