Chemical Data Processing Library Python API - Version 1.2.0
Public Member Functions | Properties | List of all members
CDPL.ConfGen.FragmentAssembler Class Reference
+ Inheritance diagram for CDPL.ConfGen.FragmentAssembler:

Public Member Functions

None __init__ ()
 Initializes the FragmentAssembler instance.
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
FragmentAssemblerSettings getSettings ()
 
None clearFragmentLibraries ()
 
None addFragmentLibrary (FragmentLibrary lib)
 
None setAbortCallback (CallbackFunction func)
 
CallbackFunction getAbortCallback ()
 
None setTimeoutCallback (CallbackFunction func)
 
CallbackFunction getTimeoutCallback ()
 
None setLogMessageCallback (LogMessageCallbackFunction func)
 
LogMessageCallbackFunction getLogMessageCallback ()
 
int assemble (Chem.MolecularGraph molgraph)
 
int assemble (Chem.MolecularGraph molgraph, Chem.MolecularGraph fixed_substr, Math.Vector3DArray fixed_substr_coords)
 
int getNumConformers ()
 
ConformerData getConformer (int conf_idx)
 
ConformerData __getitem__ (int conf_idx)
 

Properties

 objectID = property(getObjectID)
 
 numConformers = property(getNumConformers)
 
 settings = property(getSettings)
 
 abortCallback = property(getAbortCallback, setAbortCallback)
 
 timeoutCallback = property(getTimeoutCallback, setTimeoutCallback)
 
 logMessageCallback = property(getLogMessageCallback, setLogMessageCallback)
 

Member Function Documentation

◆ getObjectID()

int CDPL.ConfGen.FragmentAssembler.getObjectID ( )

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

Different Python FragmentAssembler 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 FragmentAssembler 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.

◆ getSettings()

FragmentAssemblerSettings CDPL.ConfGen.FragmentAssembler.getSettings ( )
Returns

◆ addFragmentLibrary()

None CDPL.ConfGen.FragmentAssembler.addFragmentLibrary ( FragmentLibrary  lib)
Parameters
lib

◆ setAbortCallback()

None CDPL.ConfGen.FragmentAssembler.setAbortCallback ( CallbackFunction  func)
Parameters
func

◆ getAbortCallback()

CallbackFunction CDPL.ConfGen.FragmentAssembler.getAbortCallback ( )
Returns

◆ setTimeoutCallback()

None CDPL.ConfGen.FragmentAssembler.setTimeoutCallback ( CallbackFunction  func)
Parameters
func

◆ getTimeoutCallback()

CallbackFunction CDPL.ConfGen.FragmentAssembler.getTimeoutCallback ( )
Returns

◆ setLogMessageCallback()

None CDPL.ConfGen.FragmentAssembler.setLogMessageCallback ( LogMessageCallbackFunction  func)
Parameters
func

◆ getLogMessageCallback()

LogMessageCallbackFunction CDPL.ConfGen.FragmentAssembler.getLogMessageCallback ( )
Returns

◆ assemble() [1/2]

int CDPL.ConfGen.FragmentAssembler.assemble ( Chem.MolecularGraph  molgraph)
Parameters
molgraph
Returns

◆ assemble() [2/2]

int CDPL.ConfGen.FragmentAssembler.assemble ( Chem.MolecularGraph  molgraph,
Chem.MolecularGraph  fixed_substr,
Math.Vector3DArray  fixed_substr_coords 
)
Parameters
molgraph
fixed_substr
fixed_substr_coords
Returns

◆ getNumConformers()

int CDPL.ConfGen.FragmentAssembler.getNumConformers ( )
Returns

◆ getConformer()

ConformerData CDPL.ConfGen.FragmentAssembler.getConformer ( int  conf_idx)
Parameters
conf_idx
Returns

◆ __getitem__()

ConformerData CDPL.ConfGen.FragmentAssembler.__getitem__ ( int  conf_idx)
Parameters
conf_idx
Returns