/Users/16671/Desktop/IA Computer Science/IA - Winner/src/ia/winner/CardioLogs.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 ia.winner;
 7 
 8 /**
 9  *
10  * @author 16671
11  */
12 public class CardioLogs extends Logs {
13     private String cardioWorkout = "not set yet";
14     private int timeInput = -999;
15     private double distantInput = -999.99; 
16     
17     public CardioLogs(){
18         
19     }
20     
21     public CardioLogs(String date, String name, String cardioWorkout, int timeInput, double distantInput){
22         super(date, name);
23         this.cardioWorkout = cardioWorkout;
24         this.timeInput = timeInput;
25         this.distantInput = distantInput;
26     }
27     
28     
29     public CardioLogs(String cardioWorkout, int timeInput, double distantInput){
30      
31         this.cardioWorkout = cardioWorkout;
32         this.timeInput = timeInput;
33         this.distantInput = distantInput;
34     }
35     
36 
37     public void setCardioWorkout(String cardioWorkout){
38         this.cardioWorkout = cardioWorkout;
39     }
40     
41     public void setTimeInput(int timeInput){
42         this.timeInput = timeInput;
43     }
44     
45     public void setDistantInput(double distantInput){
46         this.distantInput = distantInput;
47     }
48     
49     public String getCardioWorkout(){
50         return cardioWorkout;
51     }
52     
53     public int getTimeInput(){
54         return timeInput;
55     }
56     
57     public double getDistantInput(){
58         return distantInput;
59     }
60 }
61 
62 
63