Package topo :: Package numbergen :: Module basic :: Class NumberGenerator
[hide private]
[frames] | no frames]

Class NumberGenerator

source code


Abstract base class for any object that when called produces a number.

Primarily provides support for using NumberGenerators in simple arithmetic expressions, such as abs((x+y)/z), where x,y,z are NumberGenerators or numbers.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__call__(self) source code
 
__add__(self, operand) source code
 
__sub__(self, operand) source code
 
__mul__(self, operand) source code
 
__mod__(self, operand) source code
 
__pow__(self, operand) source code
 
__div__(self, operand) source code
 
__truediv__(self, operand) source code
 
__floordiv__(self, operand) source code
 
__radd__(self, operand) source code
 
__rsub__(self, operand) source code
 
__rmul__(self, operand) source code
 
__rmod__(self, operand) source code
 
__rpow__(self, operand) source code
 
__rdiv__(self, operand) source code
 
__rtruediv__(self, operand) source code
 
__rfloordiv__(self, operand) source code
 
__neg__(self) source code
 
__pos__(self) source code
 
__abs__(self) source code

Inherited from param.parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

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

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  name = <param.parameterized.String object at 0xa0addf4>
String identifier for this object.

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__