1 package at.ac.tuwien.sbc.valesriegler.types;
3 import java.io.Serializable;
6 * Class denoting one Pizza in the future and its state.
11 public class PizzaOrder implements Serializable {
12 private static int nextID = 0;
15 private final PizzaType pizzaType;
16 private PizzaOrderStatus status;
18 public PizzaOrder(PizzaType pizzaType) {
20 this.pizzaType = pizzaType;
21 status = PizzaOrderStatus.NEW;
24 public PizzaType getPizzaType() {
28 public PizzaOrderStatus getStatus() {
36 public void setStatus(PizzaOrderStatus status) {
41 public String toString() {
42 return "PizzaOrder [id=" + id + ", pizzaType=" + pizzaType + ", status=" + status + "]";