/Volumes/GoogleDrive/My Drive/IB CS Resources/Final CS IA/20058_Computer_Science_IA/src/coreGUI/SetOfQs.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 coreGUI;
 7 
 8 /**
 9  *
10  * @author 20058
11  */
12 public class SetOfQs {
13     //Attributes
14     private String setOfQsName = "Not set";
15     private int numberOfQ = -99;
16     private int numberOfChoices = -99;
17     private double initialScore = -99.99;
18     private double correctAnswerScore = -99.99;
19     private double incorrectAnswerDeduction = -99.99;
20     private String notes = "Not set";
21     
22    
23     public SetOfQs(){
24         
25     }
26     
27     public SetOfQs(String setOfQsName, int numberOfQ, int numberOfChoices
28     , double initialScore, double correctAnswerScore, double incorrectAnswerDeduction
29     , String notes){
30         this.setOfQsName = setOfQsName;
31         this.numberOfQ = numberOfQ;
32         this.numberOfChoices = numberOfChoices;
33         this.initialScore = initialScore;
34         this.correctAnswerScore = correctAnswerScore;
35         this.incorrectAnswerDeduction = incorrectAnswerDeduction;
36         this.notes = notes;
37     }
38     
39     //modifier methods
40     public void setSetOfQsName(String setOfQsName){
41         this.setOfQsName = setOfQsName;
42     }
43     
44     public void setNumberOfQ(int numberOfQ){
45         this.numberOfQ = numberOfQ;
46     }
47     
48     public void setNumberOfChoices(int numberOfChoices){
49         this.numberOfChoices = numberOfChoices;
50     }
51       
52     public void setInitialScore(double initialScore){
53         this.initialScore = initialScore;
54     }
55       
56     public void setCorrectAnswerScore(double correctAnswerScore){
57         this.correctAnswerScore = correctAnswerScore;
58     }
59         
60     public void setIncorrectAnswerDeduction(double incorrectAnswerDeduction){
61         this.incorrectAnswerDeduction = incorrectAnswerDeduction;
62     } 
63     
64     public void setNotes(String notes){
65         this.notes = notes;
66     }
67     
68     //accessor methods   
69     public String getSetOfQsName(){
70         return setOfQsName;
71     }
72     
73     public int getNumberOfQ(){
74         return numberOfQ;
75     }
76     
77     public int getNumberOfChoices(){
78         return numberOfChoices;
79     }
80     
81     public double getInitialScore(){
82         return initialScore;
83     }
84         
85     public double getCorrectAnswerScore(){
86         return correctAnswerScore;
87     }
88         
89     public double getIncorrectAnswerDeduction(){
90         return incorrectAnswerDeduction;
91     }
92         
93     public String getNotes(){
94         return notes;
95     }  
96     
97 }
98