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

Class ParamTable

object --+
         |
        ParamTable

The `ParamTable` class is a 2d table, whose rows are indexed by ``id`` and whose columns are properties; see the discussion of properties in the Overview. A `ParamTable` is used by `TermTables` to hold the shared parameters for its `Terms`.

Instance Methods [hide private]
 
__init__(self, _ptr)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__eq__(self, x)
 
__ne__(self, x)
 
__hash__(self)
hash(x)
 
addParam(self, **kwds)
add and return a new Param().
 
addProp(self, name, type)
add a new property of the given type, which must be int, float, or str.
 
propType(self, name)
type of the property with the given name
 
delProp(self, name)
removes the property with the given name.
 
param(self, id)
fetch the Param with the given id
 
find(self, name, value)
return the Params with the given value for name

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

Instance Variables [hide private]
  _ptr
Construct from ParamTablePtr.
Properties [hide private]
  props
names of the properties
  nprops
number of properties
  nparams
number of Params
  params
list of all Params in table

Inherited from object: __class__

Method Details [hide private]

__init__(self, _ptr)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__hash__(self)
(Hashing function)

 

hash(x)

Overrides: object.__hash__
(inherited documentation)

addParam(self, **kwds)

 

add and return a new Param().

If keyword arguments are supplied, they will be assigned to the newly created Param before returning it.


Instance Variable Details [hide private]

_ptr

Construct from ParamTablePtr. Do not invoke directly; use CreateParamTable() instead.


Property Details [hide private]

props

names of the properties

Get Method:
unreachable.props(self) - names of the properties

nprops

number of properties

Get Method:
unreachable.nprops(self) - number of properties

nparams

number of Params

Get Method:
unreachable.nparams(self) - number of Params

params

list of all Params in table

Get Method:
unreachable.params(self) - list of all Params in table