OLD | NEW |
| (Empty) |
1 .. include:: replace.txt | |
2 | |
3 .. heading hierarchy: | |
4 ************* Section (#.#) | |
5 ============= Subsection (#.#.#) | |
6 ############# Paragraph (no number) | |
7 ~~~~~~~~~~~~~ Sub-paragraph (no number) | |
8 | |
9 Adaptors | |
10 ******** | |
11 | |
12 This section details the functionalities provided by the Adaptor | |
13 class to an |ns3| simulation. This section is meant for users | |
14 interested in developing simulations with the |ns3| tools and using | |
15 the Data Collection Framework, of which the Adaptor class is a | |
16 part, to generate data output with their simulation's results. | |
17 | |
18 Note: the term 'adaptor' may also be spelled 'adapter'; we chose | |
19 the spelling aligned with the C++ standard. | |
20 | |
21 Adaptor Overview | |
22 ================ | |
23 | |
24 An Adaptor is used to make connections between different types of DCF | |
25 objects.· | |
26 | |
27 To date, one Adaptor has been implemented: | |
28 | |
29 - TimeSeriesAdaptor | |
30 | |
31 Time Series Adaptor | |
32 =================== | |
33 | |
34 The TimeSeriesAdaptor lets Probes connect directly to Aggregators | |
35 without needing any Collector in between. | |
36 | |
37 Both of the implemented DCF helpers utilize TimeSeriesAdaptors | |
38 in order to take probed values of different types and output the | |
39 current time plus the value with both converted to doubles. | |
40 | |
41 The role of the TimeSeriesAdaptor class is that of an adaptor, which | |
42 takes raw-valued probe data of different types and outputs a tuple of | |
43 two double values. The first is a timestamp, which may be set to | |
44 different resolutions (e.g. Seconds, Milliseconds, etc.) in the future | |
45 but which is presently hardcoded to Seconds. | |
46 The second is the conversion of a non-double | |
47 value to a double value (possibly with loss of precision). | |
48 | |
OLD | NEW |