API Docs for:
Show:

Path Class

Defined in: model\Path.js:10
Module: model

A path is an ordered set of nodes.

Methods

addNode

(
  • An
)

Defined in model\Path.js:27

Adds a node to this path.

Parameters:

  • An Object

    instance of Node

contains

(
  • An
)
Boolean

Defined in model\Path.js:36

Checks if this path contains a given node.

Parameters:

  • An Object

    instance of Node

Returns:

Boolean: True if the path contains the given node.

initialize

(
  • A
)

Defined in model\Path.js:17

The initialization method of this object.

Parameters:

  • A Map

    map of parameters

toString

() String

Defined in model\Path.js:70

Returns a string representing this object.

Returns:

String: A string representing this object

validate

(
  • A
)
Array

Defined in model\Path.js:56

The validation method of this object. This method is used to check the initialization parameters.

Parameters:

  • A Map

    map of parameters

Returns:

Array: An array of {String} errors