ELASTICPATHING/SOURCECODE/UbiComp2014/Elastic_Pathing_Code/elastic_pathing.rb
def expectedTransition(time)
  @change_intervals.select {|interval|
    interval.start <= time and interval.stop >= time
  }.first
end
#Return nil if no speed transition is expected, otherwise return a
#SpeedInterval with the time interval and the expected speed to turn into
Return nil if no speed transition is expected, otherwise return a
SpeedInterval with the time interval and the expected speed to turn into
Return nil if no speed transition is expected otherwise return a SpeedInterval with the time interval and the expected speed to turn into
def expectedTransition(time)
  @change_intervals.select {|interval|
    interval.start <= time and interval.stop >= time
  }.first
end
def expectedTransition ( time ) @change_intervals . select { | interval | interval . start <= time and interval . stop >= time } . first end
Return nil if no speed transition is expected, otherwise return a
SpeedInterval with the time interval and the expected speed to turn into
Return nil if no speed transition is expected otherwise return a SpeedInterval with the time interval and the expected speed to turn into
time