Revision 104,
704 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 | /** |
---|
5 | * Class representing data links between two directly connected nodes. |
---|
6 | * |
---|
7 | * @author Bartosz Belter <bartosz.belter at man.poznan.pl> |
---|
8 | * |
---|
9 | */ |
---|
10 | public class DataLink extends VirtualLink { |
---|
11 | |
---|
12 | /** |
---|
13 | * The theoretical link capacity |
---|
14 | */ |
---|
15 | long bandwidth; |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | public DataLink(String id, Node endpoint1, Node endpoint2, long bandwidth) { |
---|
20 | super(id, endpoint1, endpoint2); |
---|
21 | this.bandwidth = bandwidth; |
---|
22 | } |
---|
23 | |
---|
24 | |
---|
25 | /** |
---|
26 | * @return the bandwidth |
---|
27 | */ |
---|
28 | public long getBandwidth() { |
---|
29 | return bandwidth; |
---|
30 | } |
---|
31 | |
---|
32 | |
---|
33 | /** |
---|
34 | * @param bandwidth the bandwidth to set |
---|
35 | */ |
---|
36 | public void setBandwidth(long bandwidth) { |
---|
37 | this.bandwidth = bandwidth; |
---|
38 | } |
---|
39 | |
---|
40 | |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.