Shared Model Elements

Introduction

In this chapter all existing shared elements are explained in detail. For information on how to instantiate and how to use these shared elements, refer to Add shared elements.

With MLDesigner you can use a number of so-called shared elements to model the functionality of a component. Such elements are called shared elements as they are used to share information without exchanging data. For that purpose they can be linked over different model hierarchy levels. Linking means that different model components use the same model element to manipulate the data. There are three types of shared elements:

Memory
Event
Resource

These elements are instantiated via the context menu in the module or system Model Editor window or by clicking the relevant icons on the toolbar. The advantages of using shared elements is that it is not necessary to connect modules in order to share the information and it is possible to share information over different modeling levels.

Memories

A memory shared element identifies a location in the memory, used to share information between MLDesigner modules. The information is sent as a Data Structure and as a result every memory has an associated type.

Events

An event shared element is used to indicate that a primitive module can accept asynchronous events. Timer modules use the Event to specify with which other timer modules they interact.

Resources