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 [SchedulingEvent.java]

nameclass, %method, %block, %line, %
SchedulingEvent.java0%   (0/1)0%   (0/3)0%   (0/35)0%   (0/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SchedulingEvent0%   (0/1)0%   (0/3)0%   (0/35)0%   (0/9)
<static initializer> 0%   (0/1)0%   (0/7)0%   (0/3)
SchedulingEvent (SchedulerModel, SimActiveResource): void 0%   (0/1)0%   (0/9)0%   (0/3)
eventRoutine (IResourceInstance): void 0%   (0/1)0%   (0/19)0%   (0/3)

1package de.uka.ipd.sdq.scheduler.events;
2 
3import org.apache.log4j.Level;
4import org.apache.log4j.Logger;
5 
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 * @author jens
16 * 
17 */
18public class SchedulingEvent extends AbstractSimEventDelegator<IResourceInstance> {
19 
20        SimActiveResource containingResource;
21        
22        static Logger logger = Logger.getLogger(SchedulingEvent.class);
23        
24        static{
25                logger.setLevel(Level.INFO);
26        }
27        
28        public SchedulingEvent(SchedulerModel model, SimActiveResource containingResource) {
29                super(model, SchedulingEvent.class.getName());
30                this.containingResource = containingResource;
31        }
32 
33        @Override
34        public void eventRoutine(IResourceInstance instance) {
35                logger.debug(getModel().getSimulationControl().getCurrentSimulationTime() + " Scheduling Event handler triggered");
36                containingResource.getScheduler().schedule(instance);
37        }
38 
39}

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