| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.parameterizedobject.ParameterizedObject --+
|
base.patterngenerator.PatternGenerator --+
|
Composite
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
operator = <topo.base.parameterizedobject.Parameter object at Binary Numeric function used to combine the individual patterns. |
|||
generators = <topo.base.parameterclasses.ListParameter object List of patterns to use in the composite pattern. |
|||
size = Number(default= 1.0, doc= "Scaling factor applied to alScaling factor applied to all sub-patterns. |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Initialize this ParameterizedObject. The values of parameters can be supplied as keyword arguments to the constructor (using parametername=parametervalue); these values will override the class default values for this one instance. If no 'name' parameter is supplied, self.name defaults to the object's class name with a unique number appended to it.
|
|
|
|||
operatorBinary Numeric function used to combine the individual patterns. Any binary Numeric array "ufunc" returning the same type of array as the operands and supporting the reduce operator is allowed here. Supported ufuncs include: add subtract multiply divide maximum minimum remainder power logical_and logical_or logical_xor The most useful ones are probably add and maximum, but there are uses for at least some of the others as well (e.g. to remove pieces of other patterns). You can also write your own operators, by making a class that has a static method named "reduce" that returns an array of the same size and type as the arrays in the list. For example:
class return_first(object):
@staticmethod
def reduce(x):
return x[0]
|
generatorsList of patterns to use in the composite pattern. The default is a blank pattern, and should thus be overridden for any useful work.
|
sizeScaling factor applied to all sub-patterns.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Feb 21 15:25:07 2008 | http://epydoc.sourceforge.net |