Issie logo Issie

SimpleDesignShim Module

SimpleDesign back to skeleton LoadedComponents that the existing simulation creation accepts - the bridge that lets the dotnet sidecar run today's simulator on a design that arrived over the wire, as a BASELINE against which rewrites (and the Electron simulator itself) can be checked. Deliberately not part of the wire contract: the Simple types stay minimal, and a future .NET simulator consumes them directly with its own structures. This shim reconstructs only what the current pipeline demands - components with port lists (ports synthesized from the component type's arity; port ids never crossed the wire), connections resolved back from (component, port number) endpoints, and sheet IO signatures recomputed by the same function the loader uses. Geometry stays zeroed: the simulator never reads it.

Functions and values

Function or value Description

designToLoadedComponents design

Full Usage: designToLoadedComponents design

Parameters:
Returns: LoadedComponent list

The whole design as skeleton LoadedComponents, ready for Simulator.startCircuitSimulation.

design : SimpleDesign
Returns: LoadedComponent list

portCounts typeS label

Full Usage: portCounts typeS label

Parameters:
Returns: int * int

Port counts for a component type: custom components from their own label lists, everything else from the same table symbol creation uses.

typeS : ComponentType
label : string
Returns: int * int

sheetToLoadedComponent sheet

Full Usage: sheetToLoadedComponent sheet

Parameters:
Returns: LoadedComponent
sheet : SimpleSheet
Returns: LoadedComponent

Type something to start searching.