Class: Roby::Log::DataDecoder

Inherits:
Object
  • Object
show all
Defined in:
lib/roby/log/data_stream.rb

Direct Known Subclasses

Notifications

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DataDecoder

Returns a new instance of DataDecoder.



146
147
148
149
# File 'lib/roby/log/data_stream.rb', line 146

def initialize(name)
    @name = name
    @displays = [] 
end

Instance Attribute Details

#displaysObject (readonly)

The set of displays attached to this decoder



142
143
144
# File 'lib/roby/log/data_stream.rb', line 142

def displays
  @displays
end

#nameObject (readonly)

Returns the value of attribute name.



143
144
145
# File 'lib/roby/log/data_stream.rb', line 143

def name
  @name
end

#streamObject

Returns the value of attribute stream.



144
145
146
# File 'lib/roby/log/data_stream.rb', line 144

def stream
  @stream
end

Instance Method Details

#clearObject



151
152
153
# File 'lib/roby/log/data_stream.rb', line 151

def clear
    displays.each { |d| d.clear }
end

#clear_integratedObject



155
156
157
158
159
# File 'lib/roby/log/data_stream.rb', line 155

def clear_integrated
    displays.each do |display|
  display.clear_integrated if display.respond_to?(:clear_integrated)
    end
end

#displayObject

Update the display to the current state of the decoder



162
163
164
165
166
# File 'lib/roby/log/data_stream.rb', line 162

def display
    displays.each do |display| 
  display.update
    end
end