EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
---|
[all classes][de.uka.ipd.sdq.scheduler.priority.update] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
DecayToBaseUpdate.java | 0% (0/1) | 0% (0/3) | 0% (0/18) | 0% (0/6) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class DecayToBaseUpdate | 0% (0/1) | 0% (0/3) | 0% (0/18) | 0% (0/6) |
DecayToBaseUpdate (): void | 0% (0/1) | 0% (0/3) | 0% (0/1) | |
cloneFor (ProcessWithPriority): DecayToBaseUpdate | 0% (0/1) | 0% (0/2) | 0% (0/1) | |
update (ProcessWithPriority): boolean | 0% (0/1) | 0% (0/13) | 0% (0/4) |
1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.scheduler.priority.update; |
5 | |
6 | import de.uka.ipd.sdq.scheduler.priority.IPriorityUpdateStrategy; |
7 | import de.uka.ipd.sdq.scheduler.processes.impl.ProcessWithPriority; |
8 | |
9 | public class DecayToBaseUpdate implements IPriorityUpdateStrategy { |
10 | |
11 | public boolean update(ProcessWithPriority process) { |
12 | if (process.hasBonus() && process.getTimeslice().isFinished()){ |
13 | process.decreasePriority(); |
14 | return true; |
15 | } |
16 | return false; |
17 | } |
18 | |
19 | public DecayToBaseUpdate cloneFor(ProcessWithPriority process) { |
20 | return this; |
21 | } |
22 | } |
[all classes][de.uka.ipd.sdq.scheduler.priority.update] |
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov |