Package com.chemaxon.calculations.cli
Interface CalculatorResultAccess
- All Known Implementing Classes:
CalculatorPluginCachedResults
,CalculatorPluginOutput
Interface providing plugin result access.
- Since:
- Marvin 5.2
-
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 target molecule.Returns the throwable object.boolean
isOK()
Returnstrue
if the calculation has run without error.
-
Method Details
-
getHeader
String getHeader()Returns the table header.- Returns:
- the table header
-
getResult
Returns the result string for the given molecule.- Parameters:
target
- is the target molecule- Returns:
- the result row
- Throws:
PluginException
- on error
-
getResultMolecules
Returns the result molecules for the given target molecule.- 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).- Parameters:
target
- is the target molecule- Returns:
- the result molecule
- Throws:
PluginException
- on error
-
getResultMessage
String getResultMessage()Returns the plugin calculation error message, error or warning.- Returns:
- the plugin calculation error message
-
getRemark
String getRemark()Returns the calculation remark.- Returns:
- the calculation remark
-
getThrowable
Throwable getThrowable()Returns the throwable object.- Returns:
- the throwable object
-
isOK
boolean isOK()Returnstrue
if the calculation has run without error.- Returns:
true
if the calculation has run without error
-