Package com.chemaxon.mapper
Interface Mapper<T>
- Type Parameters:
T
- type of object to map
- All Known Implementing Classes:
AutoMapper
Provides support for mapping parts of <T> instances by finding the matching parts and mark them with the same
identifier.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Marks the matching parts of item with the same identifier.void
setKeepMapping
(boolean keepMapping) Sets if the initial mapping of the given object should be kept or not.void
Sets the mapping stylevoid
setMarkBonds
(boolean markResult) Sets if the changing bonds should be marked or not.void
setTimeLimit
(long timeLimitMilliseconds) Sets time limit for calculation.
-
Method Details
-
map
Marks the matching parts of item with the same identifier.- Parameters:
item
- the item to map the parts of- Returns:
true
if mapping was successful
-
setMappingStyle
Sets the mapping style- Parameters:
style
- the mapping style to set
-
setMarkBonds
void setMarkBonds(boolean markResult) Sets if the changing bonds should be marked or not.- Parameters:
markResult
- if the reaction center should be marked or not
-
setKeepMapping
void setKeepMapping(boolean keepMapping) Sets if the initial mapping of the given object should be kept or not.- Parameters:
keepMapping
- if the initial mapping of the given object should be kept or not
-
setTimeLimit
void setTimeLimit(long timeLimitMilliseconds) Sets time limit for calculation. Upon elapsing time limit the molecule is mapped with the so far calculated mapping.- Parameters:
timeLimitMilliseconds
- timeout limit in milliseconds. -1 means disabled.
-