Implements

Constructors

Properties

_version: number = 0

Version of plan update (non trivial changes that affect pacing)

course: Types.Course
pacing: Types.Pacing = ...
points: Types.PlanPoint[]
splits: PlanSplits = ...

splits

Accessors

  • get cutoffs(): PlanCutoff[]
  • cutoffs array is calculated on get as a combination of the course cutoffs and the plan points gets re-calculated if the course or plan version changes

    Returns PlanCutoff[]

  • get delays(): PlanDelay[]
  • delays array is calculated on get as a combination of the specified delays and default delays based on waypoint types gets re-calculated if the course or plan version changes

    Returns PlanDelay[]

  • get heatModel(): | undefined
    | { baseline: number; max: number; start: number; stop: number }
  • Returns undefined | { baseline: number; max: number; start: number; stop: number }

  • get id(): undefined | null | string | number | symbol
  • Unique identifier for the plan

    Returns undefined | null | string | number | symbol

  • get name(): undefined | string
  • Display name for the plan

    Returns undefined | string

  • get typicalDelay(): number
  • Typical delay for the plan; amount of dwell time at waypoints where 'hasDelay' is true

    Returns number

  • get version(): number
  • Version of course & plan update (non trivial changes that affect pacing)

    Returns number

Methods

  • Finds and optionally inserts a point at an input location.

    Parameters

    • loc: number

      The location (in km) to determine value.

    • insert: boolean = false

      Whether to also insert a created point into the points array. Defaults to false.

    Returns Types.PlanPoint

    The PlanPoint at input location.