PAK Core – Enabling Sub-Models
After finishing this tutorial, you will have a basic idea on how to register the necessary services in order to make use of PAKs sub-model feature.
By definition, a sub-model does not differ from a IModel in any way. It merely functions as a naming convention to identify a model that is included inside another model. When a sub-model is executed, it is assigned an own engine. Such an engine is called a sub-engine. Each sub-engine may have at most one super-engine (parent engine), but can hold multiple sub-engines itself.
In order to enable sub-model handling in your engine, there are two major services involved.
To enable sub-model handling for your application, simply register the two implementations for the interfaces described before via the service provider. Now your engine is locked and loaded to run models containing sub-models.