Chemical Data Processing Library Python API - Version 1.4.0
Public Member Functions | Properties | List of all members
CDPL.ForceField.MMFF94AngleBendingInteraction Class Reference

Stores parameters for a single MMFF94 angle-bending interaction defined over an atom triplet. More...

+ Inheritance diagram for CDPL.ForceField.MMFF94AngleBendingInteraction:

Public Member Functions

None __init__ (MMFF94AngleBendingInteraction iactn)
 Initializes a copy of the MMFF94AngleBendingInteraction instance iactn. More...
 
None __init__ (int term_atom1_idx, int ctr_atom_idx, int term_atom2_idx, int angle_type_idx, bool linear, float force_const, float ref_angle)
 Constructs the angle-bending interaction parameter set. More...
 
int getTerminalAtom1Index ()
 Returns the zero-based index of the first terminal atom. More...
 
int getTerminalAtom2Index ()
 Returns the zero-based index of the second terminal atom. More...
 
int getCenterAtomIndex ()
 Returns the zero-based index of the central (vertex) atom. More...
 
int getAtom1Index ()
 Returns the zero-based index of the first terminal atom (alias for getTerminalAtom1Index()). More...
 
int getAtom2Index ()
 Returns the zero-based index of the central atom (alias for getCenterAtomIndex()). More...
 
int getAtom3Index ()
 Returns the zero-based index of the second terminal atom (alias for getTerminalAtom2Index()). More...
 
int getAngleTypeIndex ()
 Returns the MMFF94 angle type index. More...
 
bool isLinearAngle ()
 Tells whether the equilibrium angle is near linear (180°). More...
 
float getForceConstant ()
 Returns the angle-bending force constant. More...
 
float getReferenceAngle ()
 Returns the reference angle. More...
 
None setReferenceAngle (float angle)
 Sets the reference angle. More...
 
MMFF94AngleBendingInteraction assign (MMFF94AngleBendingInteraction iactn)
 Replaces the current state of self with a copy of the state of the MMFF94AngleBendingInteraction instance iactn. More...
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 

Properties

 objectID = property(getObjectID)
 
 termAtom1Index = property(getTerminalAtom1Index)
 
 termAtom2Index = property(getTerminalAtom2Index)
 
 ctrAtomIndex = property(getCenterAtomIndex)
 
 atom1Index = property(getAtom1Index)
 
 atom2Index = property(getAtom2Index)
 
 atom3Index = property(getAtom3Index)
 
 angleTypeIndex = property(getAngleTypeIndex)
 
 linear = property(isLinearAngle)
 
 forceConstant = property(getForceConstant)
 
 referenceAngle = property(getReferenceAngle, setReferenceAngle)
 

Detailed Description

Stores parameters for a single MMFF94 angle-bending interaction defined over an atom triplet.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None CDPL.ForceField.MMFF94AngleBendingInteraction.__init__ ( MMFF94AngleBendingInteraction  iactn)

Initializes a copy of the MMFF94AngleBendingInteraction instance iactn.

Parameters
iactnThe MMFF94AngleBendingInteraction instance to copy.

◆ __init__() [2/2]

None CDPL.ForceField.MMFF94AngleBendingInteraction.__init__ ( int  term_atom1_idx,
int  ctr_atom_idx,
int  term_atom2_idx,
int  angle_type_idx,
bool  linear,
float  force_const,
float  ref_angle 
)

Constructs the angle-bending interaction parameter set.

Parameters
term_atom1_idxThe zero-based index of the first terminal atom.
ctr_atom_idxThe zero-based index of the central (vertex) atom.
term_atom2_idxThe zero-based index of the second terminal atom.
angle_type_idxThe MMFF94 angle type index (0-8).
linearTrue if the equilibrium angle is near linear (180°).
force_constThe angle-bending force constant.
ref_angleThe reference angle \( \Theta_0 \) (in degrees).

Member Function Documentation

◆ getTerminalAtom1Index()

int CDPL.ForceField.MMFF94AngleBendingInteraction.getTerminalAtom1Index ( )

Returns the zero-based index of the first terminal atom.

Returns
The first terminal-atom index.

◆ getTerminalAtom2Index()

int CDPL.ForceField.MMFF94AngleBendingInteraction.getTerminalAtom2Index ( )

Returns the zero-based index of the second terminal atom.

Returns
The second terminal-atom index.

◆ getCenterAtomIndex()

int CDPL.ForceField.MMFF94AngleBendingInteraction.getCenterAtomIndex ( )

Returns the zero-based index of the central (vertex) atom.

Returns
The center-atom index.

◆ getAtom1Index()

int CDPL.ForceField.MMFF94AngleBendingInteraction.getAtom1Index ( )

Returns the zero-based index of the first terminal atom (alias for getTerminalAtom1Index()).

Returns
The first terminal-atom index.

◆ getAtom2Index()

int CDPL.ForceField.MMFF94AngleBendingInteraction.getAtom2Index ( )

Returns the zero-based index of the central atom (alias for getCenterAtomIndex()).

Returns
The center-atom index.

◆ getAtom3Index()

int CDPL.ForceField.MMFF94AngleBendingInteraction.getAtom3Index ( )

Returns the zero-based index of the second terminal atom (alias for getTerminalAtom2Index()).

Returns
The second terminal-atom index.

◆ getAngleTypeIndex()

int CDPL.ForceField.MMFF94AngleBendingInteraction.getAngleTypeIndex ( )

Returns the MMFF94 angle type index.

Returns
The angle type index (0-8).

◆ isLinearAngle()

bool CDPL.ForceField.MMFF94AngleBendingInteraction.isLinearAngle ( )

Tells whether the equilibrium angle is near linear (180°).

Returns
True if the angle is near linear, and False otherwise.

◆ getForceConstant()

float CDPL.ForceField.MMFF94AngleBendingInteraction.getForceConstant ( )

Returns the angle-bending force constant.

Returns
The force constant.

◆ getReferenceAngle()

float CDPL.ForceField.MMFF94AngleBendingInteraction.getReferenceAngle ( )

Returns the reference angle.

Returns
The reference angle \( \Theta_0 \) (in degrees).

◆ setReferenceAngle()

None CDPL.ForceField.MMFF94AngleBendingInteraction.setReferenceAngle ( float  angle)

Sets the reference angle.

Parameters
angleThe new reference angle \( \Theta_0 \) (in degrees).

◆ assign()

MMFF94AngleBendingInteraction CDPL.ForceField.MMFF94AngleBendingInteraction.assign ( MMFF94AngleBendingInteraction  iactn)

Replaces the current state of self with a copy of the state of the MMFF94AngleBendingInteraction instance iactn.

Parameters
iactnThe MMFF94AngleBendingInteraction instance to copy.
Returns
self

◆ getObjectID()

int CDPL.ForceField.MMFF94AngleBendingInteraction.getObjectID ( )

Returns the numeric identifier (ID) of the wrapped C++ class instance.

Different Python MMFF94AngleBendingInteraction instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two MMFF94AngleBendingInteraction instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().

Returns
The numeric ID of the internally referenced C++ class instance.