Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractElement

Hierarchy

Index

Constructors

constructor

  • new AbstractElement(id: Guid, properties: Dictionary<any>): AbstractElement

Properties

Protected childConnectorNeighbours

childConnectorNeighbours: Dictionary<Guid>

Protected childEdgeNeighbours

childEdgeNeighbours: Dictionary<Guid>

Protected childModelNeighbours

childModelNeighbours: Dictionary<Guid>

Protected childNodeNeighbours

childNodeNeighbours: Dictionary<Guid>

Protected id

id: Guid

Protected parentConnectorNeighbours

parentConnectorNeighbours: Dictionary<Guid>

Protected parentEdgeNeighbours

parentEdgeNeighbours: Dictionary<Guid>

Protected parentModelNeighbours

parentModelNeighbours: Dictionary<Guid>

Protected parentNodeNeighbours

parentNodeNeighbours: Dictionary<Guid>

Protected properties

properties: Dictionary<any>

Protected type

Accessors

Id

  • get Id(): Guid

Methods

addChildConnectorNeighbour

  • addChildConnectorNeighbour(id: Guid): void
  • Adds a neighbour of type Connector as child to this Element

    Parameters

    • id: Guid

      Guid of the element that should be added

    Returns void

addChildEdgeNeighbour

  • addChildEdgeNeighbour(id: Guid): void
  • Adds a Neighbour of type Edge as child to this Element

    Parameters

    • id: Guid

      Guid of the element that should be added

    Returns void

addChildModelNeighbour

  • addChildModelNeighbour(id: Guid): void
  • Adds a neighbour of type Model as child to this Element

    Parameters

    • id: Guid

      Guid of the element that should be added

    Returns void

addChildNodeNeighbour

  • addChildNodeNeighbour(id: Guid): void
  • Adds a neighbour of type Node as child to this Element

    Parameters

    • id: Guid

      Guid of the element that should be added

    Returns void

addParentConnectorNeighbour

  • addParentConnectorNeighbour(id: Guid): void
  • Adds a neighbour of type Connector as parent to this Element

    Parameters

    • id: Guid

      Guid of the element that should be added

    Returns void

addParentEdgeNeighbour

  • addParentEdgeNeighbour(id: Guid): void
  • Adds a Neighbour of type Edge as parent to this Element

    Parameters

    • id: Guid

      Guid of the element that should be added

    Returns void

addParentModelNeighbour

  • addParentModelNeighbour(id: Guid): void
  • Adds a neighbour of type Model as parent to this Element

    Parameters

    • id: Guid

      Guid of the element that should be added

    Returns void

addParentNodeNeighbour

  • addParentNodeNeighbour(id: Guid): void
  • Adds a neighbour of type Node as parent to this Element

    Parameters

    • id: Guid

      Guid of the element that should be added

    Returns void

delete

  • delete(graph: Graph): void

deleteProperty

  • deleteProperty(name: string): void
  • Delete a property on this Element

    Parameters

    • name: string

      of the property

    Returns void

getChildConnectorNeighbours

  • getChildConnectorNeighbours(): Guid[]

getChildEdgeNeighbours

  • getChildEdgeNeighbours(): Guid[]

getChildModelNeighbours

  • getChildModelNeighbours(): Guid[]

getChildNodeNeighbours

  • getChildNodeNeighbours(): Guid[]

getParentConnectorNeighbours

  • getParentConnectorNeighbours(): Guid[]

getParentEdgeNeighbours

  • getParentEdgeNeighbours(): Guid[]

getParentModelNeighbours

  • getParentModelNeighbours(): Guid[]

getParentNodeNeighbours

  • getParentNodeNeighbours(): Guid[]

getProperties

  • getProperties(): Dictionary<any>

getType

Protected remove

  • remove(graph: Graph): void
  • Internal function that removes THIS element ONLY. WARNING: This function does not perform a cascading delete (i.e remove orphan edges) Use delete() instead

    Parameters

    • graph: Graph

      Graph containing this element

    Returns void

setProperty

  • setProperty(name: string, value: any): void
  • Sets a property on this Element

    Parameters

    • name: string

      Name of the property to set

    • value: any

      desired value

    Returns void

Private toArray

  • toArray(dictionary: Dictionary<Guid>): Guid[]
  • Converts a Dictionary to an Array

    Parameters

    • dictionary: Dictionary<Guid>

      The dictionary to convert

    Returns Guid[]

unlinkChildConnectorNeighbour

  • unlinkChildConnectorNeighbour(id: Guid): void
  • Unlink a link to a neighbouring Child Connector

    Parameters

    • id: Guid

      Identifier of the Connector that should be unlinked

    Returns void

unlinkChildEdgeNeighbour

  • unlinkChildEdgeNeighbour(id: Guid): void
  • Unlink a link to a neighbouring Child Edge

    Parameters

    • id: Guid

      Identifier of the Child Edge that should be unlinked

    Returns void

unlinkChildModelNeighbour

  • unlinkChildModelNeighbour(id: Guid): void
  • Unlink a link to a neighbouring child Model

    Parameters

    • id: Guid

      Identifier of the child Model that should be unlinked

    Returns void

unlinkChildNodeNeighbour

  • unlinkChildNodeNeighbour(id: Guid): void
  • Unlink a link to a neighbouring child Node

    Parameters

    • id: Guid

      Identifier of the child Node that should be unlinked

    Returns void

Generated using TypeDoc