un peu de javadoc plaisir

This commit is contained in:
Loris 2023-03-24 10:52:33 +01:00
parent b0f96e4173
commit 12fc8e3a80
3 changed files with 7 additions and 9 deletions

View File

@ -14,9 +14,7 @@ public class AccessPoint {
private Cell cell1;
private Cell cell2;
private List<User> users;
private FileOutputStream outputDataFile;
public AccessPoint(Cell cell1, Cell cell2){
@ -29,6 +27,7 @@ public class AccessPoint {
* @param duration
*/
public void startSimulation(int duration) {
/*
try{
Files.deleteIfExists(Paths.get("export", this.users.size() + ".csv"));
new File("export").mkdir();
@ -39,6 +38,7 @@ public class AccessPoint {
System.exit(1);
return;
}
*/
for (int ticks = 0; ticks < duration; ++ticks) {
// Simulation
cell1.reset();
@ -58,8 +58,6 @@ public class AccessPoint {
}
}
/*
private void analyseData(int tick) throws IOException {
for(int i = 0; i < frame.length; i++) {
@ -80,5 +78,4 @@ public class AccessPoint {
}
*/
}

View File

@ -10,9 +10,12 @@ import java.util.Random;
public class Cell {
private List<User> users;
/**
* scheduler utilisé par la cellule
*/
private Scheduler scheduler;
/**
* nombre de slots
* Nombre de slots
*/
private static int timeSlotNb;
/**
@ -20,7 +23,7 @@ public class Cell {
*/
private static int subCarrierNb;
/**
* trame
* Trame
*/
private ResourceBlock[][] frame;
/**

View File

@ -7,10 +7,8 @@ import fr.ntr.User;
public class MaxSNR extends Scheduler {
private List<User> users;
private ResourceBlock[][] frame;
public MaxSNR( ResourceBlock[][] frame, List<User> users) {
this.frame = frame;
this.users = users;