Package topo :: Package sheet :: Module composer :: Class Composer
[hide private]
[frames] | no frames]

Class Composer

source code

                        object --+            
                                 |            
 param.parameterized.Parameterized --+        
                                     |        
        base.simulation.EventProcessor --+    
                                         |    
                            object --+   |    
                                     |   |    
base.sheetcoords.SheetCoordinateSystem --+    
                                         |    
                          base.sheet.Sheet --+
                                             |
                                            Composer

A Sheet that combines the activity of 2 or more other sheets into a single activity matrix. When connecting a sheet to a composer, you can specify the location at which that sheet's input will be mapped into the composer by adding the 'origin' argument to the connect() call e.g.:

sim.connect(input_sheet.name,composer.name,delay=1, origin=(0.25,0.25))

will cause (0,0) on input sheet's activity to map to (0.25,0.25) on composer's activity.

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
 
port_configure(self, port, **config)
Configure a specific input port.
source code
 
_dest_connect(self, proj, origin=(0, 0))
Add the specified connection to the list of incoming connections.
source code
 
process_current_time(self)
Called by the simulation before advancing the simulation time.
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.sheet.Sheet: activity_len, override_plasticity_state, release_sheet_view, restore_plasticity_state, row_col_sheetcoords, sheet_cols, sheet_offset, sheet_rows, state_pop, state_push

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

Inherited from base.simulation.EventProcessor: 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_dynamic_time_fn, verbose, warning

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

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

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

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

Inherited from base.simulation.EventProcessor: src_ports

Inherited from param.parameterized.Parameterized: name, 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)

port_configure(self, port, **config)

source code 

Configure a specific input port.

origin = (default (0,0)) The offset in the output matrix where this port's input should be placed.

_dest_connect(self, proj, origin=(0, 0))

source code 
Add the specified connection to the list of incoming connections. Should only be called from Simulation.connect().
Overrides: base.simulation.EventProcessor._dest_connect
(inherited documentation)

process_current_time(self)

source code 
Called by the simulation before advancing the simulation time. Allows the event processor to do any computation that requires that all events for this time have been delivered. Computations performed in this method should not generate any events with a zero time delay, or else causality could be violated. (By default, does nothing.)
Overrides: base.simulation.EventProcessor.process_current_time
(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)