@Override public BackwardLinkCompositionMatch4 getBackwardLinkCompositionMatch4( BackwardLinkCompositionMatch3 parent, SubPropertyChainMatch2 secondPremiseMatch) { return new BackwardLinkCompositionMatch4(parent, secondPremiseMatch); }
BackwardLinkCompositionMatch4(BackwardLinkCompositionMatch3 parent, SubPropertyChainMatch2 secondPremiseMatch) { super(parent); checkEquals(secondPremiseMatch, getSecondPremiseMatch(DEBUG_FACTORY)); }
@Override public String visit(BackwardLinkCompositionMatch4 inferenceMatch4) { return inferenceMatch4.getParent() + " | "; }
@Override public Void visit(BackwardLinkCompositionMatch4 inferenceMatch4) { SubPropertyChainMatch1 premiseMatch1 = inferenceMatch4 .getFourthPremiseMatch(conclusionFactory_); inferences_.add(premiseMatch1, inferenceMatch4); for (SubPropertyChainMatch2 child : hierarchy_ .getChildren(premiseMatch1)) { (new SubPropertyChainMatch2InferenceVisitor(inferenceFactory_, child)).visit(inferenceMatch4); } return null; }
SubPropertyChainMatch2 getFourthPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubPropertyChainMatch2( getParent().getFourthPremiseMatch(factory), getPremiseFullForwardChainMatch(), getPremiseForwardChainStartPos()); }
@Override public String visit(BackwardLinkCompositionMatch4 inferenceMatch4) { return inferenceMatch4.getParent() + " | "; }
BackwardLinkCompositionMatch4(BackwardLinkCompositionMatch3 parent, SubPropertyChainMatch2 secondPremiseMatch) { super(parent); checkEquals(secondPremiseMatch, getSecondPremiseMatch(DEBUG_FACTORY)); }
@Override public Void visit(BackwardLinkCompositionMatch4 inferenceMatch4) { SubPropertyChainMatch1 premiseMatch1 = inferenceMatch4 .getFourthPremiseMatch(conclusionFactory_); inferences_.add(premiseMatch1, inferenceMatch4); for (SubPropertyChainMatch2 child : hierarchy_ .getChildren(premiseMatch1)) { (new SubPropertyChainMatch2InferenceVisitor(inferenceFactory_, child)).visit(inferenceMatch4); } return null; }
@Override public BackwardLinkCompositionMatch4 getBackwardLinkCompositionMatch4( BackwardLinkCompositionMatch3 parent, SubPropertyChainMatch2 secondPremiseMatch) { return new BackwardLinkCompositionMatch4(parent, secondPremiseMatch); }
@Override public String visit(BackwardLinkCompositionMatch4 inferenceMatch4) { return inferenceMatch4.getParent() + " | "; }
BackwardLinkCompositionMatch4(BackwardLinkCompositionMatch3 parent, SubPropertyChainMatch2 secondPremiseMatch) { super(parent); checkEquals(secondPremiseMatch, getSecondPremiseMatch(DEBUG_FACTORY)); }
SubPropertyChainMatch2 getFourthPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubPropertyChainMatch2( getParent().getFourthPremiseMatch(factory), getPremiseFullForwardChainMatch(), getPremiseForwardChainStartPos()); }
@Override public BackwardLinkCompositionMatch4 getBackwardLinkCompositionMatch4( BackwardLinkCompositionMatch3 parent, SubPropertyChainMatch2 secondPremiseMatch) { return new BackwardLinkCompositionMatch4(parent, secondPremiseMatch); }
@Override public Void visit(BackwardLinkCompositionMatch4 inferenceMatch4) { SubPropertyChainMatch1 premiseMatch1 = inferenceMatch4 .getFourthPremiseMatch(conclusionFactory_); inferences_.add(premiseMatch1, inferenceMatch4); for (SubPropertyChainMatch2 child : hierarchy_ .getChildren(premiseMatch1)) { (new SubPropertyChainMatch2InferenceVisitor(inferenceFactory_, child)).visit(inferenceMatch4); } return null; }
SubPropertyChainMatch2 getFourthPremiseMatch( ConclusionMatchExpressionFactory factory) { return factory.getSubPropertyChainMatch2( getParent().getFourthPremiseMatch(factory), getPremiseFullForwardChainMatch(), getPremiseForwardChainStartPos()); }