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 | |
| 13 | public ConstrainedShortestPathIntent( |
| 14 | Port srcPort, MACAddress srcMac, |
| 15 | Port dstPort, MACAddress dstMac, |
| 16 | Double bandwidth) { |
| 17 | super(srcPort, srcMac, dstPort, dstMac); |
| 18 | this.bandwidth = bandwidth; |
| 19 | } |
| 20 | |
| 21 | public ConstrainedShortestPathIntent(NetworkGraph graph, |
| 22 | Long srcSwitch, Long srcPort, long srcMac, |
| 23 | Long dstSwitch, Long dstPort, long dstMac, |
| 24 | Double bandwidth) { |
| 25 | super(graph, srcSwitch, srcPort, srcMac, dstSwitch, dstPort, dstMac); |
| 26 | this.bandwidth = bandwidth; |
| 27 | } |
| 28 | |
| 29 | public Double getBandwidth() { |
| 30 | return bandwidth; |
| 31 | } |
| 32 | } |