1 | package de.uka.ipd.sdq.pipesandfilters.framework.recorder.sensorframework; |
2 | |
3 | import java.util.Map; |
4 | import java.util.Vector; |
5 | |
6 | import de.uka.ipd.sdq.pipesandfilters.framework.MeasurementMetric; |
7 | import de.uka.ipd.sdq.pipesandfilters.framework.recorder.sensorframework.launch.SensorFrameworkConfig; |
8 | |
9 | /** |
10 | * Represents the meta data for initialization of an |
11 | * ExecutionResultWriteDataStrategy. |
12 | * |
13 | * In addition to the super class, this class contains a mapping from numerical |
14 | * values to strings representing the different possible execution results. This |
15 | * is necessary so that during the simulation, only the numerical values need to |
16 | * be piped to the target sensor. |
17 | * |
18 | * @author brosch |
19 | * |
20 | */ |
21 | public class ExecutionResultMetaDataInit extends SensorFrameworkMetaDataInit { |
22 | |
23 | /** |
24 | * The mapping of numerical values to strings representing the possible |
25 | * execution results. |
26 | */ |
27 | private Map<Integer, String> executionResultTypes; |
28 | |
29 | /** |
30 | * The constructor. |
31 | * |
32 | * @param measuredMetrics |
33 | * a vector of all measured metrics of a calculator |
34 | * @param recorderConfiguration |
35 | * the recorder configuration |
36 | * @param executionResultTypes |
37 | * the mapping of numerical values to strings representing the |
38 | * possible execution results |
39 | */ |
40 | public ExecutionResultMetaDataInit( |
41 | final Vector<MeasurementMetric> measuredMetrics, |
42 | final SensorFrameworkConfig recorderConfiguration, |
43 | final Map<Integer, String> executionResultTypes) { |
44 | super(measuredMetrics, recorderConfiguration); |
45 | this.executionResultTypes = executionResultTypes; |
46 | } |
47 | |
48 | /** |
49 | * Retrieves the collection of execution result types. |
50 | * |
51 | * @return the execution result types |
52 | */ |
53 | public Map<Integer, String> getExecutionResultTypes() { |
54 | return executionResultTypes; |
55 | } |
56 | } |