raesl.canopy#

Module to ESL derived graph to a graph suitable for exporting to Canopy.

Submodules#

Package Contents#

Functions#

get_comp_node_html_table(→ LineGen)

Returns a HTML grid table.

get_edge_html_text(→ LineGen)

Yields ESL info belonging to an edge.

get_spec_node_html_text(→ LineGen)

Yields ESL info belonging to spec node in html format.

add_canopy_annotations(graph[, node_kinds, edge_kinds])

Convert ESL derived graph to a graph suitable for exporting to Canopy.

Attributes#

DEFAULT_NODE_KINDS

DEFAULT_EDGE_KINDS

raesl.canopy.get_comp_node_html_table(node: ragraph.node.Node, graph: ragraph.graph.Graph, node_kinds: List[str]) LineGen#

Returns a HTML grid table.

raesl.canopy.get_edge_html_text(h: int, edge: ragraph.edge.Edge, graph: ragraph.graph.Graph) LineGen#

Yields ESL info belonging to an edge.

raesl.canopy.get_spec_node_html_text(h: int, node: ragraph.node.Node, graph: ragraph.graph.Graph) LineGen#

Yields ESL info belonging to spec node in html format.

raesl.canopy.DEFAULT_NODE_KINDS = ['component', 'function_spec', 'behavior_spec', 'design_spec', 'need', 'relation_spec', 'variable']#
raesl.canopy.DEFAULT_EDGE_KINDS = ['functional_dependency', 'logical_dependency', 'design_dependency', 'coordination_dependency',...#
raesl.canopy.add_canopy_annotations(graph: ragraph.graph.Graph, node_kinds: List[str] | None = None, edge_kinds: List[str] | None = None)#

Convert ESL derived graph to a graph suitable for exporting to Canopy.

Parameters:
  • graph – Graph to be converted

  • node_kinds – List of node kinds to be considered in conversion.

  • edge_kinds – List of edge kinds to be considered in conversion.

Returns

Converted graph object.