Instance

data class Instance<A : Any>(val inner: A, val type: String, val id: ActivityInstanceId, val directiveId: ActivityDirectiveId?, val parentId: ActivityInstanceId?, val interval: Interval) : Activity<Instance<A>>

A wrapper of any type of activity instance containing common data.

Constructors

Link copied to clipboard
constructor(inner: A, type: String, id: ActivityInstanceId, directiveId: ActivityDirectiveId?, parentId: ActivityInstanceId?, interval: Interval)

Properties

Link copied to clipboard
val directiveId: ActivityDirectiveId?

The maybe-null id of the directive associated with this instance.

Link copied to clipboard
val id: ActivityInstanceId

The instance id.

Link copied to clipboard

The inner payload, typically either AnyInstance or a mission model activity type.

Link copied to clipboard
open override val interval: Interval

The interval this occupies on the timeline.

Link copied to clipboard
val parentId: ActivityInstanceId?

The maybe-null instance id of the instance that spawned this instance.

Link copied to clipboard
open override val startTime: Duration

Time that the activity starts.

Link copied to clipboard
open override val type: String

String type name of the activity.

Functions

Link copied to clipboard
open override fun withNewInterval(i: Interval): Instance<A>

Creates a new object that is identical except that it exists on a different interval.