-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeliveryDemo.java
More file actions
40 lines (35 loc) · 1.43 KB
/
Copy pathDeliveryDemo.java
File metadata and controls
40 lines (35 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Provide a simple demonstration of running a stage-one
* scenario. Three simulaions are create:
* DemoOneOrder: A single order and delivery person are created, and a pickup
* requested. As the simulation is run, the order
* should be picked up and then delivered to their destination.
*
* DemoInicial: Two orders and three delivery persons are created, two pickups
* requested. As the simulation is run, the orders
* should be picked up and then delivered to their destination.
*
* DemoAvanzada: Some orders and delivery persons are created, so some pickup
* are requested. As the simulation is run, all the orders
* should be picked up and then delivered to to their destination.
*
* @author DP Clasess
* @version 2024
*/
public class DeliveryDemo
{
public static final int MAXX = 20; //Valor máximo de número de filas
public static final int MAXY = 20; //Valor máximo de número de columnas
public static void main() {
//Comentar o descomentar cada demo para ser ejecutada
//Demo con 1 paquete y 1 persona de reparto
//DemoOneOrderFinal demoOne = new DemoOneOrderFinal();
//demoOne.run();
//Demo con 2 paquetes y 3 personas de reparto
//DemoInicialFinal demoIni = new DemoInicialFinal();
//demoIni.run();
//Demo con varios paquetes y personas de reparto
DemoAvanzadaFinal demoAvan = new DemoAvanzadaFinal();
demoAvan.run();
}
}