Indicators

Indicators associate a measure with a scale.

<Indicator 
    indicatorId="ROKR_REQ" 
    measureId="ROKR_REQ"
    scaleId="SCALE_DECILE"
    families="TAB" 
    displayTypes="VALUE;LEVEL" />

The attributes allowed in the Indicator tag are the following:

Tip

In order to quickly define an indicator using the same value for indicatorId , measureId and scaleId you can use this quick notation syntax:

<Indicator indicatorId="TEST_COVERAGE" />

Squore will automatically assume that measureId and scaleId for this indicator are also TEST_COVERAGE.

Advanced Examples

  1. Defining a single indicator that uses different measures depending on the type of artefact:

    <Indicator indicatorId="WEIGHTED_NCC" 
      measureId="WEIGHTED_NCC" targetArtefactTypes="CLASSES;MODULES;CODE_SPECIFICATIONS" />
    
    <Indicator indicatorId="WEIGHTED_NCC"
      measureId="WEIGHTED_NCC_DENSITY" targetArtefactTypes="PACKAGES;FILES" />
    
  2. Defining a single indicator that uses different scales depending on the artefact type:

    <Indicator indicatorId="COMPLEXITY" />
    			
    <Measure measureId="COMPLEXITY" targetArtefactTypes=";" defaultValue="-1">
      <Computation targetArtefactTypes="CLASSES;MODULES;CODE_SPECIFICATIONS" result="..." />
      <Computation targetArtefactTypes="PACKAGES;FILES" result="..." />
    </Measure>
    
    <Scale scaleId="COMPLEXITY" macro="TRAFFIC_LIGHT" vars="5;30" targetArtefactTypes="CLASSES;MODULES;CODE_SPECIFICATIONS" />
    <Scale scaleId="COMPLEXITY" macro="TRAFFIC_LIGHT" vars="20;200" targetArtefactTypes="PACKAGES;FILES" />