class Roby::Plan::UsefulFreeEventVisitor
Attributes
stack[R]
task_events[R]
useful_free_events[R]
Public Class Methods
new(graph, task_events, permanent_events)
click to toggle source
Calls superclass method
# File lib/roby/plan.rb, line 1139 def initialize(graph, task_events, permanent_events) super(graph) @task_events = task_events @useful_free_events = permanent_events.dup @useful = false end
Public Instance Methods
follow_edge?(u, v)
click to toggle source
# File lib/roby/plan.rb, line 1157 def follow_edge?(u, v) !task_events.include?(v) end
handle_examine_edge(u, v)
click to toggle source
# File lib/roby/plan.rb, line 1150 def handle_examine_edge(u, v) if task_events.include?(v) || useful_free_events.include?(v) color_map[v] = :BLACK @useful = true end end
useful?()
click to toggle source
# File lib/roby/plan.rb, line 1146 def useful? @useful end