Package topo :: Package sheet :: Module basic :: Class SequenceGeneratorSheet
[hide private]
[frames] | no frames]

Class SequenceGeneratorSheet

source code


Sheet that generates a timed sequence of patterns.

This sheet will repeatedly generate the input_sequence, with the given onsets. The sequence is repeated every self.period time units. If the total length of the sequence is longer than self.period, a warning is issued and the sequence repeats immediately after completion.

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
 
start(self)
Called by the simulation when the EventProcessor is added to the simulation.
source code

Inherited from misc.generatorsheet.GeneratorSheet: generate, input_event, pop_input_generator, push_input_generator, set_input_generator

Inherited from base.sheet.Sheet: activate, activity_len, n_bytes, override_plasticity_state, release_sheet_view, restore_plasticity_state, row_col_sheetcoords, sheet_cols, sheet_rows, sheetcoords_of_idx_grid, state_pop, state_push

Inherited from base.sheet.Sheet (private): _get_density

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

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, verbose, warning

Inherited from base.sheetcoords.SheetCoordinateSystem: closest_cell_center, matrix2sheet, matrixidx2sheet, sheet2matrix, sheet2matrixidx, sheetcoordinates_of_matrixidx

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]
  input_sequence = param.List(default= [], doc= """The sequence ...
The sequence of patterns to generate.
  name = <param.parameterized.String object at 0xa9f6c2c>
String identifier for this object.

Inherited from misc.generatorsheet.GeneratorSheet: input_generator, period, phase, src_ports

Inherited from base.sheet.Sheet: apply_output_fns, layout_location, nominal_bounds, nominal_density, output_fns, plastic, precedence, row_precedence

Inherited from base.simulation.EventProcessor: dest_ports

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from base.sheet.Sheet: density

Inherited from base.sheetcoords.SheetCoordinateSystem: shape, xdensity, ydensity

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)

start(self)

source code 

Called by the simulation when the EventProcessor is added to the simulation.

If an EventProcessor needs to have any code run when it is added to the simulation, the code can be put into this method in the subclass.

Overrides: base.simulation.EventProcessor.start
(inherited documentation)

Class Variable Details [hide private]

input_sequence

The sequence of patterns to generate. Must be a list of (onset,generator) tuples. An empty list defaults to the single tuple: (0,self.input_generator), resulting in identical behavior to an ordinary GeneratorSheet.
Value:
param.List(default= [], doc= """The sequence of patterns to generate.  Must be a l\
ist of
          (onset,generator) tuples. An empty list defaults to the
          single tuple: (0,self.input_generator), resulting in
          identical behavior to an ordinary GeneratorSheet.""")