1 package at.ac.tuwien.sbc.valesriegler.group;
4 import at.ac.tuwien.sbc.valesriegler.common.HasId;
5 import at.ac.tuwien.sbc.valesriegler.types.DeliveryGroupData;
6 import org.slf4j.Logger;
7 import org.slf4j.LoggerFactory;
9 public class DeliveryGroup implements Runnable, HasId {
10 private static final Logger log = LoggerFactory.getLogger(DeliveryGroup.class);
11 private static int idNext = 0;
13 private DeliveryGroupData deliveryGroupData;
15 public DeliveryGroup() {
16 this.deliveryGroupData = new DeliveryGroupData(++idNext);
19 public DeliveryGroup(int id) {
20 this.deliveryGroupData = new DeliveryGroupData(id);
23 public DeliveryGroupData getDeliveryGroupData() {
24 return deliveryGroupData;
29 return deliveryGroupData.getId();
34 //@jan you can use that like in at.ac.tuwien.sbc.valesriegler.group.Group if you need to...