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 [ProbabilisticBranchTransitionHandler.java]

nameclass, %method, %block, %line, %
ProbabilisticBranchTransitionHandler.java0%   (0/1)0%   (0/3)0%   (0/33)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProbabilisticBranchTransitionHandler0%   (0/1)0%   (0/3)0%   (0/33)0%   (0/11)
<static initializer> 0%   (0/1)0%   (0/5)0%   (0/3)
ProbabilisticBranchTransitionHandler (SeffVisitor): void 0%   (0/1)0%   (0/4)0%   (0/2)
handle (ProbabilisticBranchTransition): void 0%   (0/1)0%   (0/24)0%   (0/6)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.pcmsolver.handler;
5 
6import org.apache.log4j.Logger;
7 
8import de.uka.ipd.sdq.pcm.seff.ProbabilisticBranchTransition;
9import de.uka.ipd.sdq.pcmsolver.visitors.SeffVisitor;
10 
11/**
12 * @author Koziolek
13 * 
14 */
15public class ProbabilisticBranchTransitionHandler extends
16                AbstractBranchTransitionHandler {
17 
18        private static Logger logger = Logger
19                        .getLogger(ProbabilisticBranchTransitionHandler.class.getName());
20 
21        public ProbabilisticBranchTransitionHandler(SeffVisitor seffVisitor) {
22                super(seffVisitor);
23        }
24 
25        public void handle(ProbabilisticBranchTransition bt) {
26                double branchProb = bt.getBranchProbability();
27                logger.debug("BranchProb:" + branchProb);
28                storeToUsageContext(bt, branchProb);
29 
30                // Don't solve branch transitions that can never be reached. This
31                // releases the modeler from the duty to provide all character
32                // parameterizations for branches that are never reached (see Bug 615)
33                if (branchProb > 0.0) {
34                        visitChildBehaviour(bt);
35                }
36        }
37 
38}

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