OOP2

ClockUpdate.java

1
package be.uhasselt.oo2.mvc.app.clock;
2
3
/**
4
 * Represent a clock update including all necessary information.
5
 * @author jvermeulen
6
 */
7
public class ClockUpdate {
8
    private int mHour;
9
    private int mMinute;
10
    private int mSecond;
11
    private boolean mIsRunning; 
12
    
13
    
14
    ClockUpdate(int hour, int minute, int second, boolean isRunning) {
15
        mHour = hour;
16
        mMinute = minute;
17
        mSecond = second;
18
        mIsRunning = isRunning;
19
    }
20
21
    /**
22
     * @return the mHour
23
     */
24
    public int getHour() {
25
        return mHour;
26
    }
27
28
    /**
29
     * @param hour the hour to set
30
     */
31
    public void setHour(int hour) {
32
        this.mHour = hour;
33
    }
34
35
    /**
36
     * @return the mMinute
37
     */
38
    public int getMinute() {
39
        return mMinute;
40
    }
41
42
    /**
43
     * @param minute the minute to set
44
     */
45
    public void setMinute(int minute) {
46
        this.mMinute = minute;
47
    }
48
49
    /**
50
     * @return the mSecond
51
     */
52
    public int getSecond() {
53
        return mSecond;
54
    }
55
56
    /**
57
     * @param second the second to set
58
     */
59
    public void setSecond(int second) {
60
        this.mSecond = second;
61
    }
62
63
    /**
64
     * @return the mIsRunning
65
     */
66
    public boolean isRunning() {
67
        return mIsRunning;
68
    }
69
70
    /**
71
     * @param isRunning the isRunning to set
72
     */
73
    public void setRunning(boolean isRunning) {
74
        this.mIsRunning = isRunning;
75
    }
76
    
77
}
78