summaryrefslogtreecommitdiff
path: root/src/model/Course.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Course.java')
-rw-r--r--src/model/Course.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/model/Course.java b/src/model/Course.java
new file mode 100644
index 0000000..5f8c43d
--- /dev/null
+++ b/src/model/Course.java
@@ -0,0 +1,45 @@
+package design.model;
+
+import java.util.List;
+
+public class Course {
+ private final String name;
+ private final int difficultyRating;
+ private final String location;
+ private final int holeCount;
+ private final int totalPar;
+ private final List<Hole> holes;
+
+ public Course(String name, int difficultyRating, String location, int holeCount, int totalPar, List<Hole> holes) {
+ this.name = name;
+ this.difficultyRating = difficultyRating;
+ this.location = location;
+ this.holeCount = holeCount;
+ this.totalPar = totalPar;
+ this.holes = holes;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public int getDifficultyRating() {
+ return difficultyRating;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public int getHoleCount() {
+ return holeCount;
+ }
+
+ public int getTotalPar() {
+ return totalPar;
+ }
+
+ public List<Hole> getHoles() {
+ return holes;
+ }
+}