Added and fixed docstrings

Tags: #docs
This commit is contained in:
Michael Rausch
2017-03-08 22:53:22 +13:00
parent 0a86dde7e4
commit d10c6a54f5
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ public class App {
return null;
}
// Add boats to the race
for (int i = 0; i < numberOfBoats; i++) {
race.addBoat(new Boat(boatNames.get(i), (Double) (teams.get(i).get("velocity"))));
}
+3
View File
@@ -12,6 +12,9 @@ public class Race {
private long startTime = 0;
private double timeScale = 1;
/**
* Race class containing the boats and legs in the race
*/
public Race() {
this.boats = new ArrayList<Boat>();
this.legs = new ArrayList<Leg>();