Package param :: Class Composite
[hide private]
[frames] | no frames]

Class Composite

source code


A parameter that is in fact a composite of a set of other parameters or attributes of the class. The constructor argumentt 'attribs' takes a list of attribute names. Getting the parameter returns a list of the values of the constituents of the composite, in the order specified. Likewise, setting the parameter takes a sequence of values and sets the value of the constituent attributes.
Nested Classes [hide private]

Inherited from parameterized.Parameter: __metaclass__

Instance Methods [hide private]
 
__init__(self, attribs=[], **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__get__(self, obj, objtype)
Return the values of all the attribs, as a list.
source code
 
__set__(self, obj, val)
Set the values of all the attribs.
source code

Inherited from parameterized.Parameter: __delete__, __getstate__, __setstate__

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

Class Variables [hide private]
  __classdoc = '\n A parameter that is in fact a composite of...
str(object) -> string
Properties [hide private]
  attribs
  objtype

Inherited from parameterized.Parameter: constant, default, doc, instantiate, pickle_default_value, precedence, readonly

Inherited from object: __class__

Method Details [hide private]

__init__(self, attribs=[], **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__get__(self, obj, objtype)

source code 
Return the values of all the attribs, as a list.
Overrides: parameterized.Parameter.__get__

__set__(self, obj, val)

source code 
Set the values of all the attribs.
Overrides: parameterized.Parameter.__set__

Class Variable Details [hide private]

__classdoc

str(object) -> string

Return a nice string representation of the object. If the argument is a string, the return value is the same object.

Value:
'''
    A parameter that is in fact a composite of a set of other
    parameters or attributes of the class.  The constructor argumentt
    \'attribs\' takes a list of attribute names.  Getting the parameter
    returns a list of the values of the constituents of the composite,
    in the order specified.  Likewise, setting the parameter takes a
    sequence of values and sets the value of the constituent
    attributes.
...