class Orocos::Log::Annotations
class which is storing stream annotions
Attributes
current_state[R]
file_name[R]
samples[R]
stream[R]
Public Class Methods
new(path,stream)
click to toggle source
# File lib/orocos/log/replay.rb, line 16 def initialize(path,stream) @samples = Array.new @file_name = path @stream = stream @current_state = Hash.new stream.samples.each do |rt,lg,sample| @samples << sample end @samples.sort! do |a,b| a.time <=> b.time end end
Public Instance Methods
pretty_print(pp)
click to toggle source
# File lib/orocos/log/replay.rb, line 37 def pretty_print(pp) pp.text "Stream name #{@file_name}, number of annotations #{@annotations.size}" end
update(info)
click to toggle source
# File lib/orocos/log/replay.rb, line 31 def update(info) stream, position = *info sample = stream.read_one_raw_data_sample(position) current_state[sample.key] = sample.value end