commit dd2aae601e9588913a116d79e75b83343bc95c41 parent 6b9e9d07cd52c517d16acd844b0215102d5227a6 Author: William Lindholm <william_lindholm@outlook.com> Date: Wed, 22 Feb 2023 09:00:43 +0100 changed simulation speed from 100x to 1x Diffstat:
| M | OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/CoffeeMaker.java | | | 2 | +- |
| M | OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/Worker.java | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/CoffeeMaker.java b/OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/CoffeeMaker.java @@ -11,7 +11,7 @@ import coffee.Coffee; import coffee.Latte; public class CoffeeMaker extends Thread { - private static final int timeScale = 100; // used to change speed of simulation (default = 1). + private static final int timeScale = 1; // used to change speed of simulation (default = 1). private int timeToCreateCoffee = 2000; //the default time it takes the coffeemaker to create one coffee. private int timeToServeCoffee = 1000; //the default time it takes the coffeemaker to serve one cup of coffee. private int coffeBufferSize = 20; //the max amount of coffees the coffeemaker can store. diff --git a/OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/Worker.java b/OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/Worker.java @@ -7,7 +7,7 @@ import java.util.TimerTask; import coffee.Coffee; public class Worker extends Thread { - private static final int timeScale = 100; // used to change speed of simulation (default = 1) + private static final int timeScale = 1; // used to change speed of simulation (default = 1) private String name; private int energy;