public class ClassifierStatusImpl extends Object implements ClassifierStatus
Constructor and Description |
---|
ClassifierStatusImpl(IntegerEntityManager generator,
ExtendedOntology ontology)
Constructs a new classifier status.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addNewREntry(int propertyId,
int leftClassId,
int rightClassId)
Adds a new R-entry to the set of entries to be processed.
|
boolean |
addNewSEntry(int subClassId,
int superClassId)
Adds a new S-entry to the set of entries to be processed.
|
boolean |
addToR(int property,
int leftClass,
int rightClass)
Adds a new triplet to the set R.
|
boolean |
addToS(int subClass,
int superClass)
Adds a new pair to the set S.
|
boolean |
contains(VNode node)
Returns whether a particular node belongs to the set V.
|
int |
createOrGetNodeId(VNode node)
Gets the identifier of a node, or creates a new one.
|
protected void |
deleteClassGraph()
Deletes the class graph.
|
protected void |
deleteObjectPropertyGraph()
Deletes the object property graph.
|
protected IntegerSubsumerGraphImpl |
getClassGraph()
Returns the class graph.
|
Object |
getClassGraphMonitor()
Returns the monitor of set S.
|
long |
getDeepSizeOfR()
Returns the number of nodes in the relation set.
|
long |
getDeepSizeOfS()
Returns the number of nodes in the subsumer set.
|
long |
getDeepSizeOfV()
Returns the number of elements in the node set.
|
ExtendedOntology |
getExtendedOntology()
Return an ontology with convenience methods to get its axioms.
|
Collection<Integer> |
getFirstBySecond(int propertyId,
int classId)
Returns all the classes that are related to a certain class using a
certain object property
|
protected IntegerEntityManager |
getIdGenerator()
Returns the identifier generator.
|
int |
getInverseObjectPropertyOf(int propertyId)
Returns the inverse object property of a particular object property.
|
VNode |
getNode(int nodeId)
Returns the node for a given node identifier.
|
int |
getNumberOfREntries()
Returns the number of R-entries to be processed.
|
int |
getNumberOfSEntries()
Returns the number of S-entries to be processed.
|
Collection<Integer> |
getObjectPropertiesByFirst(int cA)
Returns the set of object properties related with a certain class as a
first component.
|
Collection<Integer> |
getObjectPropertiesBySecond(int cA)
Returns the set of object properties related with a certain class as a
second component.
|
Set<Integer> |
getObjectPropertiesWithFunctionalAncestor(int objectProperty)
Returns all the functional object properties that have a common
functional object property ancestor of the specified object property.
|
protected IntegerSubsumerBidirectionalGraphImpl |
getObjectPropertyGraph()
Returns the object property graph.
|
protected IntegerRelationMapImpl |
getRelationSet()
Returns the set of relations.
|
Object |
getRelationSetMonitor()
Returns the monitor of set R.
|
Collection<Integer> |
getSecondByFirst(int propertyId,
int classId)
Returns all the classes that are related from a certain class using a
certain object property
|
long |
getSizeOfV()
Returns the number of nodes.
|
Collection<Integer> |
getSubObjectProperties(int objectProperty)
Returns all the sub object properties of an object property.
|
Collection<Integer> |
getSubsumers(int classId)
Returns all the super classes (subsumers) of a class.
|
Collection<Integer> |
getSuperObjectProperties(int objectProperty)
Returns all the super object properties of an object property.
|
void |
outputSetR(Writer output) |
void |
outputSetS(Writer output) |
REntry |
removeNextREntry()
Returns the next R-entry and removes it from the set to be processed.
|
SEntry |
removeNextSEntry()
Returns the next S-entry and removes it from the set to be processed.
|
public ClassifierStatusImpl(IntegerEntityManager generator, ExtendedOntology ontology)
generator
- identifier generatorontology
- extended ontologypublic boolean addNewREntry(int propertyId, int leftClassId, int rightClassId)
ClassifierStatus
addNewREntry
in interface ClassifierStatus
propertyId
- property idleftClassId
- left class idrightClassId
- right class idtrue
if and only if the entry was addedpublic boolean addNewSEntry(int subClassId, int superClassId)
ClassifierStatus
addNewSEntry
in interface ClassifierStatus
subClassId
- subclass idsuperClassId
- superclass idtrue
if and only if the entry was addedpublic boolean addToR(int property, int leftClass, int rightClass)
property
- propertyleftClass
- left classrightClass
- right classtrue
if the triplet was effectively added,
false
otherwisepublic boolean addToS(int subClass, int superClass)
subClass
- sub classsuperClass
- super classtrue
if the pair was effectively added,
false
otherwisepublic boolean contains(VNode node)
ClassifierStatus
contains
in interface ClassifierStatus
node
- node to test membershippublic int createOrGetNodeId(VNode node)
ClassifierStatus
createOrGetNodeId
in interface ClassifierStatus
node
- node to get the identifierprotected void deleteClassGraph()
protected void deleteObjectPropertyGraph()
protected IntegerSubsumerGraphImpl getClassGraph()
public Object getClassGraphMonitor()
ClassifierStatus
getClassGraphMonitor
in interface ClassifierStatus
public long getDeepSizeOfR()
public long getDeepSizeOfS()
public long getDeepSizeOfV()
public ExtendedOntology getExtendedOntology()
ClassifierStatus
getExtendedOntology
in interface ClassifierStatus
public Collection<Integer> getFirstBySecond(int propertyId, int classId)
ClassifierStatus
getFirstBySecond
in interface ClassifierStatus
propertyId
- that relates the classesclassId
- the class that is on right part in the relationprotected IntegerEntityManager getIdGenerator()
public int getInverseObjectPropertyOf(int propertyId)
ClassifierStatus
getInverseObjectPropertyOf
in interface ClassifierStatus
propertyId
- object propertypublic VNode getNode(int nodeId)
ClassifierStatus
getNode
in interface ClassifierStatus
nodeId
- node identifierpublic int getNumberOfREntries()
public int getNumberOfSEntries()
public Collection<Integer> getObjectPropertiesByFirst(int cA)
ClassifierStatus
getObjectPropertiesByFirst
in interface ClassifierStatus
cA
- the class namepublic Collection<Integer> getObjectPropertiesBySecond(int cA)
ClassifierStatus
getObjectPropertiesBySecond
in interface ClassifierStatus
cA
- the class namepublic Set<Integer> getObjectPropertiesWithFunctionalAncestor(int objectProperty)
ClassifierStatus
getObjectPropertiesWithFunctionalAncestor
in interface ClassifierStatus
objectProperty
- object propertyprotected IntegerSubsumerBidirectionalGraphImpl getObjectPropertyGraph()
protected IntegerRelationMapImpl getRelationSet()
public Object getRelationSetMonitor()
ClassifierStatus
getRelationSetMonitor
in interface ClassifierStatus
public Collection<Integer> getSecondByFirst(int propertyId, int classId)
ClassifierStatus
getSecondByFirst
in interface ClassifierStatus
propertyId
- that relates the classesclassId
- the class that is on left part in the relationpublic long getSizeOfV()
public Collection<Integer> getSubObjectProperties(int objectProperty)
ClassifierStatus
getSubObjectProperties
in interface ClassifierStatus
objectProperty
- object propertypublic Collection<Integer> getSubsumers(int classId)
ClassifierStatus
getSubsumers
in interface ClassifierStatus
classId
- class to get the subsumerspublic Collection<Integer> getSuperObjectProperties(int objectProperty)
ClassifierStatus
getSuperObjectProperties
in interface ClassifierStatus
objectProperty
- object propertypublic REntry removeNextREntry()
NoSuchElementException
- if the set of R-entries is emptypublic SEntry removeNextSEntry()
NoSuchElementException
- if the set of S-entries is emptypublic void outputSetS(Writer output) throws IOException
IOException
public void outputSetR(Writer output) throws IOException
IOException
Copyright © 2009–2015 Chair of Automata Theory - TU Dresden. All rights reserved.