Package topo :: Package misc :: Module trace :: Class InMemoryRecorder
[hide private]
[frames] | no frames]

Class InMemoryRecorder

source code


A data recorder that stores all recorded data in memory.
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
 
add_variable(self, name)
Create a new time-series variable with the given name.
source code
 
record_data(self, varname, time, data)
Record the given data item with the given timestamp in the named timeseries.
source code
 
get_datum(self, name, time) source code
 
get_data(self, name, times=(None, None), fill_range=False)
Get the named timeseries between the given times (inclusive).
source code
 
get_times(self, varname)
Get all the timestamps for a given variable.
source code

Inherited from DataRecorder: get_time_indices, input_event

Inherited from DataRecorder (private): _dest_connect, _src_connect

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

Inherited from base.simulation.EventProcessor (private): _port_match

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]
  name = <param.parameterized.String object at 0xc0dff2c>
String identifier for this object.

Inherited from base.simulation.EventProcessor: dest_ports, 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)

add_variable(self, name)

source code 
Create a new time-series variable with the given name.
Overrides: DataRecorder.add_variable
(inherited documentation)

record_data(self, varname, time, data)

source code 
Record the given data item with the given timestamp in the named timeseries.
Overrides: DataRecorder.record_data
(inherited documentation)

get_data(self, name, times=(None, None), fill_range=False)

source code 

Get the named timeseries between the given times (inclusive). If fill_range is true, the returned data will have timepoints exactly at the start and end of the given timerange. The data values at these timepoints will be those of the next-earlier datapoint in the series.

(NOTE: fill_range can fail to create a beginning timepoint if the start of the time range is earlier than the first recorded datapoint.]

Overrides: DataRecorder.get_data
(inherited documentation)

get_times(self, varname)

source code 
Get all the timestamps for a given variable.
Overrides: DataRecorder.get_times
(inherited documentation)