blob: 2b4946fa78c8755f44a54ba1cfdbb24b0db0dae0 [file] [log] [blame]
Jonathan Hartaa380972014-04-03 10:24:46 -07001package net.onrc.onos.core.intent.runtime;
Toshio Koide066506e2014-02-20 19:52:09 -08002
3import java.util.HashMap;
TeruUf9111652014-05-14 23:10:35 -07004import java.util.HashSet;
5import java.util.Map;
6import java.util.Map.Entry;
7import java.util.Set;
Toshio Koide066506e2014-02-20 19:52:09 -08008
Jonathan Hartaa380972014-04-03 10:24:46 -07009import net.onrc.onos.core.intent.Intent.IntentState;
TeruUf9111652014-05-14 23:10:35 -070010public class IntentStateList {
11 protected Map<String, IntentState> intentMap;
12 public Set<Long> domainSwitchDpids;
Toshio Koide066506e2014-02-20 19:52:09 -080013
TeruUf9111652014-05-14 23:10:35 -070014 public IntentStateList() {
15 intentMap = new HashMap<String, IntentState>();
16 domainSwitchDpids = new HashSet<Long>();
17 }
18
19 public IntentState put(String id, IntentState state) {
20 return intentMap.put(id, state);
21 }
22
23 public Set<Entry<String, IntentState>> entrySet() {
24 return intentMap.entrySet();
25 }
26
27 public void clear() {
28 intentMap.clear();
29 }
Toshio Koide066506e2014-02-20 19:52:09 -080030}