public class InstanceTaxonomyComputationFactory extends Object implements InputProcessorFactory<IndexedIndividual,InstanceTaxonomyComputationFactory.Engine>
InstanceTaxonomy. The jobs are submitted using the method
InstanceTaxonomyComputationFactory.Engine.submit(IndexedIndividual), which require the computation of
the Node for the input IndexedIndividual.| Modifier and Type | Class and Description |
|---|---|
class |
InstanceTaxonomyComputationFactory.Engine |
| Constructor and Description |
|---|
InstanceTaxonomyComputationFactory(SaturationState saturationState,
int maxWorkers,
UpdateableInstanceTaxonomy<ElkClass,ElkNamedIndividual> partialTaxonomy)
Create a shared engine for the input ontology index and a partially
pre-computed taxonomy object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish() |
InstanceTaxonomyComputationFactory.Engine |
getEngine() |
UpdateableInstanceTaxonomy<ElkClass,ElkNamedIndividual> |
getTaxonomy()
Returns the taxonomy constructed by this engine
|
boolean |
isInterrupted() |
void |
printStatistics()
Print statistics about taxonomy construction
|
void |
setInterrupt(boolean flag) |
public InstanceTaxonomyComputationFactory(SaturationState saturationState, int maxWorkers, UpdateableInstanceTaxonomy<ElkClass,ElkNamedIndividual> partialTaxonomy)
saturationState - the saturation state of the reasonermaxWorkers - the maximum number of workers that can use this factorypartialTaxonomy - the (partially pre-computed) class taxonomy object to store
results inpublic UpdateableInstanceTaxonomy<ElkClass,ElkNamedIndividual> getTaxonomy()
public InstanceTaxonomyComputationFactory.Engine getEngine()
getEngine in interface InputProcessorFactory<IndexedIndividual,InstanceTaxonomyComputationFactory.Engine>public void setInterrupt(boolean flag)
setInterrupt in interface Interrupterpublic boolean isInterrupted()
isInterrupted in interface Interrupterpublic void finish()
finish in interface InputProcessorFactory<IndexedIndividual,InstanceTaxonomyComputationFactory.Engine>public void printStatistics()
Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.