%type_NAMES%

The names of the signals and states in the type array. type can be any of BOOL, INT and REAL.

If this key is found in a line of the template file during code generation, then that whole line will be copied the same number of times as there are signals of type type, and in each copy, the %type_NAMES% key is replaced by the name of the signal residing in the corresponding cell of the array. As a result, this key generates the complete list of the names of all signals in the type array. This information is used to associate an array index with an actual signal in the RTflow model.

The names of signals in the top-level node are provided without modifications. However, for signals in subnodes, the names are prepended with the instance path to the subnode containing the signal. Hence, if the subnode A is a subnode of the top-level node, and subnode A has a signal i, then that signal will be given the name "A/i" in the generated name list.

Generators

C/C++/Java

Example (Java)

public String[] boolNames = new String[]
{
   "%BOOL_NAMES%",
   ""
};