|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.manchester.cs.owl.modularity.SyntacticLocalityModuleExtractor.OntologyAxiomSet
protected class SyntacticLocalityModuleExtractor.OntologyAxiomSet
Auxiliary inner class for the representation of the associated ontology and all its sub-ontologies as arrays of axioms. Advantages: (1) quicker set manipulation operations; (2) storage of all referenced entities of an axiom once this axiom is dealt with.
Field Summary | |
---|---|
protected OWLAxiom[] |
ax
Array representing all axioms of the associated ontology. |
protected OWLEntity[][] |
ent
Array representing all entities referenced in all axioms of the associated ontology. |
Constructor Summary | |
---|---|
SyntacticLocalityModuleExtractor.OntologyAxiomSet(OWLOntology ont)
Creates a new OntologyAxiomSet from a given ontology without looking up the referenced entities. |
Method Summary | |
---|---|
boolean[] |
cloneSubset(boolean[] oldSubset)
Clones an array of Booleans that represents a subset of this set. |
OWLAxiom[] |
getAllAxioms()
Returns an array containing all axioms in this set. |
OWLAxiom |
getAxiom(int i)
Returns some axiom from this set. |
java.util.Set<OWLAxiom> |
getAxiomSet(boolean[] isIn)
Returns the set of axioms that is represented by some array of Booleans. |
OWLEntity[] |
getEntities(int i)
Returns an array containing all entities referenced by some axiom in this set. |
boolean[] |
getSubset(boolean init)
Constructs an array of Booleans that represents a subset of this set. |
int |
size()
Returns the number of axioms in this set. |
int |
subsetCardinality(boolean[] subset)
|
java.util.Set<OWLAxiom> |
toSet(boolean[] subset)
Transforms a subset of this set (represented by an array of Booleans) into a set of axioms. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OWLAxiom[] ax
protected OWLEntity[][] ent
Constructor Detail |
---|
public SyntacticLocalityModuleExtractor.OntologyAxiomSet(OWLOntology ont)
ont
- the associated ontologyMethod Detail |
---|
public int size()
public OWLAxiom getAxiom(int i)
i
- a number for an axiom
public OWLAxiom[] getAllAxioms()
public OWLEntity[] getEntities(int i)
i
- a number for an axiom
public java.util.Set<OWLAxiom> getAxiomSet(boolean[] isIn)
isIn
- an array of Booleans
public boolean[] getSubset(boolean init)
init
- determines the initial value of the subset
public boolean[] cloneSubset(boolean[] oldSubset)
oldSubset
- an array representing the original subset
public int subsetCardinality(boolean[] subset)
public java.util.Set<OWLAxiom> toSet(boolean[] subset)
subset
- an array representing the subset
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |