Package edu.brown.benchmark.auctionmark.util

Examples of edu.brown.benchmark.auctionmark.util.UserId


        }
        @Override
        protected int populateRow() {
            int col = 0;

            UserId u_id = this.idGenerator.next();
           
            // U_ID
            this.row[col++] = u_id;
            // U_RATING
            this.row[col++] = this.randomRating.nextInt();
View Full Code Here


        @Override
        protected int populateRow(LoaderItemInfo itemInfo, short remaining) {
            int col = 0;
            assert(itemInfo.numBids > 0);
           
            UserId bidderId = null;
           
            // Figure out the UserId for the person bidding on this item now
            if (this.new_item) {
                // If this is a new item and there is more than one bid, then
                // we'll choose the bidder's UserId at random.
View Full Code Here

        protected int populateRow(LoaderItemInfo itemInfo, short remaining) {
            int col = 0;
           
            // Make it more likely that a user that has bid on an item is watching it
            ObjectHistogram<UserId> bidderHistogram = itemInfo.getBidderHistogram();
            UserId buyerId = null;
            try {
                profile.getRandomBuyerId(bidderHistogram, itemInfo.sellerId);
            } catch (NullPointerException ex) {
                LOG.error("Busted Bidder Histogram:\n" + bidderHistogram);
                throw ex;
View Full Code Here

            double currentPrice = vt.getDouble("i_current_price");
            ItemInfo itemInfo = new ItemInfo(itemId, currentPrice, endDate, numBids);
            if (vt.hasColumn("ip_id")) itemInfo.status = ItemStatus.CLOSED;
            if (vt.hasColumn("i_status")) itemInfo.status = ItemStatus.get(vt.getLong("i_status"));
           
            UserId sellerId = new UserId(vt.getLong("i_u_id"));
            assert (itemId.getSellerId().equals(sellerId));
           
            ItemStatus qtype = profile.addItemToProperQueue(itemInfo, false);
            this.updated.put(qtype);
View Full Code Here

                    this.userIdGenerators.put(client_idx, gen);
                }
            } // SYNCH
        }
       
        UserId user_id = null;
        int tries = 1000;
        while (user_id == null && tries-- > 0) {
            // We first need to figure out how many items our seller needs to have
            long itemCount = -1;
            assert(min_item_count < this.users_per_item_count.getMaxValue());
View Full Code Here

TOP

Related Classes of edu.brown.benchmark.auctionmark.util.UserId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.