Class: OrigenTesters::ATP::Processors::AdjacentIfCombiner::SetRunFlagFinder

Inherits:
OrigenTesters::ATP::Processor show all
Defined in:
lib/origen_testers/atp/processors/adjacent_if_combiner.rb

Instance Method Summary collapse

Methods inherited from OrigenTesters::ATP::Processor

#add_global_flag, #clean_flag, #extract_globals, #extract_volatiles, #global_flag?, #global_flags, #handler_missing, #process, #process_all, #run, #volatile?, #volatile_flags

Instance Method Details

#contains?(node, flag_name) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
30
31
32
# File 'lib/origen_testers/atp/processors/adjacent_if_combiner.rb', line 27

def contains?(node, flag_name)
  @result = false
  @flag_name = flag_name
  process_all(node)
  @result
end

#on_set_flag(node) ⇒ Object Also known as: on_enable, on_disable



34
35
36
37
38
# File 'lib/origen_testers/atp/processors/adjacent_if_combiner.rb', line 34

def on_set_flag(node)
  if node.to_a[0] == @flag_name
    @result = true
  end
end