/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/MyFirstGUIProject - Daniel/src/main/java/com/mycompany/myfirstguiproject/Song.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 com.mycompany.myfirstguiproject;
 7 
 8 import java.util.ArrayList;
 9 
10 /**
11  *
12  * @author 16939
13  */
14 public class Song {
15     
16     private String songName = "not set yet";
17     private String movieName = "not set yet";
18     private int songBPM = -999;
19     private String dateOfPerformance = "not set yet";
20     private ArrayList<Student> completedStudents = new ArrayList<Student>();
21     public static Song song = new Song();
22     
23     public Song(){
24     
25     }
26     
27     public Song(String songName, String movieName, int songBPM, String dateOfPerformance, ArrayList<Student> completedStudents){
28         this.songName = songName;
29         this.movieName = movieName;
30         this.songBPM = songBPM;
31         this.dateOfPerformance = dateOfPerformance;
32         this.completedStudents = completedStudents;
33     }
34     
35     public String getSongName(){
36         return songName;
37     }
38     public String getMovieName(){
39         return movieName;
40     }
41     public int getSongBPM(){
42         return songBPM;
43     }
44     public ArrayList<Student> getCompletedStudents(){
45         return completedStudents;
46     }
47     public String getDateOfPerformance(){
48         return dateOfPerformance;
49     }
50     public void setSongName(String songName){
51         this.songName = songName;
52     }
53     public void setMovieName(String movieName){
54         this.movieName = movieName;
55     }
56     public void addCompletedStudents(Student student, int s){
57         MainGUI.songs.get(s).completedStudents.add(student);
58     }
59     public void setSongBPM(int songBPM){
60         this.songBPM = songBPM;
61     }
62     public void setDateOfPerformance(String dateOfPerformance){
63         this.dateOfPerformance = dateOfPerformance;
64     }
65 }
66