Package com.chemaxon.calculations.cli
Class CalculatorPluginCachedResults
java.lang.Object
com.chemaxon.calculations.cli.CalculatorPluginCachedResults
- All Implemented Interfaces:
CalculatorResultAccess
@PublicApi
public class CalculatorPluginCachedResults
extends Object
implements CalculatorResultAccess
Provides plugin cached results.
- Since:
- Marvin 5.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the table header.Returns the calculation remark.Returns the result string for the given molecule.Returns the plugin calculation error message, error or warning.getResultMolecule
(Molecule target) Returns the decorated result molecule for the given target molecule.Molecule[]
getResultMolecules
(Molecule target) Returns the result molecules for the given molecule.Returns the throwable object.boolean
isOK()
Returnstrue
if the calculation has run without error.
-
Constructor Details
-
CalculatorPluginCachedResults
public CalculatorPluginCachedResults(String header, String resultString, Molecule[] resultMols, Molecule resultMol, String resultMessage, String remark, Throwable throwable, boolean ok) Constructor.- Parameters:
header
- the header stringresultString
- the result stringresultMols
- the result molecule arrayresultMol
- the result decorated moleculeresultMessage
- the result warning or error mesagethrowable
- the errorok
-true
if the calculation has run without error
-
-
Method Details
-
getHeader
Returns the table header.- Specified by:
getHeader
in interfaceCalculatorResultAccess
- Returns:
- the table header
-
getResult
Returns the result string for the given molecule.- Specified by:
getResult
in interfaceCalculatorResultAccess
- Parameters:
target
- is the target molecule- Returns:
- the result row
- Throws:
PluginException
- on error
-
getResultMolecules
Returns the result molecules for the given molecule.- Specified by:
getResultMolecules
in interfaceCalculatorResultAccess
- Parameters:
target
- is the target molecule- Returns:
- the result molecules
- Throws:
PluginException
- on error
-
getResultMolecule
Returns the decorated result molecule for the given target molecule. Used in case of MRV output (-M, --mrv-output).- Specified by:
getResultMolecule
in interfaceCalculatorResultAccess
- Parameters:
target
- is the target molecule- Returns:
- the result molecule
- Throws:
PluginException
- if on error
-
getResultMessage
Returns the plugin calculation error message, error or warning.- Specified by:
getResultMessage
in interfaceCalculatorResultAccess
- Returns:
- the plugin calculation error message
-
getRemark
Returns the calculation remark.- Specified by:
getRemark
in interfaceCalculatorResultAccess
- Returns:
- the calculation remark
-
getThrowable
Returns the throwable object.- Specified by:
getThrowable
in interfaceCalculatorResultAccess
- Returns:
- the throwable object
-
isOK
public boolean isOK()Returnstrue
if the calculation has run without error.- Specified by:
isOK
in interfaceCalculatorResultAccess
- Returns:
true
if the calculation has run without error
-