simulations/scratch/bus-topology.cc
void
BusTopology::Configure(int argc, char **argv)
{
	LogComponentEnable("NeighborDiscoveryHelper", LOG_LEVEL_ALL);

	CommandLine cmd;
	cmd.AddValue("maxRange", "Wifi range of each node (m)", maxRange);
	cmd.AddValue("numNodes", "Number of nodes", numNodes);
	cmd.AddValue("interval", "Interval of beaconing (s)", interval);
	cmd.AddValue("expiration", "Interval to consider contact lost (s)", expiration);
	cmd.AddValue ("traceFile", "Ns2 movement trace file", traceFile);
	cmd.AddValue ("endSimulation", "End simulation time (h)", endSimulation);
	cmd.Parse(argc, argv);

}
/**
 * Set different parameters that can be set up manually from command args
 */
Set different parameters that can be set up manually from command args
Set different parameters that can be set up manually from command args
void
BusTopology::Configure(int argc, char **argv)
{
	LogComponentEnable("NeighborDiscoveryHelper", LOG_LEVEL_ALL);
	CommandLine cmd;
	cmd.AddValue("maxRange", "Wifi range of each node (m)", maxRange);
	cmd.AddValue("numNodes", "Number of nodes", numNodes);
	cmd.AddValue("interval", "Interval of beaconing (s)", interval);
	cmd.AddValue("expiration", "Interval to consider contact lost (s)", expiration);
	cmd.AddValue ("traceFile", "Ns2 movement trace file", traceFile);
	cmd.AddValue ("endSimulation", "End simulation time (h)", endSimulation);
	cmd.Parse(argc, argv);
}
void BusTopology :: Configure ( int argc , char * * argv ) { LogComponentEnable ( " " , LOG_LEVEL_ALL ) ; CommandLine cmd ; cmd . AddValue ( " " , " " , maxRange ) ; cmd . AddValue ( " " , " " , numNodes ) ; cmd . AddValue ( " " , " " , interval ) ; cmd . AddValue ( " " , " " , expiration ) ; cmd . AddValue ( " " , " " , traceFile ) ; cmd . AddValue ( " " , " " , endSimulation ) ; cmd . Parse ( argc , argv ) ; }
Set different parameters that can be set up manually from command args
Set different parameters that can be set up manually from command args