class Roby::EventStructure::TemporalConstraintViolation
Exception
raised when an event gets emitted outside its specified temporal constraints
Attributes
allowed_intervals[R]
parent_generator[R]
Public Class Methods
new(event, parent_generator, allowed_intervals)
click to toggle source
Calls superclass method
Roby::LocalizedError::new
# File lib/roby/event_structure/temporal_constraints.rb, line 82 def initialize(event, parent_generator, allowed_intervals) super(event) @parent_generator = parent_generator @allowed_intervals = allowed_intervals.dup end
Public Instance Methods
pretty_print(pp)
click to toggle source
# File lib/roby/event_structure/temporal_constraints.rb, line 88 def pretty_print(pp) pp.text "Got " failed_event.pretty_print(pp) pp.text "It breaks the temporal constraint(s) #{allowed_intervals.map { |min, max| "[#{min}, #{max}]" }.join(" | ")} from" pp.nest(2) do pp.breakable parent_generator.pretty_print(pp) end end