Package-level declarations

Payload types (IntervalLike implementors) that can be contained in timelines.

Types

Link copied to clipboard
data class Connection<FROM : IntervalLike<FROM>, TO : IntervalLike<TO>>(val interval: Interval, val from: FROM?, val to: TO?) : IntervalLike<Connection<FROM, TO>>

Represents a pairing of two other IntervalLike objects.

Link copied to clipboard
data class ExternalEvent(val key: String, val type: String, val source: ExternalSource, val attributes: Map<String, SerializedValue>, val interval: Interval) : IntervalLike<ExternalEvent>

An external event instance.

Link copied to clipboard
data class ExternalSource(val key: String, val derivationGroup: String, val attributes: Map<String, SerializedValue>)

An external source instance. Used either to represent the source associated with a given event. Not used for querying. The included fields are the primary key used to identify External Sources, and the source's attributes.

Link copied to clipboard

An interface for objects that have a interval-like presence on a timeline.

Link copied to clipboard
data class LinearEquation(val initialTime: Duration, val initialValue: Double, val rate: Double)

A linear equation in point-slope form.

Link copied to clipboard
data class Segment<V>(val interval: Interval, val value: V) : IntervalLike<Segment<V>>

A generic container that associates a value with an interval on a timeline.

Functions

Link copied to clipboard
fun <V> Segment<V?>.transpose(): Segment<V & Any>?

Converts a non-null segment of a maybe-null value into a maybe-null segment of a non-null value.