Class: LibFST::Reader::Trace
- Inherits:
-
Object
- Object
- LibFST::Reader::Trace
- Defined in:
- lib/libfst/reader.rb,
ext/libfst_rb.c
Overview
A Trace keeps track of the value changes of a physical signal.
Instance Attribute Summary collapse
- #handle ⇒ Integer readonly
- #is_float ⇒ Boolean
- #variables ⇒ Array<Variable> readonly
Instance Method Summary collapse
Instance Attribute Details
#handle ⇒ Integer (readonly)
23 24 25 |
# File 'lib/libfst/reader.rb', line 23 def handle @handle end |
#is_float ⇒ Boolean
25 26 27 |
# File 'lib/libfst/reader.rb', line 25 def is_float @is_float end |
#variables ⇒ Array<Variable> (readonly)
24 25 26 |
# File 'lib/libfst/reader.rb', line 24 def variables @variables end |
Instance Method Details
#name ⇒ String
39 40 41 42 43 |
# File 'lib/libfst/reader.rb', line 39 def name return @name if @name update_name_and_path! @name end |
#path ⇒ String
46 47 48 49 50 |
# File 'lib/libfst/reader.rb', line 46 def path return @path if @path update_name_and_path! @path end |
#to_s ⇒ String
34 35 36 |
# File 'lib/libfst/reader.rb', line 34 def to_s "<#{self.class.name} #{@handle} #{name} [#{@variables.collect(&:path).join(', ')}]>" end |