|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.owl.metrics.AbstractOWLMetric<M>
public abstract class AbstractOWLMetric<M>
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 27-Jul-2007
Constructor Summary | |
---|---|
AbstractOWLMetric(OWLOntologyManager owlOntologyManager)
|
Method Summary | |
---|---|
void |
dispose()
Diposes of the metric. |
OWLOntologyManager |
getManager()
Gets the ontology manager which, amongst other things can be used to obtain the imports closure of the current ontology. |
java.util.Set<OWLOntology> |
getOntologies()
|
OWLOntology |
getOntology()
Gets the ontology which the value of the metric should be based on. |
M |
getValue()
Gets the value of this metric. |
boolean |
isImportsClosureUsed()
Determines if the computation of the metric should take into account the imports closure of the current ontology. |
void |
ontologiesChanged(java.util.List<? extends OWLOntologyChange> changes)
Called when some changes have been applied to various ontologies. |
void |
setImportsClosureUsed(boolean b)
Sets whether this metric uses the imports closure of the current ontology |
void |
setOntology(OWLOntology ontology)
Sets the "root" ontology. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.semanticweb.owl.metrics.OWLMetric |
---|
getName |
Constructor Detail |
---|
public AbstractOWLMetric(OWLOntologyManager owlOntologyManager)
Method Detail |
---|
public OWLOntology getOntology()
OWLMetric
getOntology
in interface OWLMetric<M>
public final void setOntology(OWLOntology ontology)
OWLMetric
setOntology
in interface OWLMetric<M>
ontology
- The ontology for which the metric should
be computed.public final M getValue()
OWLMetric
getValue
in interface OWLMetric<M>
toString
method of
the object returned by this method will result in a human
readable string that displays the value of the metric.public java.util.Set<OWLOntology> getOntologies()
public void ontologiesChanged(java.util.List<? extends OWLOntologyChange> changes) throws OWLException
OWLOntologyChangeListener
ontologiesChanged
in interface OWLOntologyChangeListener
changes
- A list of changes that have occurred. Each change may be examined
to determine which ontology it was applied to.
OWLException
public OWLOntologyManager getManager()
OWLMetric
getManager
in interface OWLMetric<M>
OWLOntologyManager
.public void dispose()
OWLMetric
dispose
in interface OWLMetric<M>
public final boolean isImportsClosureUsed()
OWLMetric
isImportsClosureUsed
in interface OWLMetric<M>
true
if the imports closure of the
current ontology is taken into account when computing the
value of this metric, or false
if the imports
closure isn't taken into account when computing this metric.public void setImportsClosureUsed(boolean b)
OWLMetric
setImportsClosureUsed
in interface OWLMetric<M>
b
- true
if this metric uses the imports
closure of the current ontology, otherwise false.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |