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
Constructors -
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.booleanisOK()Returnstrueif 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-trueif the calculation has run without error
-
-
Method Details
-
getHeader
Returns the table header.- Specified by:
getHeaderin interfaceCalculatorResultAccess- Returns:
- the table header
-
getResult
Returns the result string for the given molecule.- Specified by:
getResultin 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:
getResultMoleculesin 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:
getResultMoleculein 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:
getResultMessagein interfaceCalculatorResultAccess- Returns:
- the plugin calculation error message
-
getRemark
Returns the calculation remark.- Specified by:
getRemarkin interfaceCalculatorResultAccess- Returns:
- the calculation remark
-
getThrowable
Returns the throwable object.- Specified by:
getThrowablein interfaceCalculatorResultAccess- Returns:
- the throwable object
-
isOK
public boolean isOK()Returnstrueif the calculation has run without error.- Specified by:
isOKin interfaceCalculatorResultAccess- Returns:
trueif the calculation has run without error
-