addResponseInterval

fun addResponseInterval(startTime: Double, duration: Double, theLabel: String): ResponseScheduleItem

Add an interval for collecting responses to the schedule. If the start time plus the duration reaches past the current schedule length, the schedule length is extended to include the interval.

Return

the ResponseScheduleItem

Parameters

startTime

must be greater than or equal to zero. Represents start time relative to start of schedule

theLabel

the label associated with the interval, must not be null

duration

duration of the interval, must be finite and strictly positive