private void init ( ) { Measure currSonarMeasure = null ; String currValue = null ; setValues ( new HashMap < HLAMeasure , String > ( ) ) ; setValuesInt ( new HashMap < HLAMeasure , Integer > ( ) ) ; setValuesDouble ( new HashMap < HLAMeasure , Double > ( ) ) ; setMeasures ( new ArrayList < HLAMeasure > ( ) ) ; setVersion ( getResource ( ) . getVersion ( ) ) ; for ( HLAMeasure currMeasure : HLAMeasure . values ( ) ) { LOG . debug ( "Analyzing measure " + currMeasure . getSonarName ( ) ) ; currSonarMeasure = getResource ( ) . getMeasure ( currMeasure . getSonarName ( ) ) ; if ( currSonarMeasure != null ) { LOG . debug ( "Found measure for " + currMeasure . getSonarName ( ) ) ; currValue = currSonarMeasure . getFormattedValue ( ) ; LOG . debug ( "Value is: " + currValue ) ; getValues ( ) . put ( currMeasure , currValue != null ? currValue : VALUE_NOT_AVAILABLE ) ; getValuesInt ( ) . put ( currMeasure , currSonarMeasure . getIntValue ( ) ) ; getValuesDouble ( ) . put ( currMeasure , currSonarMeasure . getValue ( ) ) ; getMeasures ( ) . add ( currMeasure ) ; } } }
Initialize the internal values .