EMMA Coverage Report (generated Tue Aug 23 05:57:12 CDT 2011)
[all classes][felix.task]

COVERAGE SUMMARY FOR SOURCE FILE [ExecuteOperatorTask.java]

nameclass, %method, %block, %line, %
ExecuteOperatorTask.java100% (2/2)80%  (4/5)82%  (28/34)77%  (10/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ExecuteOperatorTask$ExecuteOperatorWorker100% (1/1)100% (2/2)78%  (14/18)75%  (6/8)
run (): void 100% (1/1)56%  (5/9)50%  (2/4)
ExecuteOperatorTask$ExecuteOperatorWorker (ExecuteOperatorTask, StatOperator)... 100% (1/1)100% (9/9)100% (4/4)
     
class ExecuteOperatorTask100% (1/1)67%  (2/3)88%  (14/16)80%  (4/5)
generateWorker (ExecutorService): Worker 0%   (0/1)0%   (0/2)0%   (0/1)
ExecuteOperatorTask (StatOperator): void 100% (1/1)100% (7/7)100% (3/3)
generateWorker (): Worker 100% (1/1)100% (7/7)100% (1/1)

1package felix.task;
2 
3import java.io.FileInputStream;
4import java.util.concurrent.ExecutorService;
5 
6import org.postgresql.PGConnection;
7 
8import tuffy.util.Timer;
9import tuffy.util.UIMan;
10 
11import felix.dstruct.DataMovementOperator;
12import felix.dstruct.StatOperator;
13import felix.optimizer.DMOOptimizer;
14import felix.society.Task;
15import felix.society.Worker;
16import felix.society.Task.TaskType;
17 
18/**
19 * {@link Task} Object for executing an operator.
20 * @author czhang
21 *
22 */
23public class ExecuteOperatorTask extends Task{
24 
25        /**
26         * Operator.
27         */
28        public StatOperator sop;
29        
30        /**
31         * Constructor.
32         * @param _sop
33         */
34        public ExecuteOperatorTask(StatOperator _sop){
35                super(TaskType.TASK);
36                sop = _sop;
37        }
38        
39        @Override
40        public Worker generateWorker() {
41                return new ExecuteOperatorWorker(sop);
42        }
43        
44        /**
45         * A worker that simply calls the run() function
46         * of the operator object.
47         * @author czhang
48         *
49         */
50        public class ExecuteOperatorWorker extends Worker{
51 
52                public StatOperator sop;
53                public DMOOptimizer dmoo;
54                
55                public ExecuteOperatorWorker(StatOperator _sop){
56                        super();
57                        sop = _sop;
58                }
59                
60                @Override
61                public void run() {
62                        try{
63                                
64                                sop.run();
65                                
66                        }catch(Exception e){
67                                submitException(e);
68                        }
69                }
70        }
71 
72        @Override
73        public Worker generateWorker(ExecutorService pool) {
74                return null;
75        }
76        
77 
78}

[all classes][felix.task]
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov