Class: LibFST::Reader::Trace

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#handleInteger (readonly)

Returns:

  • (Integer)


23
24
25
# File 'lib/libfst/reader.rb', line 23

def handle
  @handle
end

#is_floatBoolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/libfst/reader.rb', line 25

def is_float
  @is_float
end

#variablesArray<Variable> (readonly)

Returns:



24
25
26
# File 'lib/libfst/reader.rb', line 24

def variables
  @variables
end

Instance Method Details

#nameString

Returns:

  • (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

#pathString

Returns:

  • (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_sString

Returns:

  • (String)


34
35
36
# File 'lib/libfst/reader.rb', line 34

def to_s
  "<#{self.class.name} #{@handle} #{name} [#{@variables.collect(&:path).join(', ')}]>"
end