|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--mit.ai.techniques.Conjunction
Implement a conjunction of literals as a vector.
| Field Summary | |
private java.util.Vector |
literals
|
| Constructor Summary | |
Conjunction()
Create an empty conjunction. |
|
Conjunction(Literal l)
Create a conjunction with a single literal. |
|
| Method Summary | |
void |
addLiteral(Literal l)
Add a literal to the conjunction. |
boolean |
contains(Literal l)
Check if the Conjunction contains a particular Literal. |
boolean |
isFalse(Proposition p)
Return false if this proposition is mentioned negatively in this conjunction. |
boolean |
isKnown(Proposition p)
Return true if this proposition is mentioned in this conjunction. |
boolean |
isTrue(Proposition p)
Return true if this proposition is mentioned positively in this conjunction. |
Literal |
literalAt(int index)
Get the literal at an index. |
Literal |
occurrence(Proposition p)
Return the literal associated with proposition p if it occurs in this conjunction, otherwise return null. |
int |
size()
How many literals are in the conjunction? |
java.lang.String |
toString()
String representation. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.util.Vector literals
| Constructor Detail |
public Conjunction()
public Conjunction(Literal l)
| Method Detail |
public void addLiteral(Literal l)
public boolean isKnown(Proposition p)
public boolean isTrue(Proposition p)
public boolean isFalse(Proposition p)
public Literal occurrence(Proposition p)
public int size()
public Literal literalAt(int index)
public boolean contains(Literal l)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||