DirectiveStart

sealed interface DirectiveStart

Start behavior for an activity directive.

Inheritors

Types

Link copied to clipboard
data class Absolute(val time: Duration) : DirectiveStart

For activities that start at a known, grounded time.

Link copied to clipboard
data class Anchor @JvmOverloads constructor(val parentId: ActivityDirectiveId, val offset: Duration, val anchorPoint: DirectiveStart.Anchor.AnchorPoint, var estimatedStart: Duration = Duration.ZERO) : DirectiveStart

For activities that are anchored to another activity.

Functions

Link copied to clipboard
abstract fun atNewTime(time: Duration): DirectiveStart

Shift the activity so that it starts at the new time (may be approximate for anchored activities).