OpenMM
Chain Class Reference

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

List of all members.

Public Member Functions

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

Public Attributes

 index
 The index of the Chain within its Topology.
 topology
 The Topology this Chain belongs to.
 id
 A user defined identifier for this Chain.

Detailed Description

A Chain object represents a chain within a Topology.


Constructor & Destructor Documentation

def __init__ (   self,
  index,
  topology,
  id 
)

Construct a new Chain.

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


Member Function Documentation

def __len__ (   self)
def __repr__ (   self)
def atoms (   self)

Iterate over all Atoms in the Chain.

def residues (   self)

Iterate over all Residues in the Chain.


Member Data Documentation

id

A user defined identifier for this Chain.

The index of the Chain within its Topology.

The Topology this Chain belongs to.


The documentation for this class was generated from the following file:
 All Classes Functions Variables