class Orocos::Log::Annotations

class which is storing stream annotions

Attributes

file_name[R]
samples[R]
stream[R]

Public Class Methods

new(path,stream) click to toggle source
# File lib/orocos/log/replay.rb, line 15
def initialize(path,stream)
    @samples = Array.new
    @file_name = path
    @stream = stream

    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 29
def pretty_print(pp)
    pp.text "Stream name #{@file_name}, number of annotations #{@annotations.size}"
end