question: public void reportOccurences ( List < Map < Id < Vehicle > , Integer > > maps ) { for ( int m = 0 ; m < maps . size ( ) ; m ++ ) { Map < Id < Vehicle > , Integer > theMap = maps . get ( m ) ; log . info ( " Map " + ( m + 1 ) + " (" + theMap . size ( ) + " agents)" ) ; Integer min = Integer . MAX_VALUE ; Integer max = Integer . MIN_VALUE ; for ( Id < Vehicle > id : theMap . keySet ( ) ) { min = Math . min ( min , theMap . get ( id ) ) ; max = Math . max ( max , theMap . get ( id ) ) ; } log . info ( "    Min usage: " + min + "; Max usage: " + max ) ; List < Id < Link > > histList = new ArrayList < > ( ) ; Map < Id < Link > , Integer > histMap = new HashMap < Id < Link > , Integer > ( ) ; for ( long h = min ; h <= max ; h ++ ) { Id < Link > id = Id . create ( h , Link . class ) ; histList . add ( id ) ; histMap . put ( id , new Integer ( 0 ) ) ; } for ( Id < Vehicle > id : theMap . keySet ( ) ) { int value = theMap . get ( id ) ; histMap . put ( Id . create ( value , Link . class ) , new Integer ( histMap . get ( Id . create ( value , Link . class ) ) + 1 ) ) ; } String s = "" ; for ( Id < Link > id : histList ) { s += id . toString ( ) + " (" + histMap . get ( id ) + "); " ; } log . info ( "    Link usage histogram:" ) ; log . info ( "    " + s ) ; } }
target:  Reports the patronage for each of the agent categories. The results are presented in a manner usable for a histogram: indicating the frequency of use by different patrons, i.e. how many people have entered observed links once, twice, etc.