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.AbstractXVSMConnector;
7 import at.ac.tuwien.sbc.valesriegler.xvsm.CookXVSM;
8 import at.ac.tuwien.sbc.valesriegler.xvsm.XVSMConnector;
11 private static final String USAGE = "Cook needs exactly one parameter: ID of type Integer";
12 private static final Logger log = LoggerFactory.getLogger(Cook.class);
15 private CookXVSM xvsm;
17 public static void main(String[] args) {
18 if(args.length != 1) {
19 throw new IllegalArgumentException(USAGE);
24 parsedId = Integer.parseInt(args[0]);
25 } catch (NumberFormatException e) {
30 Cook cook = new Cook(parsedId);
34 private void start() {
35 xvsm = new CookXVSM(id);
37 xvsm.listenForPizzas();
44 log.info("I AM A Cook WITH ID {}", id);