Package chemaxon.standardizer.concurrent
Class StandardizerResult
java.lang.Object
chemaxon.standardizer.concurrent.StandardizerResult
Result of a standardization process for a molecule
- Since:
- 6.0
-
Constructor Summary
ConstructorDescriptionStandardizerResult
(Molecule original, Molecule standardized, List<Changes> changeList, List<StandardizerAction> appliedActions) Initializes a standardizer result for a successful executionStandardizerResult
(Molecule original, Molecule standardized, List<StandardizerAction> appliedActions) Initializes a standardizer result for a successful executionStandardizerResult
(Molecule original, Exception exception) Initializes a standardizer result for an error -
Method Summary
Modifier and TypeMethodDescriptionGets the list of applied actionsGets the list of applied changesThe map containing the applied changes for each applied actionsint[]
Returns the new -> old atom index mapping.Gets the exception occurred during standardization processint[]
Returns the old -> new atom index mapping.Gets the original moleculeGets the standardized moleculeboolean
Gets whether an exception occurred during standardization
-
Constructor Details
-
StandardizerResult
public StandardizerResult(Molecule original, Molecule standardized, List<Changes> changeList, List<StandardizerAction> appliedActions) Initializes a standardizer result for a successful execution- Parameters:
original
- the original moleculestandardized
- the standardized moleculechangeList
- the list of changesappliedActions
- the applied actions
-
StandardizerResult
public StandardizerResult(Molecule original, Molecule standardized, List<StandardizerAction> appliedActions) Initializes a standardizer result for a successful execution- Parameters:
original
- the original moleculestandardized
- the standardized moleculeappliedActions
- the applied actions- Since:
- JChem 6.4
-
StandardizerResult
Initializes a standardizer result for an error- Parameters:
original
- the original moleculeexception
- the exception of the error
-
-
Method Details
-
getOriginal
Gets the original molecule- Returns:
- the original molecule
-
getStandardized
Gets the standardized molecule- Returns:
- the standardized molecule
-
getAppliedActions
Gets the list of applied actions- Returns:
- the list of applied actions
-
getChangeList
Gets the list of applied changes- Returns:
- the list of applied changes
-
getNewToOldMap
public int[] getNewToOldMap()Returns the new -> old atom index mapping.
newToOld[i]==j means that the i-th atom of the new molecule corresponds to the j-th atom of the old molecule.- Returns:
- the new -> old atom index mapping
-
getOldToNewMap
public int[] getOldToNewMap()Returns the old -> new atom index mapping.
oldToNew[i]==j means that the i-th atom of the old molecule corresponds to the j-th atom of the new molecule.- Returns:
- the old -> new atom index mapping
-
getChangeMap
The map containing the applied changes for each applied actions- Returns:
- map containing the applied changes for each applied actions
-
getOccurredException
Gets the exception occurred during standardization process- Returns:
- the exception occurred during standardization process
-
isExceptionOccurred
public boolean isExceptionOccurred()Gets whether an exception occurred during standardization- Returns:
- whether an exception occurred during standardization
-