Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright 2013. Lawrence Livermore National Security, LLC. | 3 * Copyright 2013. Lawrence Livermore National Security, LLC. |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 | 57 |
58 /** | 58 /** |
59 * \param channel to add to the bundle | 59 * \param channel to add to the bundle |
60 * \param delay time for the channel (usually the latency) | 60 * \param delay time for the channel (usually the latency) |
61 */ | 61 */ |
62 void AddChannel (Ptr<Channel> channel, Time delay); | 62 void AddChannel (Ptr<Channel> channel, Time delay); |
63 | 63 |
64 /** | 64 /** |
65 * \return SystemID for remote side of this bundle | 65 * \return SystemID for remote side of this bundle |
66 */ | 66 */ |
67 uint32_t GetSystemId (); | 67 uint32_t GetSystemId () const; |
bpswenson
2013/10/18 20:00:54
Getters that don't modify 'this' should be const.
Steve Smith
2013/11/23 00:24:47
Done.
| |
68 | 68 |
69 /** | 69 /** |
70 * \return guarantee time | 70 * \return guarantee time |
71 */ | 71 */ |
72 Time GetGuaranteeTime (void); | 72 Time GetGuaranteeTime (void) const; |
73 | 73 |
74 /** | 74 /** |
75 * \param guarantee time | 75 * \param guarantee time |
76 * | 76 * |
77 * Set the guarantee time for the bundle. This should be called | 77 * Set the guarantee time for the bundle. This should be called |
78 * after a packet or Null Message received. | 78 * after a packet or Null Message received. |
79 */ | 79 */ |
80 void SetGuaranteeTime (Time time); | 80 void SetGuaranteeTime (Time time); |
81 | 81 |
82 /** | 82 /** |
83 * \return the minimum delay along any channel in this bundle | 83 * \return the minimum delay along any channel in this bundle |
84 */ | 84 */ |
85 Time GetDelay (void); | 85 Time GetDelay (void) const; |
86 | 86 |
87 /** | 87 /** |
88 * Set the event ID of the Null Message send event current scheduled | 88 * Set the event ID of the Null Message send event current scheduled |
89 * for this channel. | 89 * for this channel. |
90 */ | 90 */ |
91 void SetEventId (EventId id); | 91 void SetEventId (EventId id); |
92 | 92 |
93 /** | 93 /** |
94 * \return the event ID of the Null Message send event for this bundle | 94 * \return the event ID of the Null Message send event for this bundle |
95 */ | 95 */ |
96 EventId GetEventId (void); | 96 EventId GetEventId (void) const; |
97 | 97 |
98 /** | 98 /** |
99 * \return number of NS3 channels in this bundle | 99 * \return number of NS3 channels in this bundle |
100 */ | 100 */ |
101 int GetSize (void); | 101 int GetSize (void) const; |
102 | 102 |
103 /** | 103 /** |
104 * \param time· | 104 * \param time· |
105 * | 105 * |
106 * Send Null Message to the remote task associated with this bundle. | 106 * Send Null Message to the remote task associated with this bundle. |
107 * Message will be delivered at current simulation time + the time | 107 * Message will be delivered at current simulation time + the time |
108 * passed in. | 108 * passed in. |
109 */ | 109 */ |
110 void Send(Time time); | 110 void Send(Time time); |
111 | 111 |
(...skipping 30 matching lines...) Expand all Loading... | |
142 /* | 142 /* |
143 * Event scheduled to send Null Message for this bundle. | 143 * Event scheduled to send Null Message for this bundle. |
144 */ | 144 */ |
145 EventId m_nullEventId; | 145 EventId m_nullEventId; |
146 | 146 |
147 }; | 147 }; |
148 | 148 |
149 } | 149 } |
150 | 150 |
151 #endif | 151 #endif |
LEFT | RIGHT |