Revision 1553,
977 bytes
checked in by wojtekp, 9 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package schedframe.resources.computing.profiles.load; |
---|
2 | |
---|
3 | public class TimestampUtilization implements Comparable<TimestampUtilization>{ |
---|
4 | |
---|
5 | long startTime; |
---|
6 | long endTime; |
---|
7 | double utlization; |
---|
8 | |
---|
9 | public TimestampUtilization(long startTime, long endTime, double utlization) { |
---|
10 | super(); |
---|
11 | this.startTime = startTime; |
---|
12 | this.endTime = endTime; |
---|
13 | this.utlization = utlization; |
---|
14 | } |
---|
15 | |
---|
16 | public double getUtlization() { |
---|
17 | return utlization; |
---|
18 | } |
---|
19 | public void setUtlization(double utlization) { |
---|
20 | this.utlization = utlization; |
---|
21 | } |
---|
22 | |
---|
23 | @Override |
---|
24 | public int compareTo(TimestampUtilization arg0) { |
---|
25 | if(this.getStartTime() < arg0.getStartTime()) |
---|
26 | return 1; |
---|
27 | else if (this.getStartTime() > arg0.getStartTime()) |
---|
28 | return -1; |
---|
29 | else |
---|
30 | return 0; |
---|
31 | } |
---|
32 | public long getStartTime() { |
---|
33 | return startTime; |
---|
34 | } |
---|
35 | public void setStartTime(long startTime) { |
---|
36 | this.startTime = startTime; |
---|
37 | } |
---|
38 | public long getEndTime() { |
---|
39 | return endTime; |
---|
40 | } |
---|
41 | public void setEndTime(long endTime) { |
---|
42 | this.endTime = endTime; |
---|
43 | } |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.