Anchor

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.

Constructors

Link copied to clipboard
constructor(parentId: ActivityDirectiveId, offset: Duration, anchorPoint: DirectiveStart.Anchor.AnchorPoint, estimatedStart: Duration = Duration.ZERO)

Types

Link copied to clipboard

Which end of the parent to anchor to.

Properties

Link copied to clipboard

Which end of the parent to anchor to.

Link copied to clipboard
var estimatedStart: Duration

When the activity is estimated to start (approximate, and automatically set by EditablePlan implementations).

Link copied to clipboard
val offset: Duration

Duration to offset from the parent (negative durations mean before the parent).

Link copied to clipboard
val parentId: ActivityDirectiveId

Id of the parent it is anchored to.

Functions

Link copied to clipboard
open override fun atNewTime(time: Duration): DirectiveStart.Anchor

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