Moxie Model Libraries
When you install the Moxie plugin to your No Magic modeling tool,
it will copy these model libraries to your modeling tool's modelLibraries directory.
You can add these to specific projects through the Options > Project Usages >
dialog in your modeling tool.
In the Containment Tree
, they will appear dimmed, which indicates that they are read-only project dependencies
that cannot be modified.
Core model libraries
The Moxie-Base.mdzip and Moxie-Core.mdzip No Magic project files together comprise the core models. As a best practice, you should derive all of your model's blocks ultimately from these core models.
Base models (Moxie-Base.mdzip)
The base models library contains the minimum SysML required to execute a Moxie simulation. It includes block classifiers used for event detection, time management, code generation, and simulation configuration.
There are two blocks in Moxie-Base.mdzip worth highlighting in particular:
Moxie-Base::Structure::Thing
- Moxie requires that any blocks that own behaviors, such as state machines, that you wish to simulate derive either directly or indirectly fromMoxie-Base::Structure::Thing
. This allows Moxie to execute the classifier behaviors owned by those blocks at the start of the simulation.Moxie-Base::Simulation::SimulationSpecification
- Moxie requires that each simulation have an instance specification ofMoxie-Base::Simulation::SimulationSpecification
in its simulation configuration. This simulation instance specification informs Moxie which instance specifications take part in the simulation by listing them in itsroots
slot. If the listed instance specifications have classifier blocks that derive fromMoxie-Base::Structure::Thing
, Moxie will execute the classifier behaviors owned by those blocks at the start of the simulation.
Core models (Moxie-Core.mdzip)
The core models library is a formalized representation of the top-level domain, intended for use by model libraries representing specialized subdomains. In particular, it defines elements of time and spatial geometry that form the basis for interactions with any physics-based analysis tool.
Analysis tool model libraries
STK models (Moxie-STK.mdzip)
The STK models library contains a collection of stereotypes to enable your simulation to launch and more easily integrate with STK.