|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.AbstractEntity
choco.palm.search.AbstractDecision
choco.palm.search.Assignment
public class Assignment
Created by IntelliJ IDEA. User: Hadrien Date: 29 déc. 2004 Time: 16:41:51 To change this template use File | Settings | File Templates.
Field Summary | |
---|---|
protected int |
value
|
protected ExplainedIntVar |
var
|
Fields inherited from class choco.AbstractEntity |
---|
hook, problem |
Constructor Summary | |
---|---|
Assignment(ExplainedIntVar var,
int value)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
void |
constAwake(boolean b)
Forces a propagation of the constraint. |
void |
delete()
Removes a constraint from the network. |
boolean |
equals(Assignment dec)
|
int |
getBranch()
Returns the number identifying the current branch. |
int |
getNbVars()
Network management: Get the number of variables involved in the constraint. |
Var |
getVar(int i)
Network management: Accessing the ith variable of a constraint. |
boolean |
isCompletelyInstantiated()
Utility: Testing if all variables involved in the constraint are instantiated. |
boolean |
isSatisfied()
Semantic: Testing if the constraint is satisfied. |
java.lang.String |
pretty()
pretty printing of the object. |
void |
setVar(int i,
Var v)
Network management: Setting (or overwriting) the ith variable of a constraint. |
Methods inherited from class choco.palm.search.AbstractDecision |
---|
activateListener, addListener, assignIndices, awake, awakeOnVar, clone, deactivateListener, deactivateListener, getConstraintIdx, getEvent, getPlugIn, getPriority, getVarIdxInOpposite, isActive, isConsistent, isEntailed, isEquivalentTo, negate, opposite, propagate, setActive, setConstraintIndex, setPassive, takeIntoAccountStatusChange, updateDataStructuresOnConstraint, updateDataStructuresOnRestoreConstraint |
Methods inherited from class choco.AbstractEntity |
---|
getProblem |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ExplainedIntVar var
protected int value
Constructor Detail |
---|
public Assignment(ExplainedIntVar var, int value)
Method Detail |
---|
public int getBranch()
DecisionConstraint
getBranch
in interface DecisionConstraint
getBranch
in interface SymbolicDecision
public int getNbVars()
Constraint
getNbVars
in interface Constraint
public Var getVar(int i)
Constraint
getVar
in interface Constraint
i
- index of the variable in the constraintpublic void setVar(int i, Var v)
Constraint
setVar
in interface Constraint
i
- index of the variable in the constraintv
- the variable (may be an IntDomainVar, SetVar, RealVar, ...public boolean isCompletelyInstantiated()
Propagator
isCompletelyInstantiated
in interface Propagator
public boolean isSatisfied()
Constraint
isSatisfied
in interface Constraint
public java.lang.String pretty()
Entity
pretty
in interface Entity
pretty
in class AbstractEntity
public boolean equals(Assignment dec)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public void delete()
Propagator
delete
in interface Propagator
public void constAwake(boolean b)
Propagator
constAwake
in interface Propagator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |