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 SummaryConstructorsConstructorDescriptionStandardizerResult(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 SummaryModifier 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 moleculebooleanGets whether an exception occurred during standardization
- 
Constructor Details- 
StandardizerResultpublic StandardizerResult(Molecule original, Molecule standardized, List<Changes> changeList, List<StandardizerAction> appliedActions) Initializes a standardizer result for a successful execution- Parameters:
- original- the original molecule
- standardized- the standardized molecule
- changeList- the list of changes
- appliedActions- the applied actions
 
- 
StandardizerResultpublic StandardizerResult(Molecule original, Molecule standardized, List<StandardizerAction> appliedActions) Initializes a standardizer result for a successful execution- Parameters:
- original- the original molecule
- standardized- the standardized molecule
- appliedActions- the applied actions
- Since:
- JChem 6.4
 
- 
StandardizerResultInitializes a standardizer result for an error- Parameters:
- original- the original molecule
- exception- the exception of the error
 
 
- 
- 
Method Details- 
getOriginalGets the original molecule- Returns:
- the original molecule
 
- 
getStandardizedGets the standardized molecule- Returns:
- the standardized molecule
 
- 
getAppliedActionsGets the list of applied actions- Returns:
- the list of applied actions
 
- 
getChangeListGets the list of applied changes- Returns:
- the list of applied changes
 
- 
getNewToOldMappublic 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
 
- 
getOldToNewMappublic 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
 
- 
getChangeMapThe map containing the applied changes for each applied actions- Returns:
- map containing the applied changes for each applied actions
 
- 
getOccurredExceptionGets the exception occurred during standardization process- Returns:
- the exception occurred during standardization process
 
- 
isExceptionOccurredpublic boolean isExceptionOccurred()Gets whether an exception occurred during standardization- Returns:
- whether an exception occurred during standardization
 
 
-