Class: OrigenTesters::SmartestBasedTester::V93K::Builder::PatternMaster

Inherits:
Object
  • Object
show all
Defined in:
lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb

Overview

Responsible for modelling/building the contents of a V93K pattern master file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file = nil) ⇒ PatternMaster

Returns a new instance of PatternMaster.



9
10
11
12
13
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb', line 9

def initialize(file = nil)
  @file = file
  @paths = {}
  parse_file if file
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



7
8
9
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb', line 7

def file
  @file
end

#pathsObject (readonly)

Returns the value of attribute paths.



7
8
9
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb', line 7

def paths
  @paths
end

Instance Method Details

#add_sub_file(pm) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb', line 15

def add_sub_file(pm)
  pm.paths.each do |path, files|
    if paths[path]
      paths[path] += files
      paths[path].uniq!
    else
      paths[path] = files
    end
  end
end