1 | package de.uka.ipd.sdq.sensorframework.dao.file.entities; |
2 | |
3 | import java.util.AbstractList; |
4 | |
5 | import de.uka.ipd.sdq.sensorframework.entities.Measurement; |
6 | import de.uka.ipd.sdq.sensorframework.storage.lists.BackgroundMemoryList; |
7 | |
8 | public abstract class MeasurementListWithBackgroundStore<T> |
9 | extends AbstractList<Measurement> { |
10 | |
11 | protected final BackgroundMemoryList<T> measurementsStore; |
12 | protected final BackgroundMemoryList<Double> eventTimes; |
13 | |
14 | public MeasurementListWithBackgroundStore( |
15 | BackgroundMemoryList<Double> eventTimes, |
16 | BackgroundMemoryList<T> internalStore) { |
17 | super(); |
18 | this.eventTimes = eventTimes; |
19 | this.measurementsStore = internalStore; |
20 | } |
21 | |
22 | @Override |
23 | public abstract Measurement get(int i); |
24 | |
25 | @Override |
26 | public int size() { |
27 | return measurementsStore.size(); |
28 | } |
29 | } |