e6be0a401786ba90cb8d0fe12ea7b79780250cf0
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / devicemanager / impl / src / main / java / org / opendaylight / mwtn / base / netconf / AllPm.java
1 /**
2  *
3  */
4 package org.opendaylight.mwtn.base.netconf;
5
6 import java.util.ArrayList;
7 import java.util.List;
8
9 import org.opendaylight.mwtn.performancemanager.impl.database.types.EsHistoricalPerformance15Minutes;
10 import org.opendaylight.mwtn.performancemanager.impl.database.types.EsHistoricalPerformance24Hours;
11
12 /**
13  * @author herbert
14  *
15  */
16
17 public class AllPm {
18
19     static AllPm EMPTY = new AllPm();
20
21     private final List<EsHistoricalPerformance15Minutes> pm15 = new ArrayList<>();
22     private final List<EsHistoricalPerformance24Hours> pm24 = new ArrayList<>();
23
24     void add(EsHistoricalPerformance15Minutes pm) {
25         pm15.add(pm);
26     }
27
28     void add(EsHistoricalPerformance24Hours pm) {
29         pm24.add(pm);
30     }
31
32     public List<EsHistoricalPerformance15Minutes> getPm15() {
33         return pm15;
34     }
35
36     public List<EsHistoricalPerformance24Hours> getPm24() {
37         return pm24;
38     }
39
40     public Object size() {
41         return pm15.size()+pm24.size();
42     }
43
44 }