本文へ移動

@eightkk/vue-weave / core / PlanScenario

Interface: PlanScenario ​

Defined in: src/core/planComparison.ts:33

One side of comparePlans.

Properties ​

baseRevision? ​

optional baseRevision?: string

Defined in: src/core/planComparison.ts:49

For a candidate: the revision of the current plan it was derived from.


input ​

input: PlanComparisonInput

Defined in: src/core/planComparison.ts:34


load? ​

optional load?: readonly ResourceLoadSegment[]

Defined in: src/core/planComparison.ts:45

The resource load of result, for example from calculateResourceLoad. When omitted and input.resources is given, comparePlans calculates it from the result. Segments of one resource must not overlap.


partial? ​

optional partial?: boolean

Defined in: src/core/planComparison.ts:51

Set when the plan's data is not completely loaded. The comparison is then reported as incomplete.


result? ​

optional result?: { code: "cycle"; cycles: readonly ScheduleCycle[]; ok: false; } | { code: "infeasible"; constraints: readonly ScheduleConstraintName[]; dependencyIds: readonly string[]; ok: false; taskId: string; } | ScheduleSuccess | LevelResourcesSuccess

Defined in: src/core/planComparison.ts:40

The result of scheduleTasks or levelResources for input, for example a leveled plan. When omitted, comparePlans calculates scheduleTasks(input, { explain: true }). A successful result must cover the task set of input exactly (see comparePlans); recalculate it whenever input changes.

Union Members ​

Type Literal ​

{ code: "cycle"; cycles: readonly ScheduleCycle[]; ok: false; }


Type Literal ​

{ code: "infeasible"; constraints: readonly ScheduleConstraintName[]; dependencyIds: readonly string[]; ok: false; taskId: string; }

code ​

code: "infeasible"

constraints ​

constraints: readonly ScheduleConstraintName[]

Binding bounds of the task that conflict, in a fixed order.

dependencyIds ​

dependencyIds: readonly string[]

Binding dependencies of the task that conflict, in input order.

ok ​

ok: false

taskId ​

taskId: string


ScheduleSuccess


LevelResourcesSuccess


revision? ​

optional revision?: string

Defined in: src/core/planComparison.ts:47

An application revision of this plan, for example the accepted version of the current plan.

MIT ライセンスで公開しています。