public class AdductionProtonLPReaction extends ReactionEngine implements IReactionProcess
IReactionProcess which produces a protonation. As most commonly encountered, this reaction results in the formal migration of a hydrogen atom or proton, accompanied by a switch of a single bond and adjacent double bond
[X-] + [H+] => X -H
|X + [H+] => [X+]-H
Below you have an example how to initiate the mechanism.
It is processed by the AdductionLPMechanism class
IAtomContainerSet setOfReactants = DefaultChemObjectBuilder.getInstance().newAtomContainerSet();
setOfReactants.addAtomContainer(new AtomContainer());
IReactionProcess type = new AdductionProtonLPReaction();
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 specify 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 specified then the reaction process will try to find automatically the possible reaction centers.
AdductionLPMechanismmechanism, paramsMap, paramsMap2| Constructor and Description |
|---|
AdductionProtonLPReaction()
Constructor of the AdductionProtonLPReaction object.
|
| Modifier and Type | Method and Description |
|---|---|
ReactionSpecification |
getSpecification()
Gets the specification attribute of the AdductionProtonLPReaction object.
|
IReactionSet |
initiate(IAtomContainerSet reactants,
IAtomContainerSet agents)
Initiate process.
|
getParameterClass, getParameterList, setParameterListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterClass, getParameterList, setParameterListpublic AdductionProtonLPReaction()
public ReactionSpecification getSpecification()
getSpecification in interface IReactionProcesspublic IReactionSet initiate(IAtomContainerSet reactants, IAtomContainerSet agents) throws CDKException
initiate in interface IReactionProcessreactants - reactants of the reactionagents - agents of the reaction (Must be in this case null)CDKException - Description of the ExceptionCopyright © 2021. All rights reserved.