Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Project

Hierarchy

  • Project

Implements

Index

Constructors

constructor

Properties

Protected graph

graph: Graph

Methods

addConnector

  • addConnector(id: Guid, type: string, nodeId: Guid, properties?: Dictionary<any>): void
  • Adds a Connector to the Graph

    Parameters

    • id: Guid
    • type: string
    • nodeId: Guid
    • Default value properties: Dictionary<any> = {}

    Returns void

addEdge

  • addEdge(id: Guid, type: string, modelId: Guid, startConnectorId: Guid, endConnectorId: Guid, properties: Dictionary<any>): void
  • Adds an Edge to the Graph

    Parameters

    • id: Guid
    • type: string
    • modelId: Guid
    • startConnectorId: Guid
    • endConnectorId: Guid
    • properties: Dictionary<any>

    Returns void

addModel

  • addModel(id: Guid, type: string, properties?: Dictionary<any>, parentId?: Guid): void
  • Adds a Model to the Graph

    Parameters

    • id: Guid
    • type: string
    • Default value properties: Dictionary<any> = {}
    • Optional parentId: Guid

    Returns void

addNode

  • addNode(id: Guid, type: string, modelId: Guid, properties?: Dictionary<any>): void
  • Adds a Node to the Graph

    Parameters

    • id: Guid
    • type: string
    • modelId: Guid
    • Default value properties: Dictionary<any> = {}

    Returns void

deleteConnector

  • deleteConnector(id: Guid): void

deleteEdge

  • deleteEdge(id: Guid): void

deleteModel

  • deleteModel(id: Guid): void

deleteNode

  • deleteNode(id: Guid): void

deleteProperty

  • deleteProperty(id: Guid, key: string): void

deserialize

  • Creates a new GraphInterface from a JSON Graph

    For the expected format, please read the documentation The expected format is the same as the format returned by serialize()

    Parameters

    • jsonObject: Object

    Returns GraphInterface

hasConnector

  • hasConnector(id: Guid): boolean

hasEdge

  • hasEdge(id: Guid): boolean

hasElement

  • hasElement(id: Guid): boolean

hasModel

  • hasModel(id: Guid): boolean

hasNode

  • hasNode(id: Guid): boolean

serialize

  • serialize(): Object

setProperty

  • setProperty(id: Guid, name: string, value: any): void

Generated using TypeDoc