blob: 8ac45c9f086c1448d51cf7f640ae8277e6ba3b07 [file] [log] [blame]
package net.onrc.onos.intent;
/**
* @author Toshio Koide (t-koide@onlab.us)
*/
public class IntentOperation {
public enum Operator {
/**
* Add new intent specified by intent field
*/
ADD,
/**
* Remove existing intent specified by intent field.
* The specified intent should be an instance of Intent class (not a child class)
*/
REMOVE,
}
public IntentOperation() {}
public IntentOperation(Operator operator, Intent intent) {
this.operator = operator;
this.intent = intent;
}
public Operator operator;
public Intent intent;
}