Difference between revisions of "Configuring and running FIA"
Line 54: | Line 54: | ||
[[API constants|API constants]] | [[API constants|API constants]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 06:09, 20 August 2021
FIA can be configured in two ways, depending on how you want to call the program:
Calling FIA from the command line
The simplest and quickest way to get going with FIA is to run in stand-alone mode from the command prompt. This requires
- data files;
- a configuration file
With these you can start generating attribution analyses immediately, using the supplied fia64 program.
fia64 is a simple program that reads in the supplied data and configuration settings, passes them through to the Flametree engine using its API, and generates reports.
All output is in the form of Excel or CSV files, as specified in the configuration settings.
Setting up a configuration file
Calling FIA from code
To call FIA from code, the information required is almost exactly the same as for stand-alone mode. The main differences are
- data must be supplied as in-memory arrays rather than CSV files;
- configuration settings are carried out in code, rather than by assinging values in a configuration file.
- Some code is required to pull everything together.
In general, a program that calls FIA has the following form:
- Required modules are loaded
- Data is assigned to string_matrix structures
- The program is initialized, via a call to FIA_init(). This ensures that all variables are assigned appropriate default values if not set by the user.
- Variables and data are initialized via calls to FIA_set_matrix, FIA_set_string, FIA_set_double, FIA_set_integer
- FIA is run via a call to FIA_run()
- Results are either written to disk as reports, or read back into a string_matrix structure via a call to FIA_get_matrix for subsequent use elsewhere.
Languages supported
If the language you wish to use is not shown here, please contact Flametree support.