EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][default package]

COVERAGE SUMMARY FOR SOURCE FILE [test.java]

nameclass, %method, %block, %line, %
test.java0%   (0/1)0%   (0/2)0%   (0/47)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class test0%   (0/1)0%   (0/2)0%   (0/47)0%   (0/12)
main (String []): void 0%   (0/1)0%   (0/44)0%   (0/11)
test (): void 0%   (0/1)0%   (0/3)0%   (0/1)

1import org.apache.log4j.BasicConfigurator;
2import org.apache.log4j.Level;
3import org.apache.log4j.Logger;
4 
5import de.uka.ipd.sdq.measurement.strategies.activeresource.AbstractDemandStrategy;
6import de.uka.ipd.sdq.measurement.strategies.activeresource.DegreeOfAccuracyEnum;
7import de.uka.ipd.sdq.measurement.strategies.activeresource.cpu.FibonacciDemand;
8import de.uka.ipd.sdq.measurement.strategies.activeresource.hdd.ReadLargeChunksDemand;
9 
10public class test {
11        public static void main(String[] args) {
12                BasicConfigurator.configure();
13                Logger.getRootLogger().setLevel(Level.INFO);
14                
15                AbstractDemandStrategy theStrategy;
16//                theStrategy = new ReadLargeChunksDemand();
17//                theStrategy.initializeStrategy(DegreeOfAccuracyEnum.MEDIUM, 1000,"/Users/snowball/Documents/proto_calib");
18//                theStrategy.watchConsume(5);
19//                theStrategy.watchConsume(50);
20//                theStrategy.watchConsume(500);
21//                theStrategy.watchConsume(5000);
22 
23                for (DegreeOfAccuracyEnum degree : DegreeOfAccuracyEnum.values()) {
24                        theStrategy = new FibonacciDemand();
25                        theStrategy.initializeStrategy(degree, 1000, "/Users/snowball/Documents/proto_calib");
26                        theStrategy.watchConsume(5);
27                        theStrategy.watchConsume(50);
28                        theStrategy.watchConsume(500);
29                        theStrategy.watchConsume(5000);
30                        theStrategy = null;
31                }
32 
33//                int[] strat1 = { -3, -2, -1, 0, 1, 2, 3 };
34//                for (int i = 0; i < strat1.length; i++) {
35//                        AbstractDemandStrategy theStrategy;
36//                        theStrategy = new CalculatePrimesDemand();
37//                        theStrategy.initialiseStrategy(strat1[i], 1000);
38//                        theStrategy.watchConsume(5);
39//                        theStrategy.watchConsume(50);
40//                        theStrategy.watchConsume(500);
41//                        theStrategy.watchConsume(5000);
42//                        theStrategy = null;
43//                        Logger.shutdown();
44//                }
45//
46//                int[] strat2 = { -3, -2, -1, 0, 1, 2, 3 };
47//                for (int i = 0; i < strat2.length; i++) {
48//                        AbstractDemandStrategy theStrategy;
49//                        theStrategy = new CountNumbersDemand();
50//                        theStrategy.initialiseStrategy(strat2[i], 1000);
51//                        theStrategy.watchConsume(5);
52//                        theStrategy.watchConsume(50);
53//                        theStrategy.watchConsume(500);
54//                        theStrategy.watchConsume(5000);
55//                        theStrategy = null;
56//                        Logger.shutdown();
57//                }
58//
59//                int[] strat3 = { -3, -2, -1, 0, 1, 2, 3 };
60//                for (int i = 0; i < strat3.length; i++) {
61//                        AbstractDemandStrategy theStrategy;
62//                        theStrategy = new VoidDemand();
63//                        theStrategy.initialiseStrategy(strat3[i], 1000);
64//                        theStrategy.watchConsume(5);
65//                        theStrategy.watchConsume(50);
66//                        theStrategy.watchConsume(500);
67//                        theStrategy.watchConsume(5000);
68//                        theStrategy = null;
69//                        Logger.shutdown();
70//                }
71//
72//                int[] strat4 = { -3, -2, -1, 0, 1, 2, 3 };
73//                for (int i = 0; i < strat4.length; i++) {
74//                        AbstractDemandStrategy theStrategy;
75//                        theStrategy = new SortArrayDemand();
76//                        theStrategy.initialiseStrategy(strat4[i], 1000);
77//                        theStrategy.watchConsume(5);
78//                        theStrategy.watchConsume(50);
79//                        theStrategy.watchConsume(500);
80//                        theStrategy.watchConsume(5000);
81//                        theStrategy = null;
82//                        Logger.shutdown();
83//                }
84//
85//                int[] strat5 = { -5, -4, -3, -2, -1, 0, 1 };
86//                for (int i = 0; i < strat5.length; i++) {
87//                        AbstractDemandStrategy theStrategy;
88//                        theStrategy = new FFTDemand();
89//                        theStrategy.initialiseStrategy(strat5[i], 1000);
90//                        theStrategy.watchConsume(5);
91//                        theStrategy.watchConsume(50);
92//                        theStrategy.watchConsume(500);
93//                        theStrategy.watchConsume(5000);
94//                        theStrategy = null;
95//                        Logger.shutdown();
96//                }
97//
98//                int[] strat6 = { -3, -2, -1, 0, 1, 2, 3 };
99//                for (int i = 0; i < strat6.length; i++) {
100//                        AbstractDemandStrategy theStrategy;
101//                        theStrategy = new WaitDemand();
102//                        theStrategy.initialiseStrategy(strat6[i], 1000);
103//                        theStrategy.watchConsume(5);
104//                        theStrategy.watchConsume(50);
105//                        theStrategy.watchConsume(500);
106//                        theStrategy.watchConsume(5000);
107//                        theStrategy = null;
108//                        Logger.shutdown();
109//                }
110//
111//                int[] strat7 = { -3, -2, -1, 0, 1, 2, 3 };
112//                for (int i = 0; i < strat7.length; i++) {
113//                        AbstractDemandStrategy theStrategy;
114//                        theStrategy = new MandelbrotDemand();
115//                        theStrategy.initialiseStrategy(strat7[i], 1000);
116//                        theStrategy.watchConsume(5);
117//                        theStrategy.watchConsume(50);
118//                        theStrategy.watchConsume(500);
119//                        theStrategy.watchConsume(5000);
120//                        theStrategy = null;
121//                        Logger.shutdown();
122//                }
123        }
124}

[all classes][default package]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov