Toshio Koide | ad17d5e | 2014-02-11 11:36:02 -0800 | [diff] [blame] | 1 | package net.onrc.onos.intent; |
| 2 | |
| 3 | import net.onrc.onos.ofcontroller.networkgraph.Path; |
| 4 | |
| 5 | /** |
| 6 | * @author Toshio Koide (t-koide@onlab.us) |
| 7 | */ |
| 8 | public class PathIntent extends Intent { |
| 9 | protected Path path; |
| 10 | protected Double bandwidth; |
| 11 | protected Intent parentIntent; |
| 12 | |
| 13 | /** |
| 14 | * |
| 15 | * @param graph |
| 16 | * @param path |
| 17 | * @param bandwidth bandwidth which should be allocated for the path. |
| 18 | * If null, it means no intent for bandwidth allocation (best effort). |
| 19 | * @param parentIntent parent intent. If null, it means this is root intent. |
| 20 | */ |
| 21 | public PathIntent(Path path, Double bandwidth, Intent parentIntent) { |
| 22 | this.path = path; |
| 23 | this.bandwidth = bandwidth; |
| 24 | this.parentIntent = parentIntent; |
| 25 | } |
| 26 | |
| 27 | public Double getBandwidth() { |
| 28 | return bandwidth; |
| 29 | } |
| 30 | |
| 31 | public Path getPath() { |
| 32 | return path; |
| 33 | } |
| 34 | |
| 35 | public Intent getParentIntent() { |
| 36 | return parentIntent; |
| 37 | } |
| 38 | } |