J - the type of the saturation jobs that can be processed by this
saturation enginepublic class ClassExpressionSaturationFactory<J extends SaturationJob<? extends IndexedClassExpression>> extends Object implements InputProcessorFactory<J,ClassExpressionSaturationFactory.Engine>
ClassExpressionSaturationFactory.Engine.submit(SaturationJob), and all currently submitted
jobs are processed using the ClassExpressionSaturationFactory.Engine.process(). To every
ClassExpressionSaturationFactory it is possible to attach a
ClassExpressionSaturationListener, which can implement hook methods
that perform certain actions during the processing, e.g., notifying when the
jobs are finished.
The implementation relies heavily on the Java's concurrency package and uses
several atomic integer to monitor the progress of the computation.ClassExpressionSaturationListener| Modifier and Type | Class and Description |
|---|---|
class |
ClassExpressionSaturationFactory.Engine |
| Constructor and Description |
|---|
ClassExpressionSaturationFactory(RuleApplicationFactory ruleAppFactory,
int maxWorkers)
Creates a new saturation factory using the given rule application
factory.
|
ClassExpressionSaturationFactory(RuleApplicationFactory ruleAppFactory,
int maxWorkers,
ClassExpressionSaturationListener<J> listener) |
ClassExpressionSaturationFactory(SaturationState saturationState,
int maxWorkers,
ClassExpressionSaturationListener<J> listener)
Creates a new saturation engine using the given saturation state,
listener for callback functions, and threshold for the number of
unprocessed contexts.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish() |
ClassExpressionSaturationFactory.Engine |
getEngine() |
SaturationStatistics |
getRuleAndConclusionStatistics() |
boolean |
isInterrupted() |
void |
printStatistics()
Print statistics about the saturation
|
void |
setInterrupt(boolean flag) |
public ClassExpressionSaturationFactory(SaturationState saturationState, int maxWorkers, ClassExpressionSaturationListener<J> listener)
saturationState - the current state of saturationmaxWorkers - the maximum number of workers that can use this factorylistener - the listener object implementing callback functionspublic ClassExpressionSaturationFactory(RuleApplicationFactory ruleAppFactory, int maxWorkers, ClassExpressionSaturationListener<J> listener)
public ClassExpressionSaturationFactory(RuleApplicationFactory ruleAppFactory, int maxWorkers)
ruleAppFactory - maxWorkers - the maximum number of workers that can use this factorypublic ClassExpressionSaturationFactory.Engine getEngine()
getEngine in interface InputProcessorFactory<J extends SaturationJob<? extends IndexedClassExpression>,ClassExpressionSaturationFactory.Engine>public void printStatistics()
public void setInterrupt(boolean flag)
setInterrupt in interface Interrupterpublic boolean isInterrupted()
isInterrupted in interface Interrupterpublic void finish()
finish in interface InputProcessorFactory<J extends SaturationJob<? extends IndexedClassExpression>,ClassExpressionSaturationFactory.Engine>public SaturationStatistics getRuleAndConclusionStatistics()
Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.