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

COVERAGE SUMMARY FOR SOURCE FILE [LoopActionHandler.java]

nameclass, %method, %block, %line, %
LoopActionHandler.java0%   (0/1)0%   (0/3)0%   (0/43)0%   (0/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LoopActionHandler0%   (0/1)0%   (0/3)0%   (0/43)0%   (0/14)
<static initializer> 0%   (0/1)0%   (0/5)0%   (0/2)
LoopActionHandler (SeffVisitor): void 0%   (0/1)0%   (0/4)0%   (0/2)
handle (LoopAction): void 0%   (0/1)0%   (0/34)0%   (0/10)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.pcmsolver.handler;
5 
6import org.apache.log4j.Logger;
7 
8import de.uka.ipd.sdq.pcm.seff.LoopAction;
9import de.uka.ipd.sdq.pcmsolver.visitors.ExpressionHelper;
10import de.uka.ipd.sdq.pcmsolver.visitors.SeffVisitor;
11 
12/**
13 * @author Koziolek
14 *
15 */
16public class LoopActionHandler extends AbstractLoopActionHandler {
17        
18        private static Logger logger = Logger.getLogger(LoopActionHandler.class.getName());
19 
20        public LoopActionHandler(SeffVisitor seffVisitor) {
21                super(seffVisitor);
22        }
23 
24        public void handle(LoopAction loop) {
25                String specification = loop.getIterationCount_LoopAction().getSpecification();
26                String solvedSpecification = 
27                        ExpressionHelper.getSolvedExpressionAsString(specification, visitor.getContextWrapper());
28 
29                if (solvedSpecification == null){
30                        logger.error("Could not determine iterations specification. Skipping execution of loop body!");
31                        return;
32                }
33                
34                logger.debug("NumberOfIterations: "+solvedSpecification);
35                
36                storeToUsageContext(loop, solvedSpecification);
37                
38                visitLoopBody(loop, solvedSpecification);
39        }
40 
41 
42 
43 
44}

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