1 package at.ac.tuwien.sbc.valesriegler.types;
3 import java.io.Serializable;
5 import at.ac.tuwien.sbc.valesriegler.cook.JMSCook;
6 import at.ac.tuwien.sbc.valesriegler.waiter.Waiter;
9 * this is a PIZZA! omnomnomnom
14 public class Pizza implements Serializable {
16 final private PizzaType type;
17 final public int cookId;
18 public Waiter deliveryAgent;
20 // private Person consumer;
22 private Pizza(int id, PizzaType type, int cookId) {
28 public static Pizza createPizzaFromPizzaOrder(PizzaOrder pizzaorder, JMSCook producer) {
29 return new Pizza(pizzaorder.getId(), pizzaorder.getPizzaType(), producer.getId());
33 public String toString() {
34 return "Pizza [type=" + type + ", id=" + id + ", cookId=" + cookId + ", deliveryAgent=" + deliveryAgent + "]";