@Override public ForwardLinkCompositionMatch3 getForwardLinkCompositionMatch3( ForwardLinkCompositionMatch2 parent, SubPropertyChainMatch2 secondPremiseMatch) { return new ForwardLinkCompositionMatch3(parent, secondPremiseMatch); }
ForwardLinkCompositionMatch3(ForwardLinkCompositionMatch2 parent, SubPropertyChainMatch2 secondPremiseMatch) { super(parent); checkEquals(secondPremiseMatch, getSecondPremiseMatch(DEBUG_FACTORY)); }
@Override public String visit(ForwardLinkCompositionMatch3 inferenceMatch3) { return inferenceMatch3.getParent() + " | "; }
SubPropertyChainMatch2 getFourthPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubPropertyChainMatch2( getParent().getFourthPremiseMatch(factory), getPremiseFullForwardChainMatch(), getPremiseForwardChainStartPos()); }
SubPropertyChainMatch2 getFourthPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubPropertyChainMatch2( getParent().getFourthPremiseMatch(factory), getPremiseFullForwardChainMatch(), getPremiseForwardChainStartPos()); }
@Override public String visit(ForwardLinkCompositionMatch3 inferenceMatch3) { return inferenceMatch3.getParent() + " | "; }
ForwardLinkCompositionMatch3(ForwardLinkCompositionMatch2 parent, SubPropertyChainMatch2 secondPremiseMatch) { super(parent); checkEquals(secondPremiseMatch, getSecondPremiseMatch(DEBUG_FACTORY)); }
@Override public Void visit(ForwardLinkCompositionMatch3 inferenceMatch3) { SubPropertyChainMatch1 premiseMatch1 = inferenceMatch3 .getFourthPremiseMatch(conclusionFactory_); inferences_.add(premiseMatch1, inferenceMatch3); for (SubPropertyChainMatch2 child : hierarchy_ .getChildren(premiseMatch1)) { (new SubPropertyChainMatch2InferenceVisitor(inferenceFactory_, child)).visit(inferenceMatch3); } return null; }
@Override public ForwardLinkCompositionMatch3 getForwardLinkCompositionMatch3( ForwardLinkCompositionMatch2 parent, SubPropertyChainMatch2 secondPremiseMatch) { return new ForwardLinkCompositionMatch3(parent, secondPremiseMatch); }
@Override public String visit(ForwardLinkCompositionMatch3 inferenceMatch3) { return inferenceMatch3.getParent() + " | "; }
ForwardLinkCompositionMatch3(ForwardLinkCompositionMatch2 parent, SubPropertyChainMatch2 secondPremiseMatch) { super(parent); checkEquals(secondPremiseMatch, getSecondPremiseMatch(DEBUG_FACTORY)); }
@Override public Void visit(ForwardLinkCompositionMatch3 inferenceMatch3) { SubPropertyChainMatch1 premiseMatch1 = inferenceMatch3 .getFourthPremiseMatch(conclusionFactory_); inferences_.add(premiseMatch1, inferenceMatch3); for (SubPropertyChainMatch2 child : hierarchy_ .getChildren(premiseMatch1)) { (new SubPropertyChainMatch2InferenceVisitor(inferenceFactory_, child)).visit(inferenceMatch3); } return null; }
@Override public ForwardLinkCompositionMatch3 getForwardLinkCompositionMatch3( ForwardLinkCompositionMatch2 parent, SubPropertyChainMatch2 secondPremiseMatch) { return new ForwardLinkCompositionMatch3(parent, secondPremiseMatch); }
@Override public Void visit(ForwardLinkCompositionMatch3 inferenceMatch3) { SubPropertyChainMatch1 premiseMatch1 = inferenceMatch3 .getFourthPremiseMatch(conclusionFactory_); inferences_.add(premiseMatch1, inferenceMatch3); for (SubPropertyChainMatch2 child : hierarchy_ .getChildren(premiseMatch1)) { (new SubPropertyChainMatch2InferenceVisitor(inferenceFactory_, child)).visit(inferenceMatch3); } return null; }
SubPropertyChainMatch2 getFourthPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubPropertyChainMatch2( getParent().getFourthPremiseMatch(factory), getPremiseFullForwardChainMatch(), getPremiseForwardChainStartPos()); }
public SubPropertyChainMatch1 getFourthPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubPropertyChainMatch1( getParent().getParent().getParent().getFourthPremise(factory), getParent().getParent().getFullCompositionMatch(), getParent().getParent().getCompositionStartPos() + 1); }
public SubPropertyChainMatch1 getFourthPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubPropertyChainMatch1( getParent().getParent().getParent().getFourthPremise(factory), getParent().getParent().getFullCompositionMatch(), getParent().getParent().getCompositionStartPos() + 1); }