@Override public SubClassInclusionDecomposedFirstConjunctMatch2 getSubClassInclusionDecomposedFirstConjunctMatch2( SubClassInclusionDecomposedFirstConjunctMatch1 parent, SubClassInclusionDecomposedMatch2 premiseMatch) { return new SubClassInclusionDecomposedFirstConjunctMatch2(parent, premiseMatch); }
public SubClassInclusionDecomposedMatch2 getConclusionMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubClassInclusionDecomposedMatch2( getParent().getConclusionMatch(factory), getExtendedOriginMatch(), getFullSubsumerMatch(), getPremiseSubsumerPrefixLength() - 1); }
@Override public Void visit( SubClassInclusionDecomposedFirstConjunctMatch2 inferenceMatch2) { inferenceMatch2.getConclusionMatch(conclusionFactory_); // creating ELK inferences int premiseSubsumerPrefixLength = inferenceMatch2 .getPremiseSubsumerPrefixLength(); if (premiseSubsumerPrefixLength > 2) { // no ELK inference return null; } ElkObjectIntersectionOf fullSubsumerMatch = inferenceMatch2 .getFullSubsumerMatch(); IndexedContextRootMatch extendedOriginMatch = inferenceMatch2 .getExtendedOriginMatch(); List<? extends ElkClassExpression> conjuncts = fullSubsumerMatch .getClassExpressions(); int pos = 0; // of the decomposed conjunct elkInferenceFactory_ .getElkClassInclusionObjectIntersectionOfDecomposition( conjuncts, pos); elkInferenceFactory_.getElkClassInclusionHierarchy( toElkExpression(extendedOriginMatch), conclusionFactory_.getObjectIntersectionOf(conjuncts), conjuncts.get(pos)); return null; }
SubClassInclusionDecomposedFirstConjunctMatch2( SubClassInclusionDecomposedFirstConjunctMatch1 parent, SubClassInclusionDecomposedMatch2 premiseMatch) { super(parent); this.extendedOriginMatch_ = premiseMatch.getExtendedDestinationMatch(); IndexedObjectIntersectionOfMatch premiseSubsumerMatch = premiseMatch .getSubsumerIndexedObjectIntersectionOfMatch(); this.fullSubsumerMatch_ = premiseSubsumerMatch.getFullValue(); this.premiseSubsumerPrefixLength_ = premiseSubsumerMatch .getPrefixLength(); checkEquals(premiseMatch, getPremiseMatch(DEBUG_FACTORY)); }
@Override public String visit( SubClassInclusionDecomposedFirstConjunctMatch2 inferenceMatch2) { return inferenceMatch2.getParent() + " | "; }
@Override public Void visit( SubClassInclusionDecomposedFirstConjunctMatch2 inferenceMatch2) { inferenceMatch2.getConclusionMatch(conclusionFactory_); // creating ELK inferences int premiseSubsumerPrefixLength = inferenceMatch2 .getPremiseSubsumerPrefixLength(); if (premiseSubsumerPrefixLength > 2) { // no ELK inference return null; } ElkObjectIntersectionOf fullSubsumerMatch = inferenceMatch2 .getFullSubsumerMatch(); IndexedContextRootMatch extendedOriginMatch = inferenceMatch2 .getExtendedOriginMatch(); List<? extends ElkClassExpression> conjuncts = fullSubsumerMatch .getClassExpressions(); int pos = 0; // of the decomposed conjunct elkInferenceFactory_ .getElkClassInclusionObjectIntersectionOfDecomposition( conjuncts, pos); elkInferenceFactory_.getElkClassInclusionHierarchy( toElkExpression(extendedOriginMatch), conclusionFactory_.getObjectIntersectionOf(conjuncts), conjuncts.get(pos)); return null; }
SubClassInclusionDecomposedFirstConjunctMatch2( SubClassInclusionDecomposedFirstConjunctMatch1 parent, SubClassInclusionDecomposedMatch2 premiseMatch) { super(parent); this.extendedOriginMatch_ = premiseMatch.getExtendedDestinationMatch(); IndexedObjectIntersectionOfMatch premiseSubsumerMatch = premiseMatch .getSubsumerIndexedObjectIntersectionOfMatch(); this.fullSubsumerMatch_ = premiseSubsumerMatch.getFullValue(); this.premiseSubsumerPrefixLength_ = premiseSubsumerMatch .getPrefixLength(); checkEquals(premiseMatch, getPremiseMatch(DEBUG_FACTORY)); }
@Override public String visit( SubClassInclusionDecomposedFirstConjunctMatch2 inferenceMatch2) { return inferenceMatch2.getParent() + " | "; }
public SubClassInclusionDecomposedMatch2 getConclusionMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubClassInclusionDecomposedMatch2( getParent().getConclusionMatch(factory), getExtendedOriginMatch(), getFullSubsumerMatch(), getPremiseSubsumerPrefixLength() - 1); }
@Override public Void visit( SubClassInclusionDecomposedFirstConjunctMatch2 inferenceMatch2) { inferenceMatch2.getConclusionMatch(conclusionFactory_); // creating ELK inferences int premiseSubsumerPrefixLength = inferenceMatch2 .getPremiseSubsumerPrefixLength(); if (premiseSubsumerPrefixLength > 2) { // no ELK inference return null; } ElkObjectIntersectionOf fullSubsumerMatch = inferenceMatch2 .getFullSubsumerMatch(); IndexedContextRootMatch extendedOriginMatch = inferenceMatch2 .getExtendedOriginMatch(); List<? extends ElkClassExpression> conjuncts = fullSubsumerMatch .getClassExpressions(); int pos = 0; // of the decomposed conjunct elkInferenceFactory_ .getElkClassInclusionObjectIntersectionOfDecomposition( conjuncts, pos); elkInferenceFactory_.getElkClassInclusionHierarchy( toElkExpression(extendedOriginMatch), conclusionFactory_.getObjectIntersectionOf(conjuncts), conjuncts.get(pos)); return null; }
SubClassInclusionDecomposedFirstConjunctMatch2( SubClassInclusionDecomposedFirstConjunctMatch1 parent, SubClassInclusionDecomposedMatch2 premiseMatch) { super(parent); this.extendedOriginMatch_ = premiseMatch.getExtendedDestinationMatch(); IndexedObjectIntersectionOfMatch premiseSubsumerMatch = premiseMatch .getSubsumerIndexedObjectIntersectionOfMatch(); this.fullSubsumerMatch_ = premiseSubsumerMatch.getFullValue(); this.premiseSubsumerPrefixLength_ = premiseSubsumerMatch .getPrefixLength(); checkEquals(premiseMatch, getPremiseMatch(DEBUG_FACTORY)); }
@Override public SubClassInclusionDecomposedFirstConjunctMatch2 getSubClassInclusionDecomposedFirstConjunctMatch2( SubClassInclusionDecomposedFirstConjunctMatch1 parent, SubClassInclusionDecomposedMatch2 premiseMatch) { return new SubClassInclusionDecomposedFirstConjunctMatch2(parent, premiseMatch); }
@Override public String visit( SubClassInclusionDecomposedFirstConjunctMatch2 inferenceMatch2) { return inferenceMatch2.getParent() + " | "; }
public SubClassInclusionDecomposedMatch2 getConclusionMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubClassInclusionDecomposedMatch2( getParent().getConclusionMatch(factory), getExtendedOriginMatch(), getFullSubsumerMatch(), getPremiseSubsumerPrefixLength() - 1); }
@Override public SubClassInclusionDecomposedFirstConjunctMatch2 getSubClassInclusionDecomposedFirstConjunctMatch2( SubClassInclusionDecomposedFirstConjunctMatch1 parent, SubClassInclusionDecomposedMatch2 premiseMatch) { return new SubClassInclusionDecomposedFirstConjunctMatch2(parent, premiseMatch); }
SubClassInclusionDecomposedMatch2 getPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubClassInclusionDecomposedMatch2( getParent().getPremiseMatch(factory), getExtendedOriginMatch(), getFullSubsumerMatch(), getPremiseSubsumerPrefixLength()); }
SubClassInclusionDecomposedMatch2 getPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubClassInclusionDecomposedMatch2( getParent().getPremiseMatch(factory), getExtendedOriginMatch(), getFullSubsumerMatch(), getPremiseSubsumerPrefixLength()); }
SubClassInclusionDecomposedMatch2 getPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubClassInclusionDecomposedMatch2( getParent().getPremiseMatch(factory), getExtendedOriginMatch(), getFullSubsumerMatch(), getPremiseSubsumerPrefixLength()); }