Path Class
A path is an ordered set of nodes.
Item Index
Methods
Methods
addNode
(
-
An
Adds a node to this path.
Parameters:
-
An
Objectinstance of Node
contains
(
Boolean
-
An
Checks if this path contains a given node.
Parameters:
-
An
Objectinstance of Node
Returns:
Boolean:
True if the path contains the given node.
initialize
(
-
A
The initialization method of this object.
Parameters:
-
A
Mapmap of parameters
toString
()
String
Returns a string representing this object.
Returns:
String:
A string representing this object
validate
(
Array
-
A
The validation method of this object. This method is used to check the initialization parameters.
Parameters:
-
A
Mapmap of parameters
Returns:
Array:
An array of {String} errors