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

COVERAGE SUMMARY FOR SOURCE FILE [MaxMeasurementsStopCondition.java]

nameclass, %method, %block, %line, %
MaxMeasurementsStopCondition.java0%   (0/1)0%   (0/2)0%   (0/31)0%   (0/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MaxMeasurementsStopCondition0%   (0/1)0%   (0/2)0%   (0/31)0%   (0/6)
MaxMeasurementsStopCondition (SimuComModel): void 0%   (0/1)0%   (0/15)0%   (0/5)
check (): boolean 0%   (0/1)0%   (0/16)0%   (0/1)

1package de.uka.ipd.sdq.simucomframework;
2 
3import de.uka.ipd.sdq.simucomframework.model.SimuComModel;
4import de.uka.ipd.sdq.simulation.abstractsimengine.SimCondition;
5 
6public class MaxMeasurementsStopCondition implements SimCondition {
7 
8        private long max_measurements = 1000;
9        private SimuComModel myModel; 
10        
11        public MaxMeasurementsStopCondition(SimuComModel owner) {
12                this.myModel = owner;
13                max_measurements = myModel.getConfiguration().getMaxMeasurementsCount();
14        }
15 
16        @Override
17        public boolean check() {
18                return (max_measurements > 0) && (myModel.getMainMeasurementsCount()>=max_measurements);
19        }
20}

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