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

COVERAGE SUMMARY FOR SOURCE FILE [ProcessActionPrintVisitor.java]

nameclass, %method, %block, %line, %
ProcessActionPrintVisitor.java0%   (0/1)0%   (0/4)0%   (0/42)0%   (0/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProcessActionPrintVisitor0%   (0/1)0%   (0/4)0%   (0/42)0%   (0/5)
ProcessActionPrintVisitor (): void 0%   (0/1)0%   (0/3)0%   (0/2)
caseWaitForAcquire (WaitForAcquire): String 0%   (0/1)0%   (0/15)0%   (0/1)
caseWaitForDelay (WaitForDelay): String 0%   (0/1)0%   (0/9)0%   (0/1)
caseWaitForDemand (WaitForDemand): String 0%   (0/1)0%   (0/15)0%   (0/1)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.codegen.simucontroller.debug;
5 
6import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForAcquire;
7import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDelay;
8import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDemand;
9import de.uka.ipd.sdq.simucomframework.simucomstatus.util.SimucomstatusSwitch;
10 
11/**
12 * @author Snowball
13 *
14 */
15public class ProcessActionPrintVisitor extends SimucomstatusSwitch<String> {
16 
17        /**
18         * 
19         */
20        public ProcessActionPrintVisitor() {
21        }
22 
23        /* (non-Javadoc)
24         * @see de.uka.ipd.sdq.simucomframework.simucomstatus.util.SimucomstatusSwitch#caseWaitForAcquire(de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForAcquire)
25         */
26        @Override
27        public String caseWaitForAcquire(WaitForAcquire object) {
28                // object.getResource() == null can happen during simulation startup
29                return "Waiting to Acquire Resource "+(object.getResource() == null ? "N/A" : object.getResource().getId());
30        }
31 
32        /* (non-Javadoc)
33         * @see de.uka.ipd.sdq.simucomframework.simucomstatus.util.SimucomstatusSwitch#caseWaitForDelay(de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDelay)
34         */
35        @Override
36        public String caseWaitForDelay(WaitForDelay object) {
37                return "Holding execution for "+object.getDelay();
38        }
39 
40        /* (non-Javadoc)
41         * @see de.uka.ipd.sdq.simucomframework.simucomstatus.util.SimucomstatusSwitch#caseWaitForDemand(de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDemand)
42         */
43        @Override
44        public String caseWaitForDemand(WaitForDemand object) {
45                return "Waiting for ActiveResource "+object.getResource().getId()+" to process "+object.getDemand();
46        }
47 
48        
49        
50}

[all classes][de.uka.ipd.sdq.codegen.simucontroller.debug]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov