Module: Wongi::Engine::NetworkParts::Debug

Defined in:
lib/wongi-engine/network/debug.rb

Instance Method Summary collapse

Instance Method Details

#full_wme_dumpObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/wongi-engine/network/debug.rb', line 7

def full_wme_dump
  @timeline.each_with_index do |slice, index|
    puts "time #{ index - @timeline.length }"
    slice.each do |key, alpha|
      puts "\t#{alpha.template} -> [#{alpha.wmes.map(&:to_s).join ", "}]"
    end
    puts ""
  end
  puts "time 0"
  alpha_hash.each do |key, alpha|
    puts "\t#{alpha.template} -> [#{alpha.wmes.map(&:to_s).join ", "}]"
  end
end