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

COVERAGE SUMMARY FOR SOURCE FILE [NextRunnableProcessSelector.java]

nameclass, %method, %block, %line, %
NextRunnableProcessSelector.java0%   (0/1)0%   (0/2)0%   (0/29)0%   (0/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class NextRunnableProcessSelector0%   (0/1)0%   (0/2)0%   (0/29)0%   (0/7)
NextRunnableProcessSelector (): void 0%   (0/1)0%   (0/3)0%   (0/1)
select (IRunQueue, IResourceInstance): IActiveProcess 0%   (0/1)0%   (0/26)0%   (0/6)

1package de.uka.ipd.sdq.scheduler.loaddistribution.selectors.process;
2 
3import de.uka.ipd.sdq.scheduler.loaddistribution.IProcessSelector;
4import de.uka.ipd.sdq.scheduler.processes.IActiveProcess;
5import de.uka.ipd.sdq.scheduler.queueing.IProcessQueue;
6import de.uka.ipd.sdq.scheduler.queueing.IRunQueue;
7import de.uka.ipd.sdq.scheduler.resources.IResourceInstance;
8 
9public class NextRunnableProcessSelector implements IProcessSelector {
10 
11        public IActiveProcess select(IRunQueue runQueue, IResourceInstance instance) {
12                IProcessQueue queue = runQueue.getBestRunnableQueue(instance);
13                if (queue != null) {
14                        for (IActiveProcess process : queue.ascending()) {
15                                if (process.checkAffinity(instance)) {
16                                                return process;
17                                }
18                        }
19                }
20                return null;
21        }
22}

[all classes][de.uka.ipd.sdq.scheduler.loaddistribution.selectors.process]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov