Package topo :: Package ep :: Module basic :: Class ThresholdUnit
[hide private]
[frames] | no frames]

Class ThresholdUnit

source code


A simple pulse-accumulator threshold node. Accumulates incoming pulses. When the accumulated value rises above threshold, it generates a pulse of a given amplitude and resets the accumulator to zero.
Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, **params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
input_event(self, conn, data)
Called by the simulation when an EPConnectionEvent is delivered; the EventProcessor should process the data somehow.
source code

Inherited from base.simulation.EventProcessor: process_current_time, script_repr, send_output, start

Inherited from param.parameterized.Parameterized: __getstate__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, 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]
  dest_ports = None
list() -> new list list(sequence) -> new list initialized from sequence's items
  threshold = param.Number(default= 1.0, doc= "The threshold at ...
The threshold at which to fire.
  initial_accum = param.Number(default= 0.0, doc= "The initial a...
The initial accumulator value.
  amplitude = param.Number(default= 1.0, doc= "The size of the p...
The size of the pulse to generate.
  name = <param.parameterized.String object at 0xb2872ec>
String identifier for this object.

Inherited from base.simulation.EventProcessor: src_ports

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **params)
(Constructor)

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

input_event(self, conn, data)

source code 
Called by the simulation when an EPConnectionEvent is delivered; the EventProcessor should process the data somehow.
Overrides: base.simulation.EventProcessor.input_event
(inherited documentation)

Class Variable Details [hide private]

threshold

The threshold at which to fire.
Value:
param.Number(default= 1.0, doc= "The threshold at which to fire.")

initial_accum

The initial accumulator value.
Value:
param.Number(default= 0.0, doc= "The initial accumulator value.")

amplitude

The size of the pulse to generate.
Value:
param.Number(default= 1.0, doc= "The size of the pulse to generate.")