blob: 5f9154f61673e990f692f35e234d13c97c09e868 [file] [log] [blame]
Jonathan Hartaa380972014-04-03 10:24:46 -07001package net.onrc.onos.core.intent;
Toshio Koide4f308732014-02-18 15:19:48 -08002
Toshio Koidedf2eab92014-02-20 11:24:59 -08003import java.util.LinkedList;
Toshio Koide4f308732014-02-18 15:19:48 -08004
Toshio Koided9fa2a82014-02-19 17:35:18 -08005/**
Brian O'Connora581b9d2014-06-15 23:32:36 -07006 * This class is simply a list of IntentOperations. It exists so
7 * that IntentOperations can be serialized for notifications and persistence.
Toshio Koided9fa2a82014-02-19 17:35:18 -08008 */
Toshio Koidedf2eab92014-02-20 11:24:59 -08009public class IntentOperationList extends LinkedList<IntentOperation> {
Ray Milkey269ffb92014-04-03 14:43:30 -070010 private static final long serialVersionUID = -3894081461861052610L;
Toshio Koided9fa2a82014-02-19 17:35:18 -080011
Brian O'Connora581b9d2014-06-15 23:32:36 -070012 /**
13 * Add an operator and Intent to the list.
14 *
15 * @param op operator for the Intent
16 * @param intent the Intent
17 * @return true
18 */
Ray Milkey269ffb92014-04-03 14:43:30 -070019 public boolean add(IntentOperation.Operator op, Intent intent) {
20 return add(new IntentOperation(op, intent));
21 }
Toshio Koide4f308732014-02-18 15:19:48 -080022}