Toshio Koide | ad17d5e | 2014-02-11 11:36:02 -0800 | [diff] [blame] | 1 | package net.onrc.onos.intent; |
| 2 | |
| 3 | import net.floodlightcontroller.util.MACAddress; |
| 4 | import net.onrc.onos.ofcontroller.networkgraph.NetworkGraph; |
| 5 | import net.onrc.onos.ofcontroller.networkgraph.Port; |
| 6 | |
| 7 | /** |
| 8 | * @author Toshio Koide (t-koide@onlab.us) |
| 9 | */ |
| 10 | public class ConstrainedShortestPathIntent extends ShortestPathIntent { |
| 11 | protected Double bandwidth; |
| 12 | |
Toshio Koide | 13986d1 | 2014-02-11 20:25:32 -0800 | [diff] [blame^] | 13 | public ConstrainedShortestPathIntent(String id, |
Toshio Koide | ad17d5e | 2014-02-11 11:36:02 -0800 | [diff] [blame] | 14 | Port srcPort, MACAddress srcMac, |
| 15 | Port dstPort, MACAddress dstMac, |
| 16 | Double bandwidth) { |
Toshio Koide | 13986d1 | 2014-02-11 20:25:32 -0800 | [diff] [blame^] | 17 | super(id, srcPort, srcMac, dstPort, dstMac); |
Toshio Koide | ad17d5e | 2014-02-11 11:36:02 -0800 | [diff] [blame] | 18 | this.bandwidth = bandwidth; |
| 19 | } |
| 20 | |
Toshio Koide | 13986d1 | 2014-02-11 20:25:32 -0800 | [diff] [blame^] | 21 | public ConstrainedShortestPathIntent(NetworkGraph graph, String id, |
| 22 | long srcSwitch, long srcPort, long srcMac, |
| 23 | long dstSwitch, long dstPort, long dstMac, |
Toshio Koide | ad17d5e | 2014-02-11 11:36:02 -0800 | [diff] [blame] | 24 | Double bandwidth) { |
Toshio Koide | 13986d1 | 2014-02-11 20:25:32 -0800 | [diff] [blame^] | 25 | super(graph, id, srcSwitch, srcPort, srcMac, dstSwitch, dstPort, dstMac); |
Toshio Koide | ad17d5e | 2014-02-11 11:36:02 -0800 | [diff] [blame] | 26 | this.bandwidth = bandwidth; |
| 27 | } |
| 28 | |
| 29 | public Double getBandwidth() { |
| 30 | return bandwidth; |
| 31 | } |
| 32 | } |