Rename controllers with prefix for better file ordering

This commit is contained in:
Imbus 2024-11-03 17:35:22 +01:00
parent b0210cbfbd
commit 22e0345d85
4 changed files with 9 additions and 9 deletions

View file

@ -4,12 +4,12 @@ import actor.ActorThread;
import wash.io.WashingIO; import wash.io.WashingIO;
import wash.control.WashingMessage.Order; import wash.control.WashingMessage.Order;
public final class SpinController extends ActorThread<WashingMessage> { public final class ControllerSpin extends ActorThread<WashingMessage> {
private WashingIO io; private WashingIO io;
private Spin spin = new Spin(); private Spin spin = new Spin();
private WashingMessage m; private WashingMessage m;
public SpinController(WashingIO io) { public ControllerSpin(WashingIO io) {
this.io = io; this.io = io;
} }

View file

@ -4,12 +4,12 @@ import actor.ActorThread;
import wash.io.WashingIO; import wash.io.WashingIO;
import wash.control.WashingMessage.Order; import wash.control.WashingMessage.Order;
public final class TemperatureController extends ActorThread<WashingMessage> { public final class ControllerTemp extends ActorThread<WashingMessage> {
private WashingIO io; private WashingIO io;
private Heater heater; private Heater heater;
private WashingMessage m; private WashingMessage m;
public TemperatureController(WashingIO io) { public ControllerTemp(WashingIO io) {
this.io = io; this.io = io;
heater = new Heater(40); heater = new Heater(40);
} }

View file

@ -3,13 +3,13 @@ package wash.control;
import actor.ActorThread; import actor.ActorThread;
import wash.io.WashingIO; import wash.io.WashingIO;
public class WaterController extends ActorThread<WashingMessage> { public class ControllerWater extends ActorThread<WashingMessage> {
WashingMessage.Order o; WashingMessage.Order o;
WashingMessage m; WashingMessage m;
WashingIO io; WashingIO io;
public WaterController(WashingIO io) { public ControllerWater(WashingIO io) {
this.io = io; this.io = io;
} }

View file

@ -12,9 +12,9 @@ public class Wash {
WashingIO io = sim.startSimulation(); WashingIO io = sim.startSimulation();
ActorThread<WashingMessage> temp = new TemperatureController(io); ActorThread<WashingMessage> temp = new ControllerTemp(io);
ActorThread<WashingMessage> water = new WaterController(io); ActorThread<WashingMessage> water = new ControllerWater(io);
ActorThread<WashingMessage> spin = new SpinController(io); ActorThread<WashingMessage> spin = new ControllerSpin(io);
temp.start(); temp.start();
water.start(); water.start();