public class DefaultTheory extends java.lang.Object implements BeliefBase
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<DefaultRule> |
defaults
The set of default rules
|
private FolBeliefSet |
facts
The set of facts (first-order formulas).
|
Constructor and Description |
---|
DefaultTheory()
constructs empty default theory
|
DefaultTheory(FolBeliefSet facts,
java.util.Collection<DefaultRule> defaults)
constructs a default theory from a knowledge base and a set of defaults
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addDefault(DefaultRule d)
adds default rule
|
(package private) void |
addFact(FolFormula fact)
add facts to knowledge base
|
java.util.Collection<DefaultRule> |
getDefaults() |
FolBeliefSet |
getFacts() |
Signature |
getSignature()
Returns the signature of the language of this knowledge base.
|
DefaultTheory |
ground()
Removes Variables by expanding formulas
|
(package private) void |
removeDefault(DefaultRule d)
removes default rule
|
(package private) void |
removeFact(FolFormula fact)
removes fact from knowledge base
|
java.lang.String |
toString() |
private FolBeliefSet facts
private java.util.Collection<DefaultRule> defaults
public DefaultTheory()
public DefaultTheory(FolBeliefSet facts, java.util.Collection<DefaultRule> defaults)
facts
- the knowledge basedefaults
- the defaultsvoid addFact(FolFormula fact)
void removeFact(FolFormula fact)
void addDefault(DefaultRule d)
void removeDefault(DefaultRule d)
public java.util.Collection<DefaultRule> getDefaults()
public DefaultTheory ground()
public Signature getSignature()
BeliefBase
getSignature
in interface BeliefBase
public java.lang.String toString()
toString
in interface BeliefBase
toString
in class java.lang.Object
public FolBeliefSet getFacts()