Difference between revisions of "Import/Export of Components in TASTE"

From TASTE
Jump to: navigation, search
(Created page with "= Introduction = A new system is rarely created from scratch and having a library of reusable building blocks is a fundamental basics when working with models. This page expl...")
 
Line 7: Line 7:
 
#  The import/export of complete parts of an interface view
 
#  The import/export of complete parts of an interface view
  
== Shared library of components ==
+
== Shared library of component types ==
 +
 
 +
=== Overview ===
 +
'''Component types''' are TASTE functions that contain a generic implementation in '''Ada''', '''C++''' or '''SDL''' and that can be instantiated several times in a system.
 +
 
 +
While the types can be defined locally in a project, they are usually exported to an external folder, from which they are shared and visible to all TASTE users.
 +
 
 +
In the TASTE VM, the default base folder for such shared component types is '''/home/taste/tool-inst/share/SharedTypes'''. It can be overridden by setting the '''TASTE_SHARED_TYPES''' environment variable and make it point to a different folder.
 +
 
 +
For example this component is present:
 +
 
 +
:[[File:ClipCapIt-200907-105501.PNG]]
 +
 
 +
=== Creating and exporting a component type ===

Revision as of 08:58, 7 September 2020

Introduction

A new system is rarely created from scratch and having a library of reusable building blocks is a fundamental basics when working with models. This page explains the two forms of component reuse that are available in TASTE and how they operate:

  1. The shared library of component type that can be instantiated in a system
  2. The import/export of complete parts of an interface view

Shared library of component types

Overview

Component types are TASTE functions that contain a generic implementation in Ada, C++ or SDL and that can be instantiated several times in a system.

While the types can be defined locally in a project, they are usually exported to an external folder, from which they are shared and visible to all TASTE users.

In the TASTE VM, the default base folder for such shared component types is /home/taste/tool-inst/share/SharedTypes. It can be overridden by setting the TASTE_SHARED_TYPES environment variable and make it point to a different folder.

For example this component is present:

ClipCapIt-200907-105501.PNG

Creating and exporting a component type