public class RearrangementAnionReaction extends ReactionEngine implements IReactionProcess
IReactionProcess which participate in movement resonance. This reaction could be represented as [A-]-B=C => A=B-[C-]. Due to excess of charge of the atom B, the double bond in the position 2 is desplaced.
Make sure that the molecule has the correspond lone pair electrons for each atom. You can use the method:
LonePairElectronChecker
It is processed by the RearrangementChargeMechanism class
IAtomContainerSet setOfReactants = DefaultChemObjectBuilder.getInstance().newAtomContainerSet();
setOfReactants.addAtomContainer(new AtomContainer());
IReactionProcess type = new RearrangementAnionReaction();
Object[] params = {Boolean.FALSE};
type.setParameters(params);
IReactionSet setOfReactions = type.initiate(setOfReactants, null);
We have the possibility to localize the reactive center. Good method if you want to localize the reaction in a fixed point
atoms[0].setFlag(CDKConstants.REACTIVE_CENTER,true);
Moreover you must put the parameter Boolean.TRUE
If the reactive center is not localized then the reaction process will try to find automatically the possible reactive center.
RearrangementChargeMechanismmechanism, paramsMap, paramsMap2| Constructor and Description |
|---|
RearrangementAnionReaction()
Constructor of the RearrangementAnionReaction object
|
| Modifier and Type | Method and Description |
|---|---|
ReactionSpecification |
getSpecification()
Gets the specification attribute of the RearrangementAnionReaction object
|
IReactionSet |
initiate(IAtomContainerSet reactants,
IAtomContainerSet agents)
Initiate process.
|
getParameterClass, getParameterList, setParameterListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterClass, getParameterList, setParameterListpublic RearrangementAnionReaction()
public ReactionSpecification getSpecification()
getSpecification in interface IReactionProcesspublic IReactionSet initiate(IAtomContainerSet reactants, IAtomContainerSet agents) throws CDKException
initiate in interface IReactionProcessreactants - reactants of the reaction.agents - agents of the reaction (Must be in this case null).CDKException - Description of the ExceptionCopyright © 2017. All Rights Reserved.