Module: Roby::EventStructure::SchedulingConstraints::Extension

Defined in:
lib/roby/event_structure/temporal_constraints.rb

Instance Method Summary collapse

Instance Method Details

#has_scheduling_constraints?Boolean

True if this event is constrained by the TemporalConstraints relation in any way

Returns:

  • (Boolean)


354
355
356
357
358
359
360
361
# File 'lib/roby/event_structure/temporal_constraints.rb', line 354

def has_scheduling_constraints?
    return true if has_temporal_constraints?

    each_backward_scheduling_constraint do |parent| # rubocop:disable Lint/UnreachableLoop
        return true
    end
    false
end

#schedule_as(event) ⇒ Object



348
349
350
# File 'lib/roby/event_structure/temporal_constraints.rb', line 348

def schedule_as(event)
    event.add_forward_scheduling_constraint(self)
end