EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.sensorframework.filter]

COVERAGE SUMMARY FOR SOURCE FILE [WarmupFilteredCollection.java]

nameclass, %method, %block, %line, %
WarmupFilteredCollection.java0%   (0/1)0%   (0/2)0%   (0/35)0%   (0/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class WarmupFilteredCollection0%   (0/1)0%   (0/2)0%   (0/35)0%   (0/9)
WarmupFilteredCollection (Collection, long): void 0%   (0/1)0%   (0/7)0%   (0/3)
applyFilter (Collection): void 0%   (0/1)0%   (0/28)0%   (0/6)

1package de.uka.ipd.sdq.sensorframework.filter;
2 
3import java.util.Collection;
4import java.util.Iterator;
5 
6import de.uka.ipd.sdq.sensorframework.entities.Measurement;
7import de.uka.ipd.sdq.sensorframework.filter.AbstractMeasurementsCollection;
8 
9public class WarmupFilteredCollection extends
10                AbstractMeasurementsCollection {
11 
12        private long parameter;
13        
14        /**
15         * Initializes a new WarmupFilteredCollection with the given measurements and filter parameter.
16         * 
17         * @param originalMeasurements
18         *            The associated measurements.
19         * @param parameter The associated parameter
20         */
21        public WarmupFilteredCollection(
22                        Collection<Measurement> originalMeasurements, long parameter) {
23                super(originalMeasurements);
24                this.parameter = parameter;
25        }
26 
27        /** {@inheritDoc}
28         */
29        @Override
30        protected void applyFilter(Collection<Measurement> filteredItemsList) {
31                Iterator<Measurement> it = originalMeasurements.iterator();
32 
33                for (int i = 0; i < originalMeasurements.size()
34                                && i < parameter; i++) {
35                        Measurement m = it.next();
36                        filteredItemsList.add(m);
37                }
38        }
39}

[all classes][de.uka.ipd.sdq.sensorframework.filter]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov