diff --git a/examples/mesh.cc b/examples/mesh.cc index 2a43fc787..1a167e4c4 100644 --- a/examples/mesh.cc +++ b/examples/mesh.cc @@ -3,7 +3,7 @@ * Copyright (c) 2008,2009 IITP RAS * * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as + * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be useful, @@ -34,75 +34,74 @@ NS_LOG_COMPONENT_DEFINE ("TestMeshScript"); int main(int argc, char *argv[]) { - // Creating square topology with nNodes x nNodes grid: - int xSize = 5; - int ySize = 5; - double step = 100.0; //Grid with one-hop edge - double randomStart = 0.1; //One beacon interval - NodeContainer nodes; - CommandLine cmd; - MobilityHelper mobility; - MeshWifiHelper wifi; - NetDeviceContainer meshDevices; - // Defining a size of our network: - cmd.AddValue("x-size", "Number of nodes in a row grid", xSize); - cmd.AddValue("y-size", "Number of rows in a grid", ySize); - cmd.AddValue("step", "Size of edge in our grid", step); - cmd.AddValue("start", "Random start parameter", randomStart); - cmd.Parse (argc, argv); - NS_LOG_DEBUG("Grid:"< ptr,Mac48Address addr,std::vector *results, std::vector