ScheduleItem

open inner class ScheduleItem<T>(val startTime: Double, val duration: Double, val priority: Int, val message: T? = null) : Comparable<Schedule.ScheduleItem<*>>

A ScheduleItem represents an item on a Schedule. It has a start time, relative to the start of the Schedule and a duration. If more than one schedule item needs to start at the same time, then a priority can be provided to determine the ordering (i.e. the smallest priority goes first).

Parameters

a general message or other object that can be associated with the ScheduleItem

Constructors

Link copied to clipboard
constructor(startTime: Double, duration: Double, priority: Int, message: T? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Long
Link copied to clipboard
val message: T? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun compareTo(other: Schedule.ScheduleItem<*>): Int

Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.

Link copied to clipboard
open override fun toString(): String