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.control.WashingMessage.Order;
public final class SpinController extends ActorThread<WashingMessage> {
public final class ControllerSpin extends ActorThread<WashingMessage> {
private WashingIO io;
private Spin spin = new Spin();
private WashingMessage m;
public SpinController(WashingIO io) {
public ControllerSpin(WashingIO io) {
this.io = io;
}

View file

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

View file

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

View file

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