Added docstrings to classes

Tags: #docs
This commit is contained in:
Michael Rausch
2017-03-08 23:02:45 +13:00
parent d3b71c21e5
commit d33a88d313
5 changed files with 16 additions and 1 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
package seng302; package seng302;
/**
* Represents a boat in the race.
*/
public class Boat { public class Boat {
private String teamName; // The name of the team, this is also the name of the boat private String teamName; // The name of the team, this is also the name of the boat
+4
View File
@@ -3,6 +3,10 @@ package seng302;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
/**
* Event class containing the time of specific event, related team/boat, and
* event location such as leg.
*/
public class Event { public class Event {
private long time; // Time the event occurs private long time; // Time the event occurs
+3
View File
@@ -1,5 +1,8 @@
package seng302; package seng302;
/**
* Represents the leg of a race.
*/
public class Leg { public class Leg {
private int heading; private int heading;
private int distance; private int distance;
+3
View File
@@ -2,6 +2,9 @@ package seng302;
import java.util.ArrayList; import java.util.ArrayList;
/**
* Represents the marker at the beginning of a leg
*/
class Marker{ class Marker{
private String name; private String name;
private ArrayList<Boat> boatOrder; private ArrayList<Boat> boatOrder;
+3
View File
@@ -3,6 +3,9 @@ package seng302;
import java.lang.reflect.Array; import java.lang.reflect.Array;
import java.util.*; import java.util.*;
/**
* Race class containing the boats and legs in the race
*/
public class Race { public class Race {
private ArrayList<Boat> boats; // The boats in the race private ArrayList<Boat> boats; // The boats in the race
private ArrayList<Leg> legs; // The legs in the race private ArrayList<Leg> legs; // The legs in the race