1 package at.ac.tuwien.sbc.valesriegler.xvsm.cook;
5 import org.slf4j.Logger;
6 import org.slf4j.LoggerFactory;
8 import at.ac.tuwien.sbc.valesriegler.pizzeria.gui.DEP_Table;
9 import at.ac.tuwien.sbc.valesriegler.xvsm.XVSMConnector;
10 import at.ac.tuwien.sbc.valesriegler.xvsm.waiter.Waiter;
13 private static final String USAGE = "Cook needs exactly one parameter: ID of type Integer";
14 private static final Logger log = LoggerFactory.getLogger(Cook.class);
17 private XVSMConnector xvsm;
19 public static void main(String[] args) {
20 if(args.length != 1) {
21 throw new IllegalArgumentException(USAGE);
26 parsedId = Integer.parseInt(args[0]);
27 } catch (NumberFormatException e) {
32 Cook cook = new Cook(parsedId);
36 private void start() {
37 initSpaceCommunication();
43 private void initSpaceCommunication() {
44 xvsm = new XVSMConnector();
45 xvsm.initSpaceCommunication();
47 log.info("Space Connection established!");
54 log.info("I AM A Cook WITH ID {}", id);