Embedded

@Serializable
@SerialName(value = "embedded")
data class Embedded(val modelName: String) : ModelReference(source)

Marker that the originating application held its model in-process (as Kotlin code, not as a JAR or bundle) and the saved configuration therefore does not contain a portable pointer to it. Written by the Single-app framework; resolved at run time by handing the framework's own ksl.simulation.ModelProviderIfc — keyed on modelName — to the orchestrator.

Consuming apps that do not host the originating model surface a distinguished validation error (MODEL_REFERENCE_EMBEDDED_NOT_RESOLVABLE) rather than the generic "id not found" reported for an unresolved ByProviderId. The intent of the variant is to make cross-app inspection of saved configurations honest: the document records "the author embedded the model" rather than implying a portable provider lookup.

Constructors

Link copied to clipboard
constructor(modelName: String)

Properties

Link copied to clipboard

the simulation model's Model.name; also the id the framework's ksl.simulation.ModelProviderIfc uses to find the model at run time