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

COVERAGE SUMMARY FOR SOURCE FILE [SchedulingInterruptEvent.java]

nameclass, %method, %block, %line, %
SchedulingInterruptEvent.java0%   (0/1)0%   (0/3)0%   (0/21)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SchedulingInterruptEvent0%   (0/1)0%   (0/3)0%   (0/21)0%   (0/8)
<static initializer> 0%   (0/1)0%   (0/4)0%   (0/2)
SchedulingInterruptEvent (SchedulerModel, SimActiveResource): void 0%   (0/1)0%   (0/9)0%   (0/3)
eventRoutine (IResourceInstance): void 0%   (0/1)0%   (0/8)0%   (0/3)

1package de.uka.ipd.sdq.scheduler.events;
2 
3import org.apache.log4j.Logger;
4 
5import de.uka.ipd.sdq.scheduler.LoggingWrapper;
6import de.uka.ipd.sdq.scheduler.SchedulerModel;
7import de.uka.ipd.sdq.scheduler.resources.IResourceInstance;
8import de.uka.ipd.sdq.scheduler.resources.active.SimActiveResource;
9import de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator;
10 
11/**
12 * Event causing a call to the schedule method of the specified scheduling
13 * strategy. Used to trigger a scheduling at a specific time.
14 * 
15 * This Event will never be canceled and can exist an arbitrary number of times in the event queue.
16 * 
17 * @author jens
18 * 
19 */
20public class SchedulingInterruptEvent extends AbstractSimEventDelegator<IResourceInstance> {
21 
22        SimActiveResource containingResource;
23        static Logger logger = Logger.getLogger(SchedulingInterruptEvent.class);
24 
25        public SchedulingInterruptEvent(SchedulerModel model, SimActiveResource containingResource) {
26                super(model, SchedulingEvent.class.getName());
27                this.containingResource = containingResource;
28        }
29 
30        @Override
31        public void eventRoutine(IResourceInstance instance) {
32                LoggingWrapper.log("Scheduling Interrupt Event handler triggered");
33                containingResource.getScheduler().schedule(instance/*,quantum_finished*/);
34        }
35 
36}

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