schneiderklaus | d8197df | 2019-03-16 11:31:40 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2016-2019, Regents of the University of California, |
| 3 | * Colorado State University, |
| 4 | * University Pierre & Marie Curie, Sorbonne University. |
Weiwei Liu | 245d791 | 2016-07-28 00:04:25 -0700 | [diff] [blame] | 5 | * |
| 6 | * This file is part of ndn-tools (Named Data Networking Essential Tools). |
| 7 | * See AUTHORS.md for complete list of ndn-tools authors and contributors. |
| 8 | * |
| 9 | * ndn-tools is free software: you can redistribute it and/or modify it under the terms |
| 10 | * of the GNU General Public License as published by the Free Software Foundation, |
| 11 | * either version 3 of the License, or (at your option) any later version. |
| 12 | * |
| 13 | * ndn-tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 14 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 15 | * PURPOSE. See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along with |
| 18 | * ndn-tools, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 19 | * |
| 20 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
| 21 | * |
| 22 | * @author Weiwei Liu |
| 23 | */ |
| 24 | |
schneiderklaus | d8197df | 2019-03-16 11:31:40 -0700 | [diff] [blame^] | 25 | #ifndef NDN_TOOLS_CHUNKS_CATCHUNKS_STATISTICS_COLLECTOR_HPP |
| 26 | #define NDN_TOOLS_CHUNKS_CATCHUNKS_STATISTICS_COLLECTOR_HPP |
Weiwei Liu | 245d791 | 2016-07-28 00:04:25 -0700 | [diff] [blame] | 27 | |
schneiderklaus | d8197df | 2019-03-16 11:31:40 -0700 | [diff] [blame^] | 28 | #include "pipeline-interests-adaptive.hpp" |
| 29 | #include "rtt-estimator.hpp" |
Weiwei Liu | 245d791 | 2016-07-28 00:04:25 -0700 | [diff] [blame] | 30 | |
| 31 | namespace ndn { |
| 32 | namespace chunks { |
Weiwei Liu | 245d791 | 2016-07-28 00:04:25 -0700 | [diff] [blame] | 33 | |
| 34 | /** |
schneiderklaus | d8197df | 2019-03-16 11:31:40 -0700 | [diff] [blame^] | 35 | * @brief Statistics collector for Adaptive pipelines |
Weiwei Liu | 245d791 | 2016-07-28 00:04:25 -0700 | [diff] [blame] | 36 | */ |
| 37 | class StatisticsCollector : noncopyable |
| 38 | { |
| 39 | public: |
schneiderklaus | d8197df | 2019-03-16 11:31:40 -0700 | [diff] [blame^] | 40 | StatisticsCollector(PipelineInterestsAdaptive& pipeline, RttEstimator& rttEstimator, |
Weiwei Liu | 245d791 | 2016-07-28 00:04:25 -0700 | [diff] [blame] | 41 | std::ostream& osCwnd, std::ostream& osRtt); |
| 42 | |
| 43 | private: |
| 44 | std::ostream& m_osCwnd; |
| 45 | std::ostream& m_osRtt; |
| 46 | }; |
| 47 | |
Weiwei Liu | 245d791 | 2016-07-28 00:04:25 -0700 | [diff] [blame] | 48 | } // namespace chunks |
| 49 | } // namespace ndn |
| 50 | |
schneiderklaus | d8197df | 2019-03-16 11:31:40 -0700 | [diff] [blame^] | 51 | #endif // NDN_TOOLS_CHUNKS_CATCHUNKS_STATISTICS_COLLECTOR_HPP |