blob: 1e025b54ec753f52312338faaf1916a602529e30 [file] [log] [blame]
Jonathan Hartaa380972014-04-03 10:24:46 -07001package net.onrc.onos.core.intent;
Toshio Koidead17d5e2014-02-11 11:36:02 -08002
Toshio Koidead17d5e2014-02-11 11:36:02 -08003/**
4 * @author Toshio Koide (t-koide@onlab.us)
5 */
6public class ConstrainedShortestPathIntent extends ShortestPathIntent {
Ray Milkey269ffb92014-04-03 14:43:30 -07007 protected double bandwidth;
Toshio Koidead17d5e2014-02-11 11:36:02 -08008
Ray Milkey269ffb92014-04-03 14:43:30 -07009 /**
Ray Milkeyb41100a2014-04-10 10:42:15 -070010 * Default constructor for Kryo deserialization.
Ray Milkey269ffb92014-04-03 14:43:30 -070011 */
12 protected ConstrainedShortestPathIntent() {
13 }
Toshio Koidec406e792014-02-14 16:52:42 -080014
Ray Milkey269ffb92014-04-03 14:43:30 -070015 public ConstrainedShortestPathIntent(String id,
16 long srcSwitch, long srcPort, long srcMac,
17 long dstSwitch, long dstPort, long dstMac,
18 double bandwidth) {
19 super(id, srcSwitch, srcPort, srcMac, dstSwitch, dstPort, dstMac);
20 this.bandwidth = bandwidth;
21 }
Toshio Koidead17d5e2014-02-11 11:36:02 -080022
Ray Milkey269ffb92014-04-03 14:43:30 -070023 public double getBandwidth() {
24 return bandwidth;
25 }
Toshio Koidead17d5e2014-02-11 11:36:02 -080026}