Header menu logo issie

GraphMerger Module

Functions and values

Function or value Description

mergeDependencies currDiagramName graph (arg3, arg4) loadedDependencies

Full Usage: mergeDependencies currDiagramName graph (arg3, arg4) loadedDependencies

Parameters:
Returns: Result<SimulationGraph, SimulationError>

Try to resolve all the dependencies in a graph, and replace the reducer of the custom components with a simulationgraph. Return an error if there are problems with the dependencies. For example, if the graph of an ALU refers to custom component such as adders, replace them with the actual simulation graph for the adders.

currDiagramName : string
graph : SimulationGraph
arg2 : Component list
arg3 : Connection list
loadedDependencies : LoadedComponent list
Returns: Result<SimulationGraph, SimulationError>

resolveParametersInSimulationGraph bindings currDiagramName (arg3, arg4) loadedDependencies graph

Full Usage: resolveParametersInSimulationGraph bindings currDiagramName (arg3, arg4) loadedDependencies graph

Parameters:
Returns: Result<SimulationGraph, SimulationError>

Recursively update the SimulationGraph replacing integers with the correct parameter values. Parameter names, and slots using parameters, can be picked up from loadedDependencies Parameters can be resolved by looking at the parameter bindings of the custom components. bindings: parameter bindings for the current sheet. currDiagramName: the name of the current sheet. state: the current CanvasState. loadedDependencies: the loaded dependencies. graph: the fully merged SimulationGraph to update. NB SimulationGraph components include the widths of all input and output busses.

bindings : Map<ParamName, ParamExpression>
currDiagramName : string
arg2 : Component list
arg3 : Connection list
loadedDependencies : LoadedComponent list
graph : SimulationGraph
Returns: Result<SimulationGraph, SimulationError>

Type something to start searching.