int tankBattles = dossierToJsonTanks.get_15x15().battles;
tankBattles = 1;
int tankId = dossierToJsonTanks.getCompDescr();
//for each tank do the sum of frag, dmg, spot def, xp, wr
DataWnEfficientyTank dataWnEfficientyTank = hMapWnEfficientyTankHashMap.get(String.valueOf(tankId));
// takes the counts of tanks played on account, and multiplies them by the expected stats to get the account total expected values.
// totalExpFrag = totalExpFrag + Double.valueOf(dataWnEfficientyTank.getExpFrag()) * tankBattles;
// totalExpDmg = totalExpDmg + Double.valueOf(dataWnEfficientyTank.getExpDamage()) * tankBattles;
// totalExpSpot = totalExpSpot + Double.valueOf(dataWnEfficientyTank.getExpSpot()) * tankBattles;
// totalExpDef = totalExpDef + Double.valueOf(dataWnEfficientyTank.getExpDef()) * tankBattles;
// totalExpWr = totalExpWr + Double.valueOf(dataWnEfficientyTank.getExpWinRate()) * tankBattles;
//
// System.out.println( " tank title (1 bataille):" + dossierToJsonTanks.getTitle() + " totalExpFrag:" + totalExpFrag + " totalExpDmg: " + totalExpDmg + " totalExpSpot: " + totalExpSpot + " totalExpDef:" + totalExpDef + " totalExpWr: " + totalExpWr);
//avec ,toutes les batailles du tank
tankBattles = dossierToJsonTanks.get_15x15().battles;
totalExpFrag = totalExpFrag + Double.valueOf(dataWnEfficientyTank.getExpFrag()) * tankBattles;
totalExpDmg = totalExpDmg + Double.valueOf(dataWnEfficientyTank.getExpDamage()) * tankBattles;
totalExpSpot = totalExpSpot + Double.valueOf(dataWnEfficientyTank.getExpSpot()) * tankBattles;
totalExpDef = totalExpDef + Double.valueOf(dataWnEfficientyTank.getExpDef()) * tankBattles;
totalExpWr = totalExpWr + Double.valueOf(dataWnEfficientyTank.getExpWinRate()) * tankBattles;
//Then the actual account totals (your total dmg, frags, spots, def, win-rate) are divided by the total expected values to give the ratios.
double rFrag = dossierToJsonTanks.get_15x15().frags /totalExpFrag ;