Skip to content
Snippets Groups Projects
Commit 4c500a90 authored by GUILLAUME Gwenael's avatar GUILLAUME Gwenael
Browse files

Update ElevatorSimulator

parent 2b8023bb
No related branches found
No related tags found
No related merge requests found
Pipeline #16802 passed
......@@ -11,6 +11,9 @@ public class ControlCommand implements IControlCommand{
private IPanel panel;
private int actual;
private final int MAX_LEVEL;
public ControlCommand(Schedule schedule, IElevator elevator, IPanel panel, int maxLevel){
......@@ -18,12 +21,13 @@ public class ControlCommand implements IControlCommand{
this.elevator = elevator;
this.panel = panel;
this.MAX_LEVEL = maxLevel;
this.actual = 0;
}
@Override
public int getEtage() {
return 0;
return actual;
}
@Override
......@@ -32,6 +36,10 @@ public class ControlCommand implements IControlCommand{
if(this.panel.getAndResetDownButton(i))
this.schedule.addRequest(new Request(i, false));
}
}
@Override
public void checkAndProcess(){
}
}
......@@ -7,4 +7,7 @@ public interface IControlCommand {
// : enregistre requete
void registerRequest();
void checkAndProcess();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment