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

COVERAGE SUMMARY FOR SOURCE FILE [SimuComProbeStrategyRegistry.java]

nameclass, %method, %block, %line, %
SimuComProbeStrategyRegistry.java0%   (0/1)0%   (0/2)0%   (0/41)0%   (0/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimuComProbeStrategyRegistry0%   (0/1)0%   (0/2)0%   (0/41)0%   (0/14)
SimuComProbeStrategyRegistry (): void 0%   (0/1)0%   (0/5)0%   (0/3)
setupProbeStrategies (): void 0%   (0/1)0%   (0/36)0%   (0/11)

1package de.uka.ipd.sdq.simucomframework.probes;
2 
3import de.uka.ipd.sdq.probespec.framework.ProbeType;
4import de.uka.ipd.sdq.probespec.framework.probes.IProbeStrategyRegistry;
5import de.uka.ipd.sdq.probespec.framework.probes.ProbeStrategyRegistry;
6import de.uka.ipd.sdq.scheduler.IPassiveResource;
7import de.uka.ipd.sdq.simucomframework.resources.AbstractScheduledResource;
8 
9/**
10 * Implementation of the {@link IProbeStrategyRegistry} interface for SimuCom.
11 * <p>
12 * Invoking the default constructor registers ProbeStrategies for the following
13 * <code>({@link ProbeType}, measurable entity)</code>-pairs.
14 * <ul>
15 * <li>{@link ProbeType#CURRENT_TIME}, <code>null</code></li>
16 * <li>{@link ProbeType#RESOURCE_DEMAND}, {@link AbstractScheduledResource}</li>
17 * <li>{@link ProbeType#RESOURCE_STATE}, {@link AbstractScheduledResource}</li>
18 * <li>{@link ProbeType#RESOURCE_STATE}, {@link IPassiveResource}</li>
19 * <li>{@link ProbeType#EXECUTION_RESULT}, <code>null</code></li>
20 * </ul>
21 * 
22 * @author Philipp Merkle, brosch
23 * 
24 */
25public class SimuComProbeStrategyRegistry extends ProbeStrategyRegistry {
26 
27        /**
28         * Default constructor. Sets up the SimuCom specific ProbeStrategies as
29         * described above.
30         */
31        public SimuComProbeStrategyRegistry() {
32                setupProbeStrategies();
33        }
34 
35        private void setupProbeStrategies() {
36                /* CURRENT_TIME */
37                registerProbeStrategy(new TakeSimulatedTimeStrategy(),
38                                ProbeType.CURRENT_TIME, null);
39 
40                /* RESOURCE_DEMAND */
41                // scheduled resources
42                registerProbeStrategy(new TakeScheduledResourceDemandStrategy(),
43                                ProbeType.RESOURCE_DEMAND, AbstractScheduledResource.class);
44 
45                /* RESOURCE_STATE */
46                // scheduled resources
47                registerProbeStrategy(new TakeScheduledResourceStateStrategy(),
48                                ProbeType.RESOURCE_STATE, AbstractScheduledResource.class);
49 
50                // passive resources
51                registerProbeStrategy(new TakePassiveResourceStateStrategy(),
52                                ProbeType.RESOURCE_STATE, IPassiveResource.class);
53 
54                // execution result
55                registerProbeStrategy(new TakeExecutionResultStrategy(),
56                                ProbeType.EXECUTION_RESULT, null);
57        }
58 
59}

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