blob: b65917938401cf726f6cb7d22ca624cf0410ce64 [file] [log] [blame]
Toshio Koidead17d5e2014-02-11 11:36:02 -08001package net.onrc.onos.intent;
2
3import net.floodlightcontroller.util.MACAddress;
4import net.onrc.onos.ofcontroller.networkgraph.NetworkGraph;
5import net.onrc.onos.ofcontroller.networkgraph.Port;
6
7/**
8 * @author Toshio Koide (t-koide@onlab.us)
9 */
10public class ConstrainedShortestPathIntent extends ShortestPathIntent {
11 protected Double bandwidth;
12
Toshio Koide13986d12014-02-11 20:25:32 -080013 public ConstrainedShortestPathIntent(String id,
Toshio Koidead17d5e2014-02-11 11:36:02 -080014 Port srcPort, MACAddress srcMac,
15 Port dstPort, MACAddress dstMac,
16 Double bandwidth) {
Toshio Koide13986d12014-02-11 20:25:32 -080017 super(id, srcPort, srcMac, dstPort, dstMac);
Toshio Koidead17d5e2014-02-11 11:36:02 -080018 this.bandwidth = bandwidth;
19 }
20
Toshio Koide13986d12014-02-11 20:25:32 -080021 public ConstrainedShortestPathIntent(NetworkGraph graph, String id,
22 long srcSwitch, long srcPort, long srcMac,
23 long dstSwitch, long dstPort, long dstMac,
Toshio Koidead17d5e2014-02-11 11:36:02 -080024 Double bandwidth) {
Toshio Koide13986d12014-02-11 20:25:32 -080025 super(graph, id, srcSwitch, srcPort, srcMac, dstSwitch, dstPort, dstMac);
Toshio Koidead17d5e2014-02-11 11:36:02 -080026 this.bandwidth = bandwidth;
27 }
28
29 public Double getBandwidth() {
30 return bandwidth;
31 }
32}