Skip to content

Structure

tommasoviciani edited this page May 30, 2020 · 1 revision

The framework structure is a simple tree structure and is composed of three fundamental elements for the operation of the application: Module, Job, and Modules Central Unit (MCU).

The Module is the entity that performs certain actions dictated by us through the patterns and can send data or make actions take another module, through the MCU. This entity is very important as it allows us to divide our project into many parts that communicate with each other, greatly simplifying our application

The data that modules are sent are called Jobs and is an object that has properties that store information such as the producer, the goal, the recipient module, and data. So each module has a personal queue in which jobs distributed by the MCU are placed, such as a mailbox. Then the module will cyclically execute all the jobs within its queue by performing a certain action declared within them based on the goal of the job.

If an associated action does not exist for a certain goal then that job will not be executed.


The MCU is the beating heart of the entire ECUframework, like a node that allows communication between the modules and is the support base of the framework structure. There are no limits to the number of modules it can handle, but the hardware the application will run on will certainly be. The MCU has a queue named as a shared queue which allows the distribution of the jobs provided by its modules.

Clone this wiki locally