1 | package de.uka.ipd.sdq.probespec.framework; |
2 | |
3 | /** |
4 | * This blackboard discards any measurement that is published at the blackboard. Thus, the |
5 | * {@link #getSample(ProbeSetAndRequestContext)} method returns always null. |
6 | * <p> |
7 | * Use this blackboard, when no measurements are supposed to be stored. |
8 | * |
9 | * @author Philipp Merkle |
10 | * |
11 | */ |
12 | public class NullSampleBlackboard implements ISampleBlackboard { |
13 | |
14 | @Override |
15 | public void addBlackboardListener(IBlackboardListener l, Integer... topics) { |
16 | // nothing to do |
17 | } |
18 | |
19 | @Override |
20 | public void addSample(ProbeSetSample pss) { |
21 | // nothing to do |
22 | } |
23 | |
24 | @Override |
25 | public void deleteSample(ProbeSetAndRequestContext pss) { |
26 | // nothing to do |
27 | } |
28 | |
29 | @Override |
30 | public void deleteSamplesInRequestContext(RequestContext requestContext) { |
31 | // nothing to do |
32 | } |
33 | |
34 | @Override |
35 | public ProbeSetSample getSample(ProbeSetAndRequestContext probeSetSampleID) { |
36 | return null; |
37 | } |
38 | |
39 | @Override |
40 | public int size() { |
41 | return 0; |
42 | } |
43 | |
44 | } |