/** * Update positionReport based on the new player performance * * @param pp */ private void updatePositionDetails(PlayerPerformance pp) { PositionReport report = (PositionReport) positionReports.get("" + pp.getPositionCode()); if (report == null) { report = new PositionReport(pp); positionReports.put("" + pp.getPositionCode(), report); } report.addPerformance(pp); }
/** * Update player appearance of 1 * * @param pp */ private void updatePlayerAppearance(PlayerPerformance pp) { String name = "" + pp.getSpielerName(); name = name.replaceAll(" ", ""); PlayerAppearance playerApperance = (PlayerAppearance) players.get(name); if (playerApperance == null) { playerApperance = new PlayerAppearance(); playerApperance.setPlayerId(pp.getSpielerId()); playerApperance.setName(pp.getSpielerName()); playerApperance.setStatus(pp.getStatus()); players.put(name, playerApperance); } playerApperance.addApperarence(); }