OpenMM
 All Classes Namespaces Functions Variables Pages
Chain Class Reference

A Chain object represents a chain within a Topology. More...

+ Inheritance diagram for Chain:

Public Member Functions

def __init__
 Construct a new Chain. More...
 
def residues
 Iterate over all Residues in the Chain. More...
 
def atoms
 Iterate over all Atoms in the Chain. More...
 

Public Attributes

 index
 The index of the Chain within its Topology. More...
 
 topology
 The Topology this Chain belongs to. More...
 

Detailed Description

A Chain object represents a chain within a Topology.

Constructor & Destructor Documentation

def __init__ (   self,
  index,
  topology 
)

Construct a new Chain.

You should call addChain() on the Topology instead of calling this directly.

Member Function Documentation

def atoms (   self)

Iterate over all Atoms in the Chain.

References Chain._residues.

Referenced by ForceField.registerScript().

def residues (   self)

Iterate over all Residues in the Chain.

References Chain._residues.

Member Data Documentation

index

The index of the Chain within its Topology.

Referenced by ForceField.registerScript().

topology

The Topology this Chain belongs to.

Referenced by DesmondDMSFile.getTopology().


The documentation for this class was generated from the following file: