lint: Fix indentation

This commit is contained in:
Quentin Legot 2023-04-07 10:37:03 +02:00
parent 797b2a17f7
commit 28d3596eb9

View File

@ -7,7 +7,7 @@ public class AccessPoint {
private final Cell cell1; private final Cell cell1;
private final Cell cell2; private final Cell cell2;
private final Boolean reuse3 = false; private final boolean reuse3 = false;
public AccessPoint (Cell cell1, Cell cell2){ public AccessPoint (Cell cell1, Cell cell2){
this.cell1 = cell1; this.cell1 = cell1;
@ -29,15 +29,15 @@ public class AccessPoint {
cell1.preScheduling(); cell1.preScheduling();
cell2.preScheduling(); cell2.preScheduling();
for(int ts = 0; ts < Cell.getTimeSlotNb(); ts++) { for(int ts = 0; ts < Cell.getTimeSlotNb(); ts++) {
for (int sp = 0; sp < (reuse3 ? Cell.getSubCarrierNb() : Cell.getSubCarrierNb()/2); sp++) { for (int sp = 0; sp < (reuse3 ? Cell.getSubCarrierNb() : Cell.getSubCarrierNb()/2); sp++) {
User user1 = cell1.schedule(ticks, ts, sp); User user1 = cell1.schedule(ticks, ts, sp);
User user2 = cell2.schedule(ticks, ts, reuse3 ? 0 : 50 + sp); User user2 = cell2.schedule(ticks, ts, reuse3 ? 0 : 50 + sp);
boolean haveInterference = user1 == user2 && user1 != null; boolean haveInterference = user1 == user2 && user1 != null;
cell1.consumeResource(ticks, ts, sp, haveInterference); cell1.consumeResource(ticks, ts, sp, haveInterference);
cell2.consumeResource(ticks, ts, sp, haveInterference); cell2.consumeResource(ticks, ts, sp, haveInterference);
cell1.postScheduling(user1); cell1.postScheduling(user1);
cell2.postScheduling(user2); cell2.postScheduling(user2);
} }
} }