1 package at.ac.tuwien.sbc.valesriegler.xvsm.cook;
3 import org.slf4j.Logger;
4 import org.slf4j.LoggerFactory;
6 import at.ac.tuwien.sbc.valesriegler.xvsm.CookXVSM;
9 private static final String USAGE = "Cook needs exactly one parameter: ID of type Integer";
10 private static final Logger log = LoggerFactory.getLogger(Cook.class);
13 private CookXVSM xvsm;
15 public static void main(String[] args) {
16 if(args.length != 1) {
17 throw new IllegalArgumentException(USAGE);
22 parsedId = Integer.parseInt(args[0]);
23 } catch (NumberFormatException e) {
28 Cook cook = new Cook(parsedId);
32 private void start() {
33 xvsm = new CookXVSM(id);
35 xvsm.listenForPizzas();
42 log.info("I AM A Cook WITH ID {}", id);