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

Class Composite

source code

             object --+    
                      |    
parameterized.Parameter --+
                          |
                         Composite

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 sets all the constituents
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__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

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, 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 sets all the constituents
...