Class GraphConnection

The GraphConnection represents an oriented connection between two GraphPin instances.

Hierarchy (view full)

Constructors

Properties

_inputNodeID: UUID
_inputPin: GraphPin
_inputPinID: UUID
_outputNodeID: UUID
_outputPin: GraphPin
_outputPinID: UUID

Accessors

  • get id(): UUID
  • The UUID of the object.

    Returns UUID

  • get inputNodeID(): UUID
  • The unique UUID of the input node.

    Returns UUID

  • set inputNodeID(value): void
  • Parameters

    Returns void

  • get inputPinID(): UUID
  • The unique UUID of the input pin.

    Returns UUID

  • set inputPinID(value): void
  • Parameters

    Returns void

  • get isEnabled(): boolean
  • Virtual

    Determines if the connection is currently valid.

    Returns boolean

  • get outputNodeID(): UUID
  • The unique UUID of the output node.

    Returns UUID

  • set outputNodeID(value): void
  • Parameters

    Returns void

  • get outputPinID(): UUID
  • The unique UUID of the output pin.

    Returns UUID

  • set outputPinID(value): void
  • Parameters

    Returns void

Methods

  • Gets the connected node UUID for the specified pin.

    If pin is the inputPin the outputNodeID will be returned and vice-versa.

    Parameters

    Returns UUID

    This method is usable when the connection is not fully formed as it relies on IDs, not objects.

  • Gets the connected pin UUID for the specified pin.

    If pin is the inputPin the outputPin will be returned and vice-versa.

    Parameters

    Returns UUID

    This method is safer than getConnectedPin as it can be used if the connection is not fully loaded yet.

  • Virtual

    Enables the connection for the pin.

    Parameters

    Returns void

    Implementing classes must call super.

  • Returns a string representation of an object.

    Returns string