Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EdgeElement

Hierarchy

Index

Constructors

constructor

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

Properties

Protected childConnectorNeighbours

childConnectorNeighbours: Dictionary<Guid>

Protected childEdgeNeighbours

childEdgeNeighbours: Dictionary<Guid>

Protected childModelNeighbours

childModelNeighbours: Dictionary<Guid>

Protected childNodeNeighbours

childNodeNeighbours: Dictionary<Guid>

Protected end

end: 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 start

start: Guid

Protected type

Accessors

Id

  • get Id(): Guid

Methods

addChildConnectorNeighbour

  • addChildConnectorNeighbour(id: Guid): void

addChildEdgeNeighbour

  • addChildEdgeNeighbour(id: Guid): void

addChildModelNeighbour

  • addChildModelNeighbour(id: Guid): void

addChildNodeNeighbour

  • addChildNodeNeighbour(id: Guid): void

addEndConnector

  • addEndConnector(connectorId: Guid): void
  • Sets the EndConnector

    Parameters

    • connectorId: Guid

    Returns void

addParentConnectorNeighbour

  • addParentConnectorNeighbour(id: Guid): void

addParentEdgeNeighbour

  • addParentEdgeNeighbour(id: Guid): void

addParentModelNeighbour

  • addParentModelNeighbour(id: Guid): void

addParentNodeNeighbour

  • addParentNodeNeighbour(id: Guid): void

addStartConnector

  • addStartConnector(connectorId: Guid): void
  • Sets the StartConnector

    Parameters

    • connectorId: Guid

    Returns void

delete

  • delete(graph: Graph): void

deleteProperty

  • deleteProperty(name: string): void

getChildConnectorNeighbours

  • getChildConnectorNeighbours(): Guid[]

getChildEdgeNeighbours

  • getChildEdgeNeighbours(): Guid[]

getChildModelNeighbours

  • getChildModelNeighbours(): Guid[]

getChildNodeNeighbours

  • getChildNodeNeighbours(): Guid[]

getConnectorNeighbours

  • getConnectorNeighbours(): Guid[]
  • Override that ensures that the StartConnector is element 0, Endconnector is element 1 Any (potential) other connectors are at indices > 1

    Returns 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

unlinkChildConnectorNeighbour

  • unlinkChildConnectorNeighbour(id: Guid): void

unlinkChildEdgeNeighbour

  • unlinkChildEdgeNeighbour(id: Guid): void

unlinkChildModelNeighbour

  • unlinkChildModelNeighbour(id: Guid): void

unlinkChildNodeNeighbour

  • unlinkChildNodeNeighbour(id: Guid): void

Generated using TypeDoc