Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Service SimpleCsvOutput

Warning
The interface is not yet finalized. It may still evolve.

This service allows you to create a 2D table of values with named rows and columns. Currently, the output file format is CSV format. This service can be used as a standard service defined in a module's AXL or as a singleton to have a unique instance for all modules.

You just need to create one or more rows and one or more columns, then assign values to each [row,column], and finally call the writeFile() method to generate a .csv file.

Example .csv file:

Results_Example3;Iteration 1;Iteration 2;Iteration 3;
Nb de Fissions;36;0;85;
Nb de Collisions;29;84;21;

In Excel (or another spreadsheet program), you get this table:

Results_Example3 Iteration 1 Iteration 2 Iteration 3
Nb de Fissions 36 0 85
Nb de Collisions 29 84 21

This subsection introduces this service. Not all use cases will be covered, so it is recommended to view the documentation for the ISimpleTableOutput interface to fully exploit this service (notably the multi-process management aspect, which does not have an example).


Table of Contents for this subsection:

  1. Usage
    Summarizes how to use the service (as a singleton, in parallel).
  2. Examples: generalities
    Some general information to read before tackling the examples.
  3. Example No. 1
    This simple example introduces how to use the service in singleton mode.
  4. Example No. 2
    This example also uses singleton mode and shows how to pass options to the service through the main module.
  5. Example No. 3
    This example is the same as example 1 but without singleton mode.
  6. Example n°4
    This example explains how to use the service in a more optimal way.
  7. Exemple n°5
    This example introduces filling the table by using the cell pointer and directional movements.
  8. Example No. 6
    This example continues the explanation of filling using the cell pointer.