]> git.somenet.org - pub/jan/sbc.git/blob - src/main/java/at/ac/tuwien/sbc/valesriegler/types/PizzaType.java
Space cooks prepare pizzas and Pizzeria GUI shows that
[pub/jan/sbc.git] / src / main / java / at / ac / tuwien / sbc / valesriegler / types / PizzaType.java
1 package at.ac.tuwien.sbc.valesriegler.types;
2
3 import java.io.Serializable;
4
5 /**
6  * enum denoting all the kinds of pizzas we have. Thats pretty few :(
7  * 
8  * @author jan
9  * 
10  */
11 public enum PizzaType implements Serializable {
12         MARGHERITA(5, 3), SALAMI(5.5, 7), CARDINALE(6, 5);
13
14         public final double price;
15         public final long duration;
16
17         private PizzaType(double price, long duration) {
18                 this.price = price;
19                 this.duration = duration;
20         }
21 }