/Users/e1813314/Desktop/IA Final Submission 000307-0066/Product/Athletics Awards Netbeans Project/src/iacomsci_allan/Roster.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package iacomsci_allan;
 7 
 8 import java.util.ArrayList;
 9 
10 /**
11  *
12  * @author 13314
13  */
14 public class Roster {
15 
16     //Constructing each variable
17     private ArrayList<Player> aList = new ArrayList<>();
18     //Variables equated to abnormal values to indicate that they haven't been set
19     private String sport = "Not set yet";
20     private int season = -99;
21     private int year = -99;
22     private boolean isVarsity = false;
23     //Male is 1, female is 2
24     private int gender = -99;
25 
26     //Constructing the roster data type
27     public Roster(ArrayList<Player> aList, String sport, int season, int year, boolean isVarsity, int gender) {
28         //Equating to the parameters/arguments
29         this.aList = aList;
30         this.sport = sport;
31         this.season = season;
32         this.year = year;
33         this.isVarsity = isVarsity;
34         this.gender = gender;
35     }
36 
37     public Roster() {
38 
39     }
40 
41     //Gets for each attribute of the roster data type
42     public ArrayList<Player> getArrayListOfPlayers() {
43         return aList;
44     }
45 
46     public String getSport() {
47         return sport;
48     }
49 
50     public int getSeason() {
51         return season;
52     }
53 
54     public int getYear() {
55         return year;
56     }
57 
58     public boolean getIsVarsity() {
59         return isVarsity;
60     }
61 
62     public int getGender() {
63         return gender;
64     }
65 
66 }
67