class Roby::EventStructure::TemporalConstraintSet
Attributes
occurence_constraints[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
Roby::EventStructure::DisjointIntervalSet::new
# File lib/roby/event_structure/temporal_constraints.rb, line 216 def initialize super @occurence_constraints = { true => [0, Infinity], false => [0, Infinity] } end
Public Instance Methods
add_occurence_constraint(min, max, recurrent)
click to toggle source
# File lib/roby/event_structure/temporal_constraints.rb, line 224 def add_occurence_constraint(min, max, recurrent) existing = occurence_constraints[!!recurrent] if existing[0] < min existing[0] = min end if existing[1] > max existing[1] = max end end