Skip to content

Commit

Permalink
Merge pull request #170 from X-Brast/fbStat2
Browse files Browse the repository at this point in the history
Translate statistics files in French
  • Loading branch information
texx94 authored May 22, 2019
2 parents 56e8d98 + 24d8302 commit e68d95d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/main/java/ch/heigvd/sitr/statistics/Statistics.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@ private void writeGeneralStatistics(Scenario scenario, String fileNameVehicule)

if (file.length() == 0) {
// Add header to CSV file
String head = "Date" + separator;
head += "Duration" + separator;
head += "Scenario name" + separator;
head += "Number of vehicles" + separator;
head += "Waiting time" + separator;
head += "Number of accidents" + separator;
head += "Network occupancy" + separator;
head += "Link to vehicle statistics\n";
String head = "Date de création des statistiques" + separator;
head += "Durée de la simulation" + separator;
head += "Nom du scénario" + separator;
head += "Nombre de véhicules" + separator;
head += "Temps d'attente" + separator;
head += "Nombre d'accidents" + separator;
head += "Taux d'occupation du réseau" + separator;
head += "Nom du fichier de statistiques des véhicules\n";
writer.append(head);
}

Expand Down Expand Up @@ -321,10 +321,10 @@ private void writeVehicleStatistics(String fileName) {
Writer writer = getWriter(file);

// Add header to CSV file
String head = "Vehicle number" + separator;
head += "Controller Type" + separator;
head += "Waiting time" + separator;
head += "Number of accidents\n";
String head = "Numéro du véhicule" + separator;
head += "Type du contrôleur" + separator;
head += "Temps d'attente" + separator;
head += "Nombre d'accidents\n";
writer.append(head);

// Adds the information of each vehicle to the file
Expand Down

0 comments on commit e68d95d

Please sign in to comment.