Loading Scenarions/scalability-1/a.out +528 B (105 KiB) File changed.No diff preview for this file type. View original file View changed file Scenarions/scalability-1/scalability.cpp +11 −2 Original line number Diff line number Diff line Loading @@ -9,6 +9,8 @@ #include <list> #include <unistd.h> #include <fstream> #include <sstream> using namespace std; using namespace adevs; Loading Loading @@ -222,8 +224,15 @@ int main(int argc, char **argv) // // Here we get the arguments int dataRate = atof(argv[1]); double lossRate = atof(argv[2]); istringstream ss1(argv[1]); int dataRate; if (ss1 >> dataRate){ } cout << " DATARATE "<<dataRate; double lossRate; istringstream ss2(argv[2]); if (ss2 >> lossRate){ } std::string path = argv[3]; // Paths to images std::string historian = path+"/historian.img"; Loading Scenarions/scalability-2/a.out +632 B (105 KiB) File changed.No diff preview for this file type. View original file View changed file Scenarions/scalability-2/scalability.cpp +25 −8 Original line number Diff line number Diff line Loading @@ -9,6 +9,8 @@ #include <list> #include <unistd.h> #include <fstream> #include <sstream> using namespace std; using namespace adevs; Loading Loading @@ -77,7 +79,7 @@ class Link: void delta_ext(double e, const Bag<IO_Type>& xb) { // Account for time that has elapsed ttg -= e; ttg = ttg - e; // Add new packets to the queue for (auto& x: xb) { Loading Loading @@ -221,12 +223,27 @@ int main(int argc, char **argv) // // sudo poweroff // // Here we get the arguments int dataRate1 = atof(argv[1]); double lossRate1 = atof(argv[2]); int dataRate2 = atof(argv[3]); double lossRate2 = atof(argv[4]); istringstream ss1(argv[1]); int dataRate1; if (ss1 >> dataRate1){ } cout << " DATARATE "<<dataRate1; double lossRate1; istringstream ss2(argv[2]); if (ss2 >> lossRate1){ } cout << " DATARATE "<<lossRate1<<endl; istringstream ss3(argv[3]); int dataRate2; if (ss3 >> dataRate2){ } cout << " DATARATE "<<dataRate2; double lossRate2; istringstream ss4(argv[4]); if (ss4 >> lossRate2){ } cout << " DATARATE "<<lossRate2<<endl; std::string path = argv[5]; // Paths to images std::string historian = path+"/historian.img"; Loading Loading
Scenarions/scalability-1/a.out +528 B (105 KiB) File changed.No diff preview for this file type. View original file View changed file
Scenarions/scalability-1/scalability.cpp +11 −2 Original line number Diff line number Diff line Loading @@ -9,6 +9,8 @@ #include <list> #include <unistd.h> #include <fstream> #include <sstream> using namespace std; using namespace adevs; Loading Loading @@ -222,8 +224,15 @@ int main(int argc, char **argv) // // Here we get the arguments int dataRate = atof(argv[1]); double lossRate = atof(argv[2]); istringstream ss1(argv[1]); int dataRate; if (ss1 >> dataRate){ } cout << " DATARATE "<<dataRate; double lossRate; istringstream ss2(argv[2]); if (ss2 >> lossRate){ } std::string path = argv[3]; // Paths to images std::string historian = path+"/historian.img"; Loading
Scenarions/scalability-2/a.out +632 B (105 KiB) File changed.No diff preview for this file type. View original file View changed file
Scenarions/scalability-2/scalability.cpp +25 −8 Original line number Diff line number Diff line Loading @@ -9,6 +9,8 @@ #include <list> #include <unistd.h> #include <fstream> #include <sstream> using namespace std; using namespace adevs; Loading Loading @@ -77,7 +79,7 @@ class Link: void delta_ext(double e, const Bag<IO_Type>& xb) { // Account for time that has elapsed ttg -= e; ttg = ttg - e; // Add new packets to the queue for (auto& x: xb) { Loading Loading @@ -221,12 +223,27 @@ int main(int argc, char **argv) // // sudo poweroff // // Here we get the arguments int dataRate1 = atof(argv[1]); double lossRate1 = atof(argv[2]); int dataRate2 = atof(argv[3]); double lossRate2 = atof(argv[4]); istringstream ss1(argv[1]); int dataRate1; if (ss1 >> dataRate1){ } cout << " DATARATE "<<dataRate1; double lossRate1; istringstream ss2(argv[2]); if (ss2 >> lossRate1){ } cout << " DATARATE "<<lossRate1<<endl; istringstream ss3(argv[3]); int dataRate2; if (ss3 >> dataRate2){ } cout << " DATARATE "<<dataRate2; double lossRate2; istringstream ss4(argv[4]); if (ss4 >> lossRate2){ } cout << " DATARATE "<<lossRate2<<endl; std::string path = argv[5]; // Paths to images std::string historian = path+"/historian.img"; Loading