Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Therefore the KIELER Project Management (Prom) has been developed. It eases the creation, compilation and deployment of projects, when using models that can be compiled via KiCo. Furthermore it eases the creation of wrapper code, which is used to initialize and run the model. To do so, there are mainly three components, Project Wizards, an Eclipse Launch Configuration and so called Environments, which will be introduces in the following.

...

The KiCo Launch Configuration

Todo

Prom Environments

Environments are used to set default settings for project creation and launching for different target platforms. They are configured in the preferences (Window > Preferences > KIELER > Environments).

...

A main file typically contains the entry point of the program on the target environment. Its wrapper code initializes and runs the model and sets inputs and outputs to the physical components of the target device. To ease the project setup and because wrapper code for a specific target platform is often similar, it is possible to define default content for the main file. Therefore the field main file origin can contain an absolute file path to a file with the default contents of a newly created main file for this Environment. Furthermore predefined wrapper code snippets can be injected as part of a project launch, which is described below.

The desired programming language of KiCo can produce code in different programming languages from a model file, including C and Java.

Project Wizards with Prom

Todo

...

generated code, can be set for an Environment. Further one can define the file extension (e.g. '.java' for Java files) for that language.

To generate wrapper code from a model one can define an input template and a directory with files that contain wrapper code snippets. The wrapper code origin is used to initialize the wrapper code snippet directory of a newly created project.

Last but not least, a list of shell commands can be defined, which will be executed sequentially when the code generation from KiCo and wrapper code generation both finished successfully. These commands are typically used to further compile the output and deploy the result to the target devide.

Paths for initial content

Project Wizards with Prom

Todo

Wrapper Code Generation

...