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

COVERAGE SUMMARY FOR SOURCE FILE [DecayToBaseUpdate.java]

nameclass, %method, %block, %line, %
DecayToBaseUpdate.java0%   (0/1)0%   (0/3)0%   (0/18)0%   (0/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DecayToBaseUpdate0%   (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 */
4package de.uka.ipd.sdq.scheduler.priority.update;
5 
6import de.uka.ipd.sdq.scheduler.priority.IPriorityUpdateStrategy;
7import de.uka.ipd.sdq.scheduler.processes.impl.ProcessWithPriority;
8 
9public 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