Class: Roby::Log::DataDecoder
Direct Known Subclasses
Instance Attribute Summary collapse
-
#displays ⇒ Object
readonly
The set of displays attached to this decoder.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#stream ⇒ Object
Returns the value of attribute stream.
Instance Method Summary collapse
- #clear ⇒ Object
- #clear_integrated ⇒ Object
-
#display ⇒ Object
Update the display to the current state of the decoder.
-
#initialize(name) ⇒ DataDecoder
constructor
A new instance of DataDecoder.
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
#displays ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
143 144 145 |
# File 'lib/roby/log/data_stream.rb', line 143 def name @name end |
#stream ⇒ Object
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
#clear ⇒ Object
151 152 153 |
# File 'lib/roby/log/data_stream.rb', line 151 def clear displays.each { |d| d.clear } end |
#clear_integrated ⇒ Object
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 |
#display ⇒ Object
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 |