Package schrodinger :: Package application :: Package desmond :: Package packages :: Package msys :: Class Term
[hide private]
[frames] | no frames]

Class Term

object --+    
         |    
    Handle --+
             |
            Term

A `Term` is a handle for an entry in a `TermTable`.

The properties of a `Term` can be read and updated using a dictionary like interface. Both "term properties" and properties from the `ParamTable` are accessed through the same interface. To add or remove properties, use the provided methods in the `TermTable` or `ParamTable` instance. If a `Term`'s ``param`` is shared by another `Term` in any other `TermTable`, Msys will take care of providing the `Term` with its own `Param` containing a copy of the original properties before applying the changes. However, if you a modify a `Param` through its dictionary interface, you will affect all `Terms` that happen to share that `Param`:

   # fetch the stretch_harm table
   table = mol.table('stretch_harm')
   # update the properties of just the first Term
   table.term(0)['fc'] = 320
   # update the properties of all terms that use this param!
   table.term(0).param['fc'] = 320
Instance Methods [hide private]
 
__repr__(self)
repr(x)
 
remove(self)
remove the given Term from its TermTable
 
keys(self)
union of table.params.props and table.term_props
 
__getitem__(self, prop)
get the value of property prop
 
__setitem__(self, prop, val)
set the value of property prop

Inherited from Handle: __eq__, __hash__, __init__, __ne__

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  paramid
  id
id of this term in its TermTable
  system
parent System of parent TermTable
  param
The Param corresponding to this Term's parameters
  atoms
list of Atoms for this Term
  table
parent TermTable

Inherited from Handle (private): _id, _ptr

Inherited from object: __class__

Method Details [hide private]

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details [hide private]

paramid

Get Method:
unreachable.paramid(self)
Set Method:
unreachable.paramid(self, id)

id

id of this term in its TermTable

Get Method:
unreachable.id(self) - id of this term in its TermTable

system

parent System of parent TermTable

Get Method:
unreachable.system(self) - parent System of parent TermTable

param

The Param corresponding to this Term's parameters

Get Method:
unreachable.param(self) - The Param corresponding to this Term's parameters
Set Method:
unreachable.param(self, val)

atoms

list of Atoms for this Term

Get Method:
unreachable.atoms(self) - list of Atoms for this Term

table

parent TermTable

Get Method:
unreachable.table(self) - parent TermTable