Revision 104,
990 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package schedframe.net.pce.topology; |
---|
2 | |
---|
3 | /** |
---|
4 | * Class representing a Time-Value couple. |
---|
5 | * |
---|
6 | * @author Bartosz Belter <bartosz.belter at man.poznan.pl> |
---|
7 | * |
---|
8 | */ |
---|
9 | public class AvailableBandwidth { |
---|
10 | |
---|
11 | /** |
---|
12 | * timestamp - the number of milliseconds since January 1, 1970, 00:00:00 GMT. |
---|
13 | */ |
---|
14 | long timestamp; |
---|
15 | |
---|
16 | /** |
---|
17 | * available bandwidth |
---|
18 | */ |
---|
19 | long value; |
---|
20 | |
---|
21 | public AvailableBandwidth(long timestamp, long value) { |
---|
22 | super(); |
---|
23 | this.timestamp = timestamp; |
---|
24 | this.value = value; |
---|
25 | } |
---|
26 | |
---|
27 | /** |
---|
28 | * @return the timestamp |
---|
29 | */ |
---|
30 | public long getTimestamp() { |
---|
31 | return timestamp; |
---|
32 | } |
---|
33 | |
---|
34 | /** |
---|
35 | * @param timestamp the timestamp to set |
---|
36 | */ |
---|
37 | public void setTimestamp(long timestamp) { |
---|
38 | this.timestamp = timestamp; |
---|
39 | } |
---|
40 | |
---|
41 | /** |
---|
42 | * @return the value of available bandwidth |
---|
43 | */ |
---|
44 | public long getValue() { |
---|
45 | return value; |
---|
46 | } |
---|
47 | |
---|
48 | /** |
---|
49 | * @param value the value of available bandwidth to set |
---|
50 | */ |
---|
51 | public void setValue(long value) { |
---|
52 | this.value = value; |
---|
53 | } |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.