Constructor
new DotParser(dotPath)
Initialize DotParser class instance.
Parameters:
Name | Type | Description |
---|---|---|
dotPath |
Path to the .dot file. |
- Source:
Methods
addGraphData(nodes, links, recipeName, dependentRecipeName, index)
Add new nodes and links to the list of nodes and links.
Parameters:
Name | Type | Description |
---|---|---|
nodes |
List of nodes. | |
links |
List of links. | |
recipeName |
Name of the first recipe. | |
dependentRecipeName |
Name of the second recipe. | |
index |
Index of the node in the list of nodes. |
- Source:
Returns:
New index.
generateGraphJSON(nodes, links)
Generate a JSON string containing list of nodes and list of links.
Parameters:
Name | Type | Description |
---|---|---|
nodes |
List of nodes. | |
links |
List of links. |
- Source:
Returns:
JSON string with data for visualization.
parseDotFile(type, mode)
Parse a .dot file based on given parameters.
Parameters:
Name | Type | Description |
---|---|---|
type |
Type of the BitBake task that will be parsed. | |
mode |
Mode of graph analysis. |
- Source:
Returns:
JSON string with data for visualization.
parseDotFileDefault(mode)
Parse .dot file if "default" BitBake task type was selected (uses ".do_prepare_recipe_sysroot" on the left side and ".do_populate_sysroot" on the right side).
Parameters:
Name | Type | Description |
---|---|---|
mode |
Mode of graph analysis. |
- Source:
Returns:
JSON string with data for visualization.
parseDotFileTaskType(type, mode)
Parse BitBake .dot file. Uses only lines that have the specified type on the left side.
Parameters:
Name | Type | Description |
---|---|---|
type |
Type of the BitBake task that will be parsed. | |
mode |
Mode of graph analysis. |
- Source:
Returns:
JSON string with data for visualization.
setNodeRecipe(nodes, labelSource, recipeName, index, mode)
Assing a path to the recipe file for a specified node or for a newly created one.
Parameters:
Name | Type | Description |
---|---|---|
nodes |
List of nodes. | |
labelSource |
Label string. | |
recipeName |
Name of the recipe. | |
index |
Index of the node in the list of nodes. | |
mode |
Mode of graph analysis. |
- Source:
Returns:
New index.