|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectomnics.expl.Explanation
public class Explanation
Explanation = set of eliminations
| Constructor Summary | |
|---|---|
Explanation(Tuple tuple)
Creates a new instance of Explanation |
|
| Method Summary | |
|---|---|
void |
addElimination(Elimination elim)
Adds an elimination caused by the tuple. |
java.lang.String |
explain(java.lang.String indent)
Explains why the tuple is not good. |
java.lang.String |
explain(Var var,
java.lang.Object val,
java.lang.String indent)
Returns an explanation why a variable cannot hava a value; |
Elimination |
findElimination(Var var,
java.lang.Object val)
Finds the elimination of a value from a domain in the explanation tree, starting from this node up to the root. |
java.util.List<Explanation> |
getChildren()
Returns the children of this explanation in the explanations tree created by the solver. |
java.util.List<Elimination> |
getEliminations()
Returns the eliminations caused by the tuple. |
Filter |
getFilter()
Returns the filter algoritm that provoked a nogood. |
Var |
getNextVar()
Returns the variable which was added in the children nodes. |
Explanation |
getParent()
Returns the parent of this explanation in the explanations tree created by the solver. |
Tuple |
getTuple()
Returns the tuple which is beeing explained. |
Elimination |
last()
Returns the last elimination. |
void |
removeElimination(Elimination elim)
Removes an eliminations caused by the tuple. |
void |
setChildren(java.util.List<Explanation> children)
Sets the children of this explanation in the explanations tree created by the solver. |
void |
setEliminations(java.util.List<Elimination> eliminations)
Sets the eliminations caused by the tuple. |
void |
setFilter(Filter filter)
Sets the filter algoritm that provoked a nogood. |
void |
setNextVar(Var nextVar)
Sets the variable which was added in the children nodes. |
void |
setParent(Explanation parent)
Sets the parent of this explanation in the explanations tree created by the solver. |
void |
setTuple(Tuple tuple)
Sets the tuple which is beeing explained. |
java.lang.String |
toString()
Returns a string representation of this explanation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Explanation(Tuple tuple)
| Method Detail |
|---|
public Tuple getTuple()
public void setTuple(Tuple tuple)
public java.util.List<Elimination> getEliminations()
public void setEliminations(java.util.List<Elimination> eliminations)
public void addElimination(Elimination elim)
public void removeElimination(Elimination elim)
public Elimination last()
public Explanation getParent()
public void setParent(Explanation parent)
public java.util.List<Explanation> getChildren()
public void setChildren(java.util.List<Explanation> children)
public Var getNextVar()
public void setNextVar(Var nextVar)
public Filter getFilter()
public void setFilter(Filter filter)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String explain(java.lang.String indent)
public java.lang.String explain(Var var,
java.lang.Object val,
java.lang.String indent)
public Elimination findElimination(Var var,
java.lang.Object val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||