MapModelProvider

constructor(modelIdentifier: String, builder: ModelBuilderIfc)

Secondary constructor for the MapModelProvider class.

Initializes the provider with a single model builder mapped to the provided model identifier.

Parameters

modelIdentifier

the identifier for the model

builder

the builder responsible for creating the model


constructor(modelBuilders: MutableMap<String, ModelBuilderIfc> = mutableMapOf())

Creates a MapModelProvider with an optional initial set of model builders.

Parameters

modelBuilders

A mutable map containing model identifiers and their corresponding ModelCreator functions. Default is an empty map.