IBM
Contents Index Previous Next



General


It is possible to generate a number of complexity measurements when running the tool. The generated measurements are provided as raw data in a text file with comma as delimiter between fields. Viewing and manipulating this data can be performed using a spreadsheet tool.

The information in the complexity file can be used in many ways, for example:

The Complexity File

The complexity file will have the name <system name>.csv and will be generated at the same time and in the same place as the .xref file (the target directory).

The .csv format is a "standard" spreadsheet format containing comma separated values. Many spreadsheet tools recognize this format, to read the file properly the list separator in the regional setting has to be "," (comma).

In some countries ";" (semicolon) is used as separator. If the separator is a semicolon the file should be imported as a text file, so the separator can be explicitly specified.

Generating the complexity file

The complexity file is generated during the analysis phase according to the following setup:

  1. In the Analyzer dialog, select Semantic Analysis and click Details.
  2. In the dialog displayed, select Generate a complexity measurement file and enter a file name.
Other ways of generating a complexity file

There are alternate ways of generating a complexity file:

Complexity File Contents

There is one line in the file for each:

Each line contains first the declaration level. This is 1 for the system and for packages. Units defined in the system have level 2 and so on.

The lines then include the entity class and the name of the unit, followed by some complexity numbers. The complexity numbers are given both for the unit itself (local) and for the unit including all its subunits (total).

The lines are sorted so that all subunits are placed before the unit where they are defined.


http://www.ibm.com/rational
Contents Index Previous Next