Options
All
  • Public
  • Public/Protected
  • All
Menu

The base implementation of a chart activity, which defines an additional chart value attribute that can be utilized by the ChartLayout to create charts based on activities, e.g. for capacity usage / resource usage profiles.

since

1.2

Type parameters

  • T

    the type of an optional user object

Hierarchy

Implements

Index

Constructors

constructor

  • new ChartActivityBase(value: number, startTime?: number, endTime?: number): ChartActivityBase
  • Parameters

    • value: number
    • Default value startTime: number = undefined
    • Default value endTime: number = undefined

    Returns ChartActivityBase

Properties

Static DEFAULT_DURATION

DEFAULT_DURATION: number = TimeUtil.ofDays(5)

Methods

getChartValue

  • getChartValue(): number

getEndTime

  • getEndTime(): number

getId

  • getId(): string
  • The unique id of the activity.

    since

    1.0

    Returns string

    the unique activity ID

getName

  • getName(): string
  • The name of the activity, for example "Flight 3441".

    since

    1.0

    Returns string

    the name of the activity

getStartTime

  • getStartTime(): number

getUserObject

  • getUserObject(): T
  • Returns the user object associated to the activity.

    since

    1.0

    Returns T

    the user object associated to the activity

setUserObject

  • setUserObject(obj: T): void
  • Set the user object associated to the activity.

    since

    1.0

    Parameters

    • obj: T

      the user object to associate to the activity

    Returns void

toString

  • toString(): string
  • Returns string