@Override public String visit(SubClassInclusionExpandedSubClassOf inference) { return String.format("%s -| %s; %s", inference.getConclusion(factory_), inference.getFirstPremise(factory_), inference.getSecondPremise(factory_)); }
@Override public Conclusion getPremise(int index, Factory factory) { switch (index) { case 0: return getFirstPremise(factory); case 1: return getSecondPremise(factory); default: return failGetPremise(index); } }
public IndexedSubClassOfAxiom getSecondPremise( IndexedSubClassOfAxiom.Factory factory) { return factory.getIndexedSubClassOfAxiom(getReason(), getPremiseSubsumer(), getConclusionSubsumer()); }
@Override public O visit(SubClassInclusionExpandedSubClassOf inference) { conclusionVisitor_.visit(inference.getFirstPremise(conclusionFactory_)); conclusionVisitor_ .visit(inference.getSecondPremise(conclusionFactory_)); return null; }
@Override public ClassConclusion visit( SubClassInclusionExpandedSubClassOf inference) { return inference.getConclusion(conclusionFactory_); }
@Override public O visit(SubClassInclusionExpandedSubClassOf inference) { conclusionVisitor_.visit(inference.getFirstPremise(conclusionFactory_)); return null; }
public IndexedSubClassOfAxiomMatch1 getSecondPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getIndexedSubClassOfAxiomMatch1( getParent().getSecondPremise(factory)); }
@Override public void apply(IndexedClassExpression premise, ContextPremises premises, ClassInferenceProducer producer) { for (int i = 0; i < toldSubsumers_.size(); i++) { producer.produce(new SubClassInclusionExpandedSubClassOf(premises.getRoot(), premise, toldSubsumers_.get(i), reasons_.get(i))); } }
@Override public O visit(SubClassInclusionExpandedSubClassOf inference) { conclusionVisitor_.visit(inference.getFirstPremise(conclusionFactory_)); conclusionVisitor_ .visit(inference.getSecondPremise(conclusionFactory_)); return null; }
@Override public ClassConclusion visit( SubClassInclusionExpandedSubClassOf inference) { return inference.getConclusion(conclusionFactory_); }
@Override public O visit(SubClassInclusionExpandedSubClassOf inference) { conclusionVisitor_.visit(inference.getFirstPremise(conclusionFactory_)); return null; }
public IndexedSubClassOfAxiomMatch1 getSecondPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getIndexedSubClassOfAxiomMatch1( getParent().getSecondPremise(factory)); }
@Override public void apply(IndexedClassExpression premise, ContextPremises premises, ClassInferenceProducer producer) { for (int i = 0; i < toldSubsumers_.size(); i++) { producer.produce(new SubClassInclusionExpandedSubClassOf(premises.getRoot(), premise, toldSubsumers_.get(i), reasons_.get(i))); } }
@Override public String visit(SubClassInclusionExpandedSubClassOf inference) { return String.format("%s -| %s; %s", inference.getConclusion(factory_), inference.getFirstPremise(factory_), inference.getSecondPremise(factory_)); }
@Override public Conclusion getPremise(int index, Factory factory) { switch (index) { case 0: return getFirstPremise(factory); case 1: return getSecondPremise(factory); default: return failGetPremise(index); } }
public IndexedSubClassOfAxiom getSecondPremise( IndexedSubClassOfAxiom.Factory factory) { return factory.getIndexedSubClassOfAxiom(getReason(), getPremiseSubsumer(), getConclusionSubsumer()); }
@Override public O visit(SubClassInclusionExpandedSubClassOf inference) { conclusionVisitor_.visit(inference.getFirstPremise(conclusionFactory_)); conclusionVisitor_ .visit(inference.getSecondPremise(conclusionFactory_)); return null; }
@Override public ClassConclusion visit( SubClassInclusionExpandedSubClassOf inference) { return inference.getConclusion(conclusionFactory_); }
@Override public O visit(SubClassInclusionExpandedSubClassOf inference) { conclusionVisitor_.visit(inference.getFirstPremise(conclusionFactory_)); return null; }
public IndexedSubClassOfAxiomMatch1 getSecondPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getIndexedSubClassOfAxiomMatch1( getParent().getSecondPremise(factory)); }