| EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
|---|
| [all classes][de.uka.ipd.sdq.simulation.abstractsimengine.processes] |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| SimProcessContinuationStrategy.java | 0% (0/1) | 0% (0/5) | 0% (0/20) | 0% (0/10) |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| class SimProcessContinuationStrategy | 0% (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) |
| 1 | package de.uka.ipd.sdq.simulation.abstractsimengine.processes; |
| 2 | |
| 3 | import org.apache.commons.javaflow.Continuation; |
| 4 | |
| 5 | public 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 |