|
|
| 16 |
* Author: Josh Pelkey <jpelkey@gatech.edu> |
16 |
* Author: Josh Pelkey <jpelkey@gatech.edu> |
| 17 |
*/ |
17 |
*/ |
| 18 |
|
18 |
|
|
|
19 |
// Implement an object to create a grid topology. |
| 20 |
|
| 19 |
#include "ns3/point-to-point-grid.h" |
21 |
#include "ns3/point-to-point-grid.h" |
| 20 |
#include "ns3/internet-stack-helper.h" |
22 |
#include "ns3/internet-stack-helper.h" |
| 21 |
#include "ns3/point-to-point-helper.h" |
23 |
#include "ns3/point-to-point-helper.h" |
|
|
| 270 |
if (row > m_nodes.size () - 1 || |
272 |
if (row > m_nodes.size () - 1 || |
| 271 |
col > m_nodes.at (row).GetN () - 1) |
273 |
col > m_nodes.at (row).GetN () - 1) |
| 272 |
{ |
274 |
{ |
| 273 |
NS_FATAL_ERROR ("Index out of bounds in PointToPointGridHelper::GetIpv4Address."); |
275 |
NS_FATAL_ERROR ("Index out of bounds in PointToPointGridHelper::GetIpv6Address."); |
| 274 |
} |
276 |
} |
| 275 |
|
277 |
|
| 276 |
// Right now this just gets one of the addresses of the |
278 |
// Right now this just gets one of the addresses of the |