Package net.sf.tweety.logics.rdl.syntax
Class DefaultTheory
- java.lang.Object
- 
- net.sf.tweety.logics.rdl.syntax.DefaultTheory
 
- 
- All Implemented Interfaces:
- BeliefBase
 
 public class DefaultTheory extends java.lang.Object implements BeliefBase Models a default theory in Reiter's default logic, see [R. Reiter. A logic for default reasoning. Artificial Intelligence, 13:81–132, 1980].- Author:
- Matthias Thimm, Nils Geilen
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultTheory()constructs empty default theoryDefaultTheory(FolBeliefSet facts, java.util.Collection<DefaultRule> defaults)constructs a default theory from a knowledge base and a set of defaults
 - 
Method SummaryModifier and Type Method Description java.util.Collection<DefaultRule>getDefaults()FolBeliefSetgetFacts()SignaturegetMinimalSignature()Returns the signature of the language of this knowledge base.DefaultTheoryground()Removes Variables by expanding formulasjava.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
DefaultTheorypublic DefaultTheory() constructs empty default theory
 - 
DefaultTheorypublic DefaultTheory(FolBeliefSet facts, java.util.Collection<DefaultRule> defaults) constructs a default theory from a knowledge base and a set of defaults- Parameters:
- facts- the knowledge base
- defaults- the defaults
 
 
- 
 - 
Method Detail- 
getDefaultspublic java.util.Collection<DefaultRule> getDefaults() - Returns:
- all the default rules
 
 - 
groundpublic DefaultTheory ground() Removes Variables by expanding formulas- Returns:
- grounded version of the default theory
 
 - 
getMinimalSignaturepublic Signature getMinimalSignature() Description copied from interface:BeliefBaseReturns the signature of the language of this knowledge base.- Specified by:
- getMinimalSignaturein interface- BeliefBase
- Returns:
- the signature of the language of this knowledge base.
 
 - 
toStringpublic java.lang.String toString() - Specified by:
- toStringin interface- BeliefBase
- Overrides:
- toStringin class- java.lang.Object
 
 - 
getFactspublic FolBeliefSet getFacts() - Returns:
- FoL formulas in default theories
 
 
- 
 
-