1 package at.ac.tuwien.sbc.valesriegler.types;
3 import java.io.Serializable;
5 import at.ac.tuwien.sbc.valesriegler.common.HasId;
8 * Class denoting one Pizza in the future and its state.
13 public class PizzaOrder implements Serializable, HasId {
14 private static int nextID = 0;
17 private PizzaType pizzaType;
18 private PizzaOrderStatus status;
19 private Integer cookId;
21 public PizzaOrder(PizzaType pizzaType) {
23 this.pizzaType = pizzaType;
24 status = PizzaOrderStatus.NEW;
27 public PizzaType getPizzaType() {
31 public PizzaOrderStatus getStatus() {
39 public void setStatus(PizzaOrderStatus status) {
43 public void setId(Integer id) {
47 public void setPizzaType(PizzaType pizzaType) {
48 this.pizzaType = pizzaType;
51 public Integer getCookId() {
55 public void setCookId(Integer cookId) {
60 public String toString() {
61 return "PizzaOrder [id=" + id + ", pizzaType=" + pizzaType + ", status=" + status + "]";