Class: RPiet::Logger::SimpleAsciiOutput

Inherits:
Object
  • Object
show all
Includes:
EventHandler
Defined in:
lib/rpiet/event_handler.rb

Direct Known Subclasses

ComplexAsciiOutput

Instance Method Summary collapse

Methods included from EventHandler

#dmesg

Instance Method Details

#execution_completed(runtime) ⇒ Object



50
51
52
# File 'lib/rpiet/event_handler.rb', line 50

def execution_completed(runtime)
  dmesg "Execution trapped, program terminates"
end

#initialized(runtime) ⇒ Object



34
35
36
# File 'lib/rpiet/event_handler.rb', line 34

def initialized(runtime)
  dmesg "codel_size: #{runtime.source.codel_size}"
end

#operation(runtime, operation) ⇒ Object



54
55
56
# File 'lib/rpiet/event_handler.rb', line 54

def operation(runtime, operation)
  dmesg "exec: #{operation} -- #{runtime.pvm}"
end

#seen_white(runtime) ⇒ Object



46
47
48
# File 'lib/rpiet/event_handler.rb', line 46

def seen_white(runtime)
  dmesg "Entering white; sliding thru"
end

#step_begin(runtime) ⇒ Object



38
39
40
# File 'lib/rpiet/event_handler.rb', line 38

def step_begin(runtime)
  dmesg "step \##{runtime.step} -- #{runtime.pvm}"
end

#trying_again(runtime, ex, ey) ⇒ Object



42
43
44
# File 'lib/rpiet/event_handler.rb', line 42

def trying_again(runtime, ex, ey)
  dmesg "Trying again at #{ex}, #{ey}. #{runtime.pvm}"
end