Do multiple time the simulation depending of the number of users
This commit is contained in:
parent
97bdda71ce
commit
0bd32626f2
@ -24,12 +24,14 @@ public class Main {
|
||||
}
|
||||
int timeSlotNb = 2;
|
||||
int subCarrierNb = 100;
|
||||
List<User> users = generateUsers(maximumLoad, timeSlotNb, subCarrierNb);
|
||||
for(int i = 2; i < maximumLoad; i+=2) {
|
||||
List<User> users = generateUsers(i, timeSlotNb, subCarrierNb);
|
||||
ResourceBlock[][] frame = new ResourceBlock[timeSlotNb][subCarrierNb];
|
||||
Scheduler scheduler = new RoundRobin("round robin", 0, frame, users);
|
||||
AccessPoint accessPoint = new AccessPoint(scheduler, frame, users, timeSlotNb, subCarrierNb, 0, 50);
|
||||
accessPoint.startSimulation(numberOfTicks);
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.err.println("Please give launch arguments");
|
||||
System.err.println("gradle run --args=\"<number of ticks> <number of users>\"");
|
||||
|
Reference in New Issue
Block a user