Module: Wongi::Engine::NetworkParts::Debug
- Defined in:
- lib/wongi-engine/network/debug.rb
Instance Method Summary collapse
Instance Method Details
#full_dump(io = $stdout) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/wongi-engine/network/debug.rb', line 21 def full_dump io = $stdout alpha_hash.each_value do |alpha| io.puts "ALPHA #{alpha.template}" alpha.wmes.each do |wme| dump_wme wme, io end end dump_beta beta_top, io end |
#full_wme_dump ⇒ Object
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 |