Module Simantics/ProceduralUserComponent

This module is undocumented. This is a list of its definitions.

createConnectionPoint :: Resource -> Resource -> <WriteGraph> Resource

createConnectionPoint componentType existing adds a new connection point to the given component type by copying the superrelations, types, attachment relation and allowed connection types of the existing connection point relation. The new connection point gets a fresh name derived from the name of the copied one, and is returned.

createProceduralUserComponent :: Resource -> <WriteGraph> Resource

Creates a new procedural component type in the given library and returns it. The new component type inherits the component type supertype of the index root of the library, gets a fresh name, an empty procedural code literal and a symbol diagram of its own.

saveProceduralCode :: Resource -> String -> <WriteGraph> ()

Replaces the procedural code of the given procedural component type with the given text.