private static int childDiff(Tree<OWLAxiom> o1, Tree<OWLAxiom> o2) { int childCount1 = o1.getChildCount(); childCount1 = childCount1 > 0 ? 0 : 1; int childCount2 = o2.getChildCount(); childCount2 = childCount2 > 0 ? 0 : 1; return childCount1 - childCount2; }
/** * Gets the rHS entities. * * @param axiom the axiom * @return the rHS entities */ private Collection<OWLEntity> getRHSEntities(OWLAxiom axiom) { return getIndexedSet(axiom, entitiesByAxiomRHS, true); }
/** * @return the max depth */ public int getMaxDepth() { return getMaxDepth(this); }
/** * Gets the rHS entities. * * @param axiom the axiom * @return the rHS entities */ private Collection<OWLEntity> getRHSEntities(OWLAxiom axiom) { return getIndexedSet(axiom, entitiesByAxiomRHS, true); }
/** Gets axioms that have a LHS corresponding to the specified entity. * * @param lhs * The entity that occurs on the left hand side of the axiom. * @return A set of axioms that have the specified entity as their left hand * side. */ protected Set<OWLAxiom> getAxiomsForLHS(OWLEntity lhs) { return delegate.getAxiomsForLHS(lhs); }
/** * Gets axioms that have a LHS corresponding to the specified entity. * * @param lhs The entity that occurs on the left hand side of the axiom. * @return A set of axioms that have the specified entity as their left hand side. */ private Set<OWLAxiom> getAxiomsForLHS(OWLEntity lhs) { return getIndexedSet(lhs, lhs2AxiomMap, true); }
private static int childDiff(Tree<OWLAxiom> o1, Tree<OWLAxiom> o2) { int childCount1 = o1.getChildCount(); childCount1 = childCount1 > 0 ? 0 : 1; int childCount2 = o2.getChildCount(); childCount2 = childCount2 > 0 ? 0 : 1; return childCount1 - childCount2; }
/** * Gets the rHS entities. * * @param axiom the axiom * @return the rHS entities */ private Collection<OWLEntity> getRHSEntities(OWLAxiom axiom) { return getIndexedSet(axiom, entitiesByAxiomRHS, true); }
/** * Gets axioms that have a LHS corresponding to the specified entity. * * @param lhs The entity that occurs on the left hand side of the axiom. * @return A set of axioms that have the specified entity as their left hand side. */ protected Set<OWLAxiom> getAxiomsForLHS(OWLEntity lhs) { return getIndexedSet(lhs, lhs2AxiomMap, true); }
/** * @return the max depth */ public int getMaxDepth() { return getMaxDepth(this); }
private static int childDiff(Tree<OWLAxiom> o1, Tree<OWLAxiom> o2) { int childCount1 = o1.getChildCount(); childCount1 = childCount1 > 0 ? 0 : 1; int childCount2 = o2.getChildCount(); childCount2 = childCount2 > 0 ? 0 : 1; return childCount1 - childCount2; }
/** * Gets the rHS entities. * * @param axiom the axiom * @return the rHS entities */ private Collection<OWLEntity> getRHSEntities(OWLAxiom axiom) { return getIndexedSet(axiom, entitiesByAxiomRHS, true); }
/** * Gets axioms that have a LHS corresponding to the specified entity. * * @param lhs The entity that occurs on the left hand side of the axiom. * @return A set of axioms that have the specified entity as their left hand side. */ protected Set<OWLAxiom> getAxiomsForLHS(OWLEntity lhs) { return getIndexedSet(lhs, lhs2AxiomMap, true); }
private static int childDiff(Tree<OWLAxiom> o1, Tree<OWLAxiom> o2) { int childCount1 = o1.getChildCount(); childCount1 = childCount1 > 0 ? 0 : 1; int childCount2 = o2.getChildCount(); childCount2 = childCount2 > 0 ? 0 : 1; return childCount1 - childCount2; }
/** * Gets axioms that have a LHS corresponding to the specified entity. * * @param lhs The entity that occurs on the left hand side of the axiom. * @return A set of axioms that have the specified entity as their left hand side. */ protected Set<OWLAxiom> getAxiomsForLHS(OWLEntity lhs) { return getIndexedSet(lhs, lhs2AxiomMap, true); }
/** * Gets axioms that have a LHS corresponding to the specified entity. * * @param lhs The entity that occurs on the left hand side of the axiom. * @return A set of axioms that have the specified entity as their left hand side. */ protected Set<OWLAxiom> getAxiomsForLHS(OWLEntity lhs) { return getIndexedSet(lhs, lhs2AxiomMap, true); }
/** * Gets axioms that have a LHS corresponding to the specified entity. * * @param lhs The entity that occurs on the left hand side of the axiom. * @return A set of axioms that have the specified entity as their left hand side. */ protected Set<OWLAxiom> getAxiomsForLHS(OWLEntity lhs) { return getIndexedSet(lhs, lhs2AxiomMap, true); }
/** * Gets the rHS entities. * * @param axiom the axiom * @return the rHS entities */ private Collection<OWLEntity> getRHSEntities(OWLAxiom axiom) { return getIndexedSet(axiom, entitiesByAxiomRHS, true); }
/** * Gets axioms that have a LHS corresponding to the specified entity. * * @param lhs The entity that occurs on the left hand side of the axiom. * @return A set of axioms that have the specified entity as their left hand side. */ protected Set<OWLAxiom> getAxiomsForLHS(OWLEntity lhs) { return getIndexedSet(lhs, lhs2AxiomMap, true); }
/** * Gets the rHS entities. * * @param axiom the axiom * @return the rHS entities */ private Collection<OWLEntity> getRHSEntities(OWLAxiom axiom) { return getIndexedSet(axiom, entitiesByAxiomRHS, true); }