subsystem_ref
Stable type · Other
Tier: stable · Kind: type · Topic: Other
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
SubsystemRef | not exported | not exported | SubsystemRef | not exported |
Julia
struct SubsystemRef <: EarthSciAST.SubsystemNode
SubsystemRef(ref::String, bindings::Dict{String, Int64}, expression_template_imports::Vector{Any}, index_set_rename::Union{Nothing, OrderedCollections.OrderedDict{String, String}}, url_substitutions)
SubsystemRef(ref, bindings, expression_template_imports, index_set_rename, url_substitutions)
SubsystemRef(ref::AbstractString, bindings::AbstractDict, injected::AbstractVector, index_set_rename::Union{Nothing, AbstractDict})
SubsystemRef(ref::AbstractString, bindings::AbstractDict, injected::AbstractVector)
SubsystemRef(ref::AbstractString, bindings::AbstractDict)
SubsystemRef(ref::AbstractString)
SubsystemRef(ref::String)
SubsystemRef(ref::String, bindings::Dict{String,Int})
Unresolved reference to an external ESM file used as a subsystem (esm-spec §4.7).
Produced by coerce_model for a {"ref": "..."} subsystem entry and replaced
in place by resolve_subsystem_refs! with the loaded Model.
A SubsystemRef only survives parsing when references are not resolved (e.g.
load_string without a base path); load_path always resolves them.
bindings closes the referenced document’s open metaparameters at this edge
(esm-spec §9.7.6 binding site 3 — e.g. a convergence wrapper instantiating a
problem file at a given size). expression_template_imports are the raw
§9.7.2 import entries injected into the REFERENCED component’s own template
scope (esm-spec §9.7.10 form A — assembler-chosen discretization for a mounted
PDE leaf); they are threaded into the referenced document’s load and consumed by
the §9.6.3 fixpoint, so a resolved subsystem round-trips as the lowered inline
component and the field does not survive parse → emit.
index_set_rename translates the mounted document’s index-set names into the
mounting document’s vocabulary at load (esm-spec §4.7 “Mount-edge index-set
renaming”) — the §9.7.7 renaming mechanism at a component-mount edge, restricted
to index sets. Like the two fields above it is consumed at the mount and does not
survive parse → emit.
url_substitutions binds the bare {name} placeholders of the mounted
document’s data_sources locations (esm-spec §4.7 “Binding a data source’s
location at the mount”). Kept RAW (nothing when absent) so its shape is
checked at the edge, with the edge’s diagnostics; consumed at the mount like the
fields above.
TypeScript
TypeScript does not export this type.
Python
Python does not export this type.
Rust
pub struct SubsystemRef {
pub target: String,
pub edge: Map<String, Value>,
}
An unresolved {"ref": …} mount edge (schema SubsystemRef).
Go
Go does not export this type.