Home   :   Matrix Language   :   Model Examples

Model Examples

 

Introduction

 

These models are best studied in the order presented as most aspects covered in earlier examples are not repeated in later examples.

 

The Matrix model, test scenario and generated source code files for all these examples are available on GitHub .

 

 

Tutorial Examples

 

Hello World! - The standard Hello World! demo that every language must have.

 

Ping Pong - A model that demonstrates generating and listening for events.

 

Zig Zag - A model that demonstrates the asynchronous creation and deletion of objects.

 

Banking Application - This model is taken from the book Object Lifecycles: Modeling the World in States by Sally Shlaer and Stephen J. Mellor.

 

Passenger Elevator - A larger model that describes a workable elevator (lift) system that employs a simplistic allocation algorithm.  An assigner entity is used to resolve any possible contention for elevators.

 

Windows WiX Installer - A model that generates an application's WiX installation source file in XML format. The file is processed by the WiX toolset to produce an installable MSI file for the Windows platform. This model is used to generate the installer for the Model Compiler download.

Copyright 2017 Dark Matter Systems Ltd. All Rights Reserved.