Options
All
  • Public
  • Public/Protected
  • All
Menu

Schedule of the event. It may or may be not used as a final position of the event itself, depending on scheduling direction and other data.

Accumulates the constraints for start/end dates.

Hierarchy

Index

Properties

$project

The project instance, this entity belongs to.

endDate

endDate: Date

The end date of the event in this particular schedule.

endDateConstraintIntervals

endDateConstraintIntervals: DateInterval[]

An array of intervals, constraining the end date (as point in time) of this event

event

event: HasSubEventsMixin = undefined

The event, to which this schedule belongs. This property is immutable - it is assigned on creation and can not be modified after.

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.

startDate

startDate: Date

The start date of the event in this particular schedule.

startDateConstraintIntervals

startDateConstraintIntervals: DateInterval[]

An array of intervals, constraining the start date (as point in time) of this event

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

calculateEndDateConstraintIntervals

  • calculateEndDateConstraintIntervals(): CalculationIterator<this["endDateConstraintIntervals"]>

calculateStartDateConstraintIntervals

  • calculateStartDateConstraintIntervals(): CalculationIterator<this["startDateConstraintIntervals"]>

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"]

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"]

shouldRollupChildEndDate

shouldRollupChildStartDate

userProvidedValue

Generated using TypeDoc