source: xssim/src/schedframe/net/pce/topology/ExtendedVirtualLink.java @ 104

Revision 104, 711 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.net.pce.topology;
2
3
4public class ExtendedVirtualLink extends VirtualLink {
5
6        protected long currentBandwidth;
7
8        public ExtendedVirtualLink(String id, Node endpoint1, Node endpoint2) {
9                super(id, endpoint1, endpoint2);
10                currentBandwidth = 0;
11        }
12
13        public void setCurrentBandwidth(long bandwidth) {
14                this.currentBandwidth = bandwidth;
15        }
16
17        public long getCurrentBandwidth() {
18                return currentBandwidth;
19        }
20
21        /*
22         * public static void main(String []args){ Node node1 = new Node("node1",
23         * NodeType.GRID_SITE); Node node2 = new Node("node2", NodeType.GRID_SITE);
24         * ExtendedVirtualLink evl = new ExtendedVirtualLink("link", node1, node2);
25         * System.out.println(evl.getCalendar()); }
26         */
27}
Note: See TracBrowser for help on using the repository browser.