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

COVERAGE SUMMARY FOR SOURCE FILE [FibonacciDemand.java]

nameclass, %method, %block, %line, %
FibonacciDemand.java0%   (0/1)0%   (0/6)0%   (0/47)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FibonacciDemand0%   (0/1)0%   (0/6)0%   (0/47)0%   (0/15)
FibonacciDemand (): void 0%   (0/1)0%   (0/8)0%   (0/2)
cleanup (): void 0%   (0/1)0%   (0/1)0%   (0/1)
fibonacci (double): long 0%   (0/1)0%   (0/28)0%   (0/8)
getName (): String 0%   (0/1)0%   (0/2)0%   (0/1)
getStrategysResource (): ResourceTypeEnum 0%   (0/1)0%   (0/2)0%   (0/1)
run (long): void 0%   (0/1)0%   (0/6)0%   (0/2)

1package de.uka.ipd.sdq.measurement.strategies.activeresource.cpu;
2 
3import de.uka.ipd.sdq.measurement.strategies.activeresource.AbstractDemandStrategy;
4import de.uka.ipd.sdq.measurement.strategies.activeresource.ResourceTypeEnum;
5 
6public class FibonacciDemand extends AbstractDemandStrategy {
7 
8        public FibonacciDemand() {
9                super(-3,0,2,10000,5000);
10        }
11 
12        private long fibonacci(double iterationCount) {
13                long i1 = 1;
14                long i2 = 1;
15                long i3 = 0;
16                for (long i = 0; i < iterationCount; i++) {
17                        i3 = i1 + i2;
18                        i2 = i1;
19                        i1 = i3;
20                }
21                return i3;
22        }
23 
24        @Override
25        public void run(long initial) {
26                fibonacci(initial);
27        }
28 
29        @Override
30        public ResourceTypeEnum getStrategysResource() {
31                return ResourceTypeEnum.CPU;
32        }
33 
34        @Override
35        public String getName() {
36                return "Fibonacci";
37        }
38        
39        @Override
40        public void cleanup() {
41                // Do nothing.
42        }
43 
44}

[all classes][de.uka.ipd.sdq.measurement.strategies.activeresource.cpu]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov