|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.evaluation.wellfounded.ProgramDoubler
public class ProgramDoubler
Program doubler for well-founded semantics evaluation strategy. This class generates the rule-sets and facts for the alternating fixed point algorithm, which is used to compute a well-founded model. The rules and facts for the original logic program are used to instantiate the ProgramDoubler. After which, the extractXXX and getXXX methods are used to retrieve the program fragments used during the alternating fixed point loop.
| Field Summary | |
|---|---|
static String |
NEGATED_PREDICATE_SUFFIX
The suffix used to name the 'primed' predicates, i.e. |
| Constructor Summary | |
|---|---|
ProgramDoubler(List<IRule> rules,
IFacts facts,
Configuration configuration)
Constructor. |
|
| Method Summary | |
|---|---|
IFacts |
extractNegativeFacts(IFacts mixed)
Extract all the facts associated with primed predicates from the facts provided. |
IFacts |
extractPositiveFacts(IFacts mixed)
Extract all the facts associated with unprimed predicates from the facts provided. |
List<IRule> |
getNegativeRuleBase()
Get the rules used in the 'negative' part of the AFP loop. |
IFacts |
getNegativeStartingFacts()
Get the negative facts used in the alternating fixed point algorithm. |
List<IRule> |
getPositiveRuleBase()
Get the rules used in the 'positive' part of the AFP loop. |
IFacts |
getPositiveStartingFacts()
Get the positive facts used in the alternating fixed point algorithm. |
List<IRule> |
getStartingRuleBase()
Get the rules used to start the AFP algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NEGATED_PREDICATE_SUFFIX
| Constructor Detail |
|---|
public ProgramDoubler(List<IRule> rules,
IFacts facts,
Configuration configuration)
rules - The rules from the original program.facts - The facts from the original program.configuration - The configuration object for the knowledge base.| Method Detail |
|---|
public IFacts extractPositiveFacts(IFacts mixed)
mixed - The input collection of facts tha can contain a mixture of primed and
unprimed predicates.
public IFacts extractNegativeFacts(IFacts mixed)
mixed - The input collection of facts that can contain a mixture of primed and
unprimed predicates.
public IFacts getPositiveStartingFacts()
public IFacts getNegativeStartingFacts()
public List<IRule> getStartingRuleBase()
public List<IRule> getNegativeRuleBase()
public List<IRule> getPositiveRuleBase()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||