set Capacities
open fun setCapacities(capacities: IntArray, duration: Double, initialStartTime: Double = 0.0, isScheduleRepeatable: Boolean = false, isAutoStartFlag: Boolean = true)(source)
A convenience function for setting the capacities based on an array of data. The current schedule will be cleared and the new schedule will be based on the supplied capacity values supplied from the array.
Parameters
capacities
the capacities for each duration. The array must not be empty. All capacity values must be greater than or equal to 0
duration
the common duration for each capacity value. Must be greater than 0.0