HTGS
v2.0
The Hybrid Task Graph Scheduler
DataPacket.hpp
Go to the documentation of this file.
1
//
9
// * @file DataPacket.hpp
10
// * @author Timothy Blattner
11
// * @date March 6, 2017
12
// *
13
// * @brief Implements the data packet that is used by the TaskGraphCommunicator.
14
// *
15
// */
16
//
17
//#ifndef HTGS_DATAPACKET_HPP
18
//#define HTGS_DATAPACKET_HPP
19
//#include <string>
20
//#include <memory>
21
//
22
//#include <htgs/api/IData.hpp>
23
//
24
//namespace htgs {
25
//
27
// * @class DataPacket DataPacket.hpp <htgs/core/comm/DataPacket.hpp>
28
// *
29
// * @brief Implements a data packet that is transmitted to the TaskGraphCommunicator.
30
// *
31
// * A data packet stores any type of IData that is to be sent to some destination HTGS address
32
// * with an endpoint name. The data packet is used to store this meta data for the TaskGraphCommunicator.
33
// *
34
// * The TaskGraphCommunicator passes the IData held in the data packet to an end point identified by the HTGS address
35
// * and task name. This retrieves the input connector, which is used to transmit the IData.
36
// *
37
// * @note When using DataPacket, the IData is dynamically cast to the input connector's end point type. It is important to
38
// * have the IData type to match the input connector's type.
39
// *
40
// */
41
//class DataPacket {
42
// public:
43
// /**
44
// * Constructs a data packet
45
// * @param originName the origin task name
46
// * @param originAddr the origin task address
47
// * @param destName the destination task name
48
// * @param destAddr the destination task address
49
// * @param data the data that is to be transmitted
50
// */
51
// DataPacket(std::string originName, std::string originAddr,
52
// const std::string &destName, std::string destAddr, const std::shared_ptr<IData> &data)
53
// : destName(destName), originName(originName), destAddr(destAddr), originAddr(originAddr), data(data) {
54
//
55
// }
56
//
57
// /**
58
// * Gets the destination task name
59
// * @return the destination task name
60
// */
61
// const std::string &getDestName() const {
62
// return destName;
63
// }
64
//
65
// /**
66
// * Gets the origin task name
67
// * @return the origin task name
68
// */
69
// const std::string &getOriginName() const {
70
// return originName;
71
// }
72
//
73
// /**
74
// * Gets the destination task address
75
// * @return the destination task address
76
// */
77
// std::string getDestAddr() const {
78
// return destAddr;
79
// }
80
//
81
// /**
82
// * Gets the origin task address
83
// * @return the origin task address
84
// */
85
// std::string getOriginAddr() const {
86
// return originAddr;
87
// }
88
//
89
// /**
90
// * Gets the data associated with the data packet
91
// * @return the data
92
// */
93
// const std::shared_ptr<IData> &getData() const {
94
// return data;
95
// }
96
//
97
// private:
98
// std::string destName; //!< The destination task name
99
// std::string originName; //!< The origin task name
100
//
101
// std::string destAddr; //!< The destination task address
102
// std::string originAddr; //!< The origin task address
103
//
104
//
105
// std::shared_ptr<IData> data; //!< The data
106
//};
107
//}
108
//#endif //HTGS_DATAPACKET_HPP
src
htgs
core
comm
DataPacket.hpp
Generated by
1.8.13