1 package at.ac.tuwien.sbc.valesriegler.types;
3 import java.io.Serializable;
5 import at.ac.tuwien.sbc.valesriegler.cook.Cook;
6 import at.ac.tuwien.sbc.valesriegler.waiter.Waiter;
8 public class Pizza implements Serializable {
9 final private PizzaType type;
12 private static int nextID = 0;
14 final public int cookId;
15 public Waiter deliveryAgent;
17 // private Person consumer;
19 public Pizza(PizzaType type, Cook producer) {
22 cookId = producer.getId();
26 public String toString() {
27 return "Pizza [type=" + type + ", id=" + id + ", cookId=" + cookId + ", deliveryAgent=" + deliveryAgent + "]";