/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/IBCSIA21296 Isaac/src/fitnesstracker/MuscleCategory.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 fitnesstracker;
 7 
 8 /**
 9  *
10  * @author 21296
11  */
12 public class MuscleCategory extends Workout{
13     private String name = "not set yet";
14     private String intensity = "not set yet";
15     
16     public MuscleCategory(){
17     
18     }
19 
20     public MuscleCategory(String name, String intensity){
21         this.name = name;
22         //this.intensity = intensity;
23         if(intensity.equals("Light")){
24             this.intensity = "1";
25         }else if(intensity.equals("Low")){
26             this.intensity = "2";
27         }else if(intensity.equals("Moderate")){
28             this.intensity = "3";
29         }else if(intensity.equals("Vigorous")){
30             this.intensity = "4";
31         }else if(intensity.equals("Maximum Intensity")){
32             this.intensity = "5";
33         }
34     
35     }
36 
37 
38 
39     public String getName(){
40         return name;
41         //return null;
42     
43     }
44     
45     public String getIntensity(){
46         return intensity;
47         //return null;
48     
49     }
50     
51     
52 
53     
54     
55 
56     
57 }    
58