Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EdgeAddedEvent

An event that is raised when a edge is added.

Hierarchy

Index

Constructors

constructor

  • new EdgeAddedEvent(sourceId: Guid, version: number, timestamp: number, elementId: Guid, elementType: string, elementProperties: Dictionary<any>, modelId: Guid, startConnectorId: Guid, endConnectorId: Guid): EdgeAddedEvent
  • Parameters

    • sourceId: Guid

      The RFC4122 v4 compliant ID of the command that caused this event.

    • version: number

      The new current version number.

    • timestamp: number

      The timestamp for the moment this event was created in milliseconds elapsed since 1 January 1970 00:00:00 UTC.

    • elementId: Guid

      The RFC4122 v4 compliant ID of the new element.

    • elementType: string

      The type of the new element.

    • elementProperties: Dictionary<any>

      The properties of the new element.

    • modelId: Guid

      The RFC4122 v4 compliant ID of the model to which the new edge belongs.

    • startConnectorId: Guid

      The RFC4122 v4 compliant ID of the connector where the new edge starts.

    • endConnectorId: Guid

      The RFC4122 v4 compliant ID of the connector where the new edge ends.

    Returns EdgeAddedEvent

Properties

elementId

elementId: Guid

The RFC4122 v4 compliant ID of the new element.

elementProperties

elementProperties: Dictionary<any>

elementType

elementType: string

The type of the new element.

endConnectorId

endConnectorId: Guid

The RFC4122 v4 compliant ID of the connector where the new edge ends.

modelId

modelId: Guid

The RFC4122 v4 compliant ID of the model to which the new edge belongs.

sourceId

sourceId: Guid

The RFC4122 v4 compliant ID of the command that caused this event.

startConnectorId

startConnectorId: Guid

The RFC4122 v4 compliant ID of the connector where the new edge starts.

timestamp

timestamp: number

The timestamp for the moment this event was created in milliseconds elapsed since 1 January 1970 00:00:00 UTC.

type

type: EventType

The type of this event.

version

version: number

The new version number after applying this event.

Methods

toJson

  • toJson(): string

Generated using TypeDoc