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

COVERAGE SUMMARY FOR SOURCE FILE [SimProcessContinuationStrategy.java]

nameclass, %method, %block, %line, %
SimProcessContinuationStrategy.java0%   (0/1)0%   (0/5)0%   (0/20)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimProcessContinuationStrategy0%   (0/1)0%   (0/5)0%   (0/20)0%   (0/10)
SimProcessContinuationStrategy (): void 0%   (0/1)0%   (0/6)0%   (0/2)
finishProcess (): void 0%   (0/1)0%   (0/1)0%   (0/1)
resumeProcess (): void 0%   (0/1)0%   (0/6)0%   (0/3)
startProcess (Runnable): void 0%   (0/1)0%   (0/5)0%   (0/2)
suspendProcess (): void 0%   (0/1)0%   (0/2)0%   (0/2)

1package de.uka.ipd.sdq.simulation.abstractsimengine.processes;
2 
3import org.apache.commons.javaflow.Continuation;
4 
5public class SimProcessContinuationStrategy implements ISimProcessStrategy {
6 
7        private Continuation thisThreadsContinuation = null;
8 
9        public void startProcess(Runnable myRunnable) {
10                // This lets the thread run until it suspends or terminates and stores
11                // its state in thisThreadsContinuation
12                thisThreadsContinuation = Continuation.startWith(myRunnable);
13        }
14 
15        public void resumeProcess() {
16                thisThreadsContinuation = Continuation
17                                .continueWith(thisThreadsContinuation);
18        }
19 
20        public void finishProcess() {
21        }
22 
23        public void suspendProcess() {
24                Continuation.suspend();
25        }
26 
27}

[all classes][de.uka.ipd.sdq.simulation.abstractsimengine.processes]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov