org.semanticweb.elk.reasoner
Class ReasonerJob<I,O>

java.lang.Object
  extended by org.semanticweb.elk.reasoner.ReasonerJob<I,O>
Type Parameters:
I - the type of the input of the job
O - the type of the result of the computation
Direct Known Subclasses:
SaturationJob, TransitiveReductionJob

public class ReasonerJob<I,O>
extends Object

A general class for jobs submitted for computation. Every job is initialized with some input, and when the input is processed, this job can be used to obtain the result of the computation.

Author:
"Yevgeny Kazakov"

Constructor Summary
ReasonerJob(I input)
          Creating a job instance for the given input.
 
Method Summary
 I getInput()
          Returns the input for this job.
 O getOutput()
          Returns the output of this job, or null if the job has not been processed yet.
protected  void setOutput(O output)
          Set the output of this job to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReasonerJob

public ReasonerJob(I input)
Creating a job instance for the given input.

Parameters:
input - the input to be processed
Method Detail

getInput

public I getInput()
Returns the input for this job.

Returns:
the input for this job

getOutput

public O getOutput()
Returns the output of this job, or null if the job has not been processed yet.

Returns:
the output of this job

setOutput

protected void setOutput(O output)
Set the output of this job to the given value.

Parameters:
output - the output of this job


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.