addIntervals

fun addIntervals(startTime: Double = 0.0, numIntervals: Int, duration: Double, label: String? = null)

Add non-overlapping, sequential intervals to the schedule, each having the provided duration

Parameters

startTime

must not be negative. Represents start time of first interval relative to the start time of the schedule

numIntervals

the number of intervals

duration

the duration of each interval

label

a base label for each interval, if null a label is created