jtp.proof.transform
Class UnrolledRulesTransformer
java.lang.Object
|
+--jtp.proof.transform.UnrolledRulesTransformer
- All Implemented Interfaces:
- ProofTransformer
- public class UnrolledRulesTransformer
- extends Object
- implements ProofTransformer
ProofTransformer that "re-rolls" unrolled forward-chaining
rules.
Because this transformer depends on knowing that the original class
of a rule is RuleCreationReasoningStep, it needs to be placed in
the ProofTransformingEngine's queue before transformers that
may change the class of proofs (e.g., the SubgoalTransformer).
Created: Wed Jun 26 17:15:40 PDT 2002
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnrolledRulesTransformer
public UnrolledRulesTransformer()
transform
public Proof transform(Proof in)
- Specified by:
transform
in interface ProofTransformer
findOriginalRule
protected RuleCreationReasoningStep findOriginalRule(RuleCreationReasoningStep unrolledRule,
List triggerProofs)
- Finds the original rule and returns it. Puts proofs for triggers
that caused the rule to be unrolled in triggerProofs.
- Parameters:
unrolledRule
- the unrolled rule for which we want to find the corresponding original ruletriggerProofs
- a List in which will be placed the proofs for the triggers that caused the rule to be unrolled.
- Returns:
- the RuleCreationReasoningStep for the original rule