R - the type of the input class expressions for which to compute the
resultJ - the type of the jobs that can be processed by this transitive
reduction enginepublic class TransitiveReductionFactory<R extends IndexedClassExpression,J extends TransitiveReductionJob<R>> extends SimpleInterrupter implements InputProcessorFactory<J,TransitiveReductionFactory.Engine>
TransitiveReductionJob with the specified root
IndexedClassExpression. Upon successful completion of the job, one of
the two types of the TransitiveReductionOutput can be assigned:
either TransitiveReductionOutputUnsatisfiable, which means that the
given root IndexedClassExpression is unsatisfiable, or
TransitiveReductionOutputEquivalentDirect, which contains information
about equivalent classes of the given root IndexedClassExpression and
its direct super-classes.
As usual, to this engine factory it is possible to attach a
TransitiveReductionListener using which one can monitor the
processing of jobs and perform actions accordingly.TransitiveReductionOutput,
TransitiveReductionOutputUnsatisfiable,
TransitiveReductionOutputEquivalentDirect,
TransitiveReductionListener| Modifier and Type | Class and Description |
|---|---|
class |
TransitiveReductionFactory.Engine |
| Constructor and Description |
|---|
TransitiveReductionFactory(SaturationState saturationState,
int maxWorkers,
TransitiveReductionListener<J> listener)
Creating a new transitive reduction engine for the input ontology index
and a listener for executing callback functions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish() |
TransitiveReductionFactory.Engine |
getEngine() |
SaturationStatistics |
getRuleAndConclusionStatistics() |
void |
printStatistics()
Print statistics about the transitive reduction stage
|
void |
setInterrupt(boolean flag) |
isInterruptedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisInterruptedpublic TransitiveReductionFactory(SaturationState saturationState, int maxWorkers, TransitiveReductionListener<J> listener)
saturationState - the saturation state of the reasonermaxWorkers - the maximum number of workers that can use this factorylistener - the listener object implementing callback functions for this
enginepublic TransitiveReductionFactory.Engine getEngine()
getEngine in interface InputProcessorFactory<J extends TransitiveReductionJob<R>,TransitiveReductionFactory.Engine>public void setInterrupt(boolean flag)
setInterrupt in interface InterruptersetInterrupt in class SimpleInterrupterpublic void finish()
finish in interface InputProcessorFactory<J extends TransitiveReductionJob<R>,TransitiveReductionFactory.Engine>public void printStatistics()
public SaturationStatistics getRuleAndConclusionStatistics()
Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.