class Roby::Coordination::Models::FaultHandler::ResponseLocationVisitor
Attributes
predicate[R]
selected[R]
Public Class Methods
new(graph, predicate)
click to toggle source
Calls superclass method
# File lib/roby/coordination/models/fault_handler.rb, line 135 def initialize(graph, predicate) super(graph) @predicate = predicate @selected = Set.new end
Public Instance Methods
follow_edge?(u, v)
click to toggle source
Calls superclass method
# File lib/roby/coordination/models/fault_handler.rb, line 147 def follow_edge?(u, v) if selected.include?(u) false else super end end
handle_examine_vertex(u)
click to toggle source
# File lib/roby/coordination/models/fault_handler.rb, line 141 def handle_examine_vertex(u) if predicate.call(u) selected << u end end