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