Options
All
  • Public
  • Public/Protected
  • All
Menu

A mixin for the assignment entity at the Scheduler Pro level.

Hierarchy

Index

Properties

$project

The project instance, this entity belongs to.

cost

cost: number

The total projected cost for the assignment.

event

An event being assigned

getRateTable

getRateTable: () => Number

Generated getter for the rateTable field

Type declaration

    • (): Number
    • Returns Number

getUnits

getUnits: () => Number

Generated getter for the units field

Type declaration

    • (): Number
    • Returns Number

graph

graph: Replica

A reference to the graph, this entity belongs to. Initially empty, and is populated when the entity instance is added to the replica (Replica.addEntity)

project

The project instance, this entity belongs to.

quantity

quantity: number

Amount of the material resource assigned. The field is used for material resource assignments only.

field

{Number} quantity

rateTable

rateTable: SchedulerProResourceRateTable | string | number

Specifies which rate table the assigned resource to use for cost charging

resource

A resource being assigned

setRateTable

setRateTable: (rateTable: SchedulerProResourceRateTable | string | number) => Promise<CommitResult>

Generated setter for the rateTable field

Type declaration

setUnits

setUnits: (units: number) => Promise<CommitResult>

Generated setter for the units field

Type declaration

units

units: number

A numeric, percent-like value, indicating the "contribution level" of the resource availability on the event. Number 100 means that the assigned resource spends 100% of its working time on the event. And number 50 means that the resource spends only half of its available time on the event.

field

{Number} units

Accessors

$

  • get $(): {}
  • An object, which properties corresponds to the ChronoGraph Identifiers, created for every field.

    For example:

    class Author extends Entity.mix(Base) {
        @field()
        firstName       : string
        @field()
        lastName        : string
    }
    
    const author = Author.new()
    
    // identifier for the field `firstName`
    author.$.firstName
    
    const firstName = replica.read(author.$.firstName)

    Returns {}

$$

  • A graph identifier, that represents the whole entity.

    Returns EntityIdentifier

$entity

  • An EntityMeta instance, representing the "meta" information about the entity class. It is shared among all instances of the class.

    Returns EntityMeta

Static $entity

  • An EntityMeta instance, representing the "meta" information about the entity class. It is shared among all instances of the class.

    Returns EntityMeta

Methods

commit

  • This is a convenience method, that just delegates to the ChronoGraph.commit method of this entity's graph.

    If there's no graph (entity has not been added to any replica) a CommitZero constant will be returned.

    Parameters

    Returns CommitResult

commitAsync

  • This is a convenience method, that just delegates to the ChronoGraph.commitAsync method of this entity's graph.

    If there's no graph (entity has not been added to any replica) a resolved promise with CommitZero constant will be returned.

    Parameters

    Returns Promise<CommitResult>

enterGraph

  • enterGraph(replica: Replica): void
  • This method is called when entity is added to some replica.

    Parameters

    Returns void

getAssignmentById

  • getAssignmentById(id: ModelId): this["project"]["assignmentStore"]["modelInstanceT"]

getAssignmentStore

  • getAssignmentStore(): this["project"]["assignmentStore"]

getCalendarById

  • getCalendarById(id: ModelId): this["project"]["calendarManagerStore"]["modelInstanceT"]

getCalendarManagerStore

  • getCalendarManagerStore(): this["project"]["calendarManagerStore"]

getDependencyById

  • getDependencyById(id: ModelId): this["project"]["dependencyStore"]["modelInstanceT"]

getDependencyStore

  • getDependencyStore(): this["project"]["dependencyStore"]

getEventById

  • getEventById(id: ModelId): this["project"]["eventStore"]["modelInstanceT"]

getEventStore

  • getEventStore(): this["project"]["eventStore"]

getGraph

getProject

  • getProject(): this["project"]

getRate

getResourceById

  • getResourceById(id: ModelId): this["project"]["resourceStore"]["modelInstanceT"]

getResourceStore

  • getResourceStore(): this["project"]["resourceStore"]

joinProject

  • joinProject(): void

leaveGraph

  • This method is called when entity is removed from the replica it's been added to.

    Parameters

    Returns void

leaveProject

  • leaveProject(isReplacing?: boolean): void

setProject

  • setProject(project: this["project"]): this["project"]

userProvidedValue

Generated using TypeDoc