mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Added docstrings to classes
Tags: #docs
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,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
|
||||||
|
|||||||
Reference in New Issue
Block a user