Toshio Koide | b609b3b | 2014-02-14 18:25:52 -0800 | [diff] [blame] | 1 | package net.onrc.onos.intent; |
| 2 | |
| 3 | /** |
| 4 | * @author Toshio Koide (t-koide@onlab.us) |
| 5 | */ |
| 6 | public class IntentOperation { |
| 7 | public enum Operator { |
| 8 | /** |
| 9 | * Add new intent specified by intent field |
| 10 | */ |
| 11 | ADD, |
| 12 | |
| 13 | /** |
| 14 | * Remove existing intent specified by intent field. |
| 15 | * The specified intent should be an instance of Intent class (not a child class) |
| 16 | */ |
| 17 | REMOVE, |
| 18 | } |
| 19 | |
| 20 | public IntentOperation() {} |
| 21 | |
| 22 | public IntentOperation(Operator operator, Intent intent) { |
| 23 | this.operator = operator; |
| 24 | this.intent = intent; |
| 25 | } |
| 26 | |
| 27 | public Operator operator; |
| 28 | public Intent intent; |
| 29 | } |