public static void logMissionEndRewards ( Reward reward ) throws JAXBException { if ( ! logging || ! isScoring ( ) ) return ; if ( scoringPolicy == LOG_EACH_REWARD ) { String rewardString = SchemaHelper . serialiseObject ( reward , Reward . class ) ; log ( "<MissionEnd>" + rewardString + "</MissionEnd>" ) ; } else if ( scoringPolicy == TOTAL_ALL_REWARDS || scoringPolicy == TOTAL_WITH_MISSION_XML ) { List < Reward . Value > values = reward . getValue ( ) ; for ( Reward . Value v : values ) { totalRewards += v . getValue ( ) . doubleValue ( ) ; } log ( "<MissionTotal>" + totalRewards + "</MissionTotal>" ) ; } totalRewards = 0.0 ; }
Log mission end rewards .