Class: Node

Node(id, name)

Class representing a recipe (node) in the graph.

Constructor

new Node(id, name)

Create an instance representing a recipe (node) in the graph.
Parameters:
Name Type Description
id ID of the node.
name Name of the node.
Source:

Methods

getId()

Return an ID of the node.
Source:
Returns:
ID of the node.

getLicense()

Return a license used by the node.
Source:
Returns:
Used license of the node.

getName()

Return a name of the node.
Source:
Returns:
Name of the node.

getRecipe()

Return a recipe of the node.
Source:
Returns:
Recipe of the node.

setLicense(license)

Set used license.
Parameters:
Name Type Description
license Used license.
Source:

setRecipe(recipe)

Set path to the recipe.
Parameters:
Name Type Description
recipe Path to the recipe.
Source: