simulations/scratch/bus-topology.cc
void
BusTopology::Run()
{
	CreateNodes();
	CreateDevices();
	InstallInternetStack();
	InstallApplications();

	InitializeGraph();

	double totalTime = endSimulation * 3600;	// Seconds

	std::cout << "Starting simulation for " <<  totalTime << "s ..." << std::endl;

	SimulationUtils simProgress(progressInterval);
	simProgress.Start(totalTime);

	Simulator::Stop(Seconds(totalTime));
	Simulator::Run();

	std::cout << "Simulation Done!" << std::endl;
	ExportGraph();

	Simulator::Destroy();
}
/**
 * Run the simulation, showing the progress of it
 */
Run the simulation, showing the progress of it
Run the simulation showing the progress of it
void
BusTopology::Run()
{
	CreateNodes();
	CreateDevices();
	InstallInternetStack();
	InstallApplications();
	InitializeGraph();
	double totalTime = endSimulation * 3600;	
	std::cout << "Starting simulation for " <<  totalTime << "s ..." << std::endl;
	SimulationUtils simProgress(progressInterval);
	simProgress.Start(totalTime);
	Simulator::Stop(Seconds(totalTime));
	Simulator::Run();
	std::cout << "Simulation Done!" << std::endl;
	ExportGraph();
	Simulator::Destroy();
}
void BusTopology :: Run ( ) { CreateNodes ( ) ; CreateDevices ( ) ; InstallInternetStack ( ) ; InstallApplications ( ) ; InitializeGraph ( ) ; double totalTime = endSimulation * 3600 ; std :: cout << " " << totalTime << " " << std :: endl ; SimulationUtils simProgress ( progressInterval ) ; simProgress . Start ( totalTime ) ; Simulator :: Stop ( Seconds ( totalTime ) ) ; Simulator :: Run ( ) ; std :: cout << " " << std :: endl ; ExportGraph ( ) ; Simulator :: Destroy ( ) ; }
Run the simulation, showing the progress of it
Run the simulation showing the progress of it
// Seconds