private void initData() {
        orders = new ArrayList<Order>();
        originProcesses = server.getGraphManager().getGraph().getOriginProcessSet();
        ArrayList<Item> items = new ArrayList<Item>();
        ArrayList<Package> packages = new ArrayList<Package>();

        //set items' attrs
        long time = System.currentTimeMillis();
        for (int i = 0; i < configuration.ITEM_NUM; i++) {
            if (i < configuration.PACK_NUM) {
                Package p = new Package(i);
                p.setLastTimeChecked(time);
                packages.add(p);
            } else {
                Item item = new Item(i);
                item.setPackageId(i % configuration.PACK_NUM);
                item.setLastTimeChecked(time);
                items.add(item);
            }
        }
        //set contained items for each package
        for (Package pack : packages) {
            ArrayList<Item> itemsContained = new ArrayList<Item>();
            for (Item item : items) {
                if (item.getPackageId() == pack.getId()) {
                    itemsContained.add(item);
                }
            }
            pack.setItems(itemsContained);
        }

        int proNum = originProcesses.size();
        for (int i = 0; i < proNum; i++) {
            Order order = new Order("origin" + i);
            ArrayList<Package> packList = new ArrayList<Package>();
            for (Package pack : packages) {
                if (pack.getId() % proNum == i) {
                    packList.add(pack);
                }
            }
            ArrayList<Item> itemList = new ArrayList<Item>();
            for (Package pack : packList) {
                itemList.addAll(pack.getItems());
            }
            order.setItems(itemList);
            order.setPackages(packList);
            orders.add(order);
        }
    }