Versions Compared

Key

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

...

An environment consists of

  1. a unique name, that does which may not contain a comma
  2. a related project wizard
  3. information about a main file for the project
  4. information about the target code KiCo should produce
  5. information for wrapper code generation
  6. a list of shell commands, which should be run as part of a project launch
  7. an associated launch shortcut, which is used on the compiled main file

Besides the name, all of these are optional, but can improve the workflow.

...

In the template file one can use special placeholders.

${modelfile_name} is replaced with the name withouth extension of the file that is generated (e.g. Main.java will be Main).

${model_name} is replaced with the name of the last compiled model.

${declarations} and ${decls} will be replaced with additional declarations of variables and functions (<@decl>...</@decl> of a snippet definition). Declarations should occur before the tick loop of the model file. In general they are not required for Java code but may be useful in C applications (e.g. for extern calls).

...