|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.plugin.concurrent.PluginWorkUnit
public abstract class PluginWorkUnit
Work unit performing plugin calculation. The input is the input molecule.
MolInputProducer| Field Summary | |
|---|---|
protected CalculatorPlugin |
plugin
The plugin object. |
protected Molecule |
target
The target molecule. |
| Constructor Summary | |
|---|---|
PluginWorkUnit()
Constructor. |
|
PluginWorkUnit(CalculatorPlugin plugin)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
call()
Performs the calculation and returns the result returned by getResult(). |
protected java.lang.String |
getHeader()
Returns the table header. |
abstract java.lang.Object |
getResult()
Returns the calculation result after the plugin has been CalculatorPlugin.run(). |
java.lang.Exception |
getWrapperException(java.lang.Exception e)
Returns a wrapper exception to be returned. |
void |
setInput(java.lang.Object obj)
Sets the input molecule. |
void |
setPlugin(CalculatorPlugin plugin)
Sets the plugin object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CalculatorPlugin plugin
protected Molecule target
| Constructor Detail |
|---|
public PluginWorkUnit()
setPlugin(chemaxon.marvin.plugin.CalculatorPlugin).
public PluginWorkUnit(CalculatorPlugin plugin)
plugin - the plugin object| Method Detail |
|---|
public void setPlugin(CalculatorPlugin plugin)
plugin - the plugin object
public void setInput(java.lang.Object obj)
throws java.util.concurrent.ExecutionException
setInput in interface WorkUnitobj - the input molecule
java.util.concurrent.ExecutionException
public java.lang.Object call()
throws java.lang.Exception
getResult().
call in interface java.util.concurrent.Callablejava.lang.Exceptionprotected java.lang.String getHeader()
public java.lang.Exception getWrapperException(java.lang.Exception e)
e - the base exception
public abstract java.lang.Object getResult()
throws java.lang.Exception
CalculatorPlugin.run().
Subclasses should override this to return a specific calculation result.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||