Examples of ItemStatus


Examples of edu.brown.benchmark.auctionmark.AuctionMarkConstants.ItemStatus

        assert (advRow);
        double i_initial_price = results[0].getDouble(0);
        double i_current_price = results[0].getDouble(1);
        long i_num_bids = results[0].getLong(2);
        TimestampType i_end_date = results[0].getTimestampAsTimestamp(3);
        ItemStatus i_status = ItemStatus.get(results[0].getLong(4));
        long newBidId = 0;
        long newBidMaxBuyerId = buyer_id;
       
        if (i_end_date.compareTo(currentTime) < 0 || i_status != ItemStatus.OPEN) {
            if (debug)
View Full Code Here

Examples of edu.brown.benchmark.auctionmark.AuctionMarkConstants.ItemStatus

            int col = 0;
            ItemId i_id = new ItemId(vt.getLong(col++));
            double i_current_price = vt.getDouble(col++);
            TimestampType i_end_date = vt.getTimestampAsTimestamp(col++);
            int i_num_bids = (int)vt.getLong(col++);
            ItemStatus i_status = ItemStatus.get(vt.getLong(col++));
            assert(i_status == status);
           
            ItemInfo itemInfo = new ItemInfo(i_id, i_current_price, i_end_date, i_num_bids);
            this.addItemToProperQueue(itemInfo, false);
            ctr++;
View Full Code Here

Examples of edu.brown.benchmark.auctionmark.AuctionMarkConstants.ItemStatus

        TimestampType baseTime = (is_loader ? this.getBenchmarkStartTime() :
                                              this.getCurrentTime());
        assert(itemInfo.endDate != null);
        assert(baseTime != null) : "is_loader=" + is_loader;
        long remaining = itemInfo.endDate.getMSTime() - baseTime.getMSTime();
        ItemStatus ret;
       
        // Already ended
        if (remaining <= 100000) {
            if (itemInfo.numBids > 0 && itemInfo.status != ItemStatus.CLOSED) {
                synchronized (this.previousWaitForPurchase) {
View Full Code Here

Examples of org.mctourney.autoreferee.goals.AutoRefGoal.ItemStatus

    Set<BlockData> goals = Sets.newHashSet();

    for (AutoRefGoal goal : team.getTeamGoals())
    {
      if (!goal.hasItem()) continue;
      ItemStatus is = goal.getItemStatus();
      if (is == ItemStatus.TARGET || is == ItemStatus.CARRYING) continue;
      goals.add(goal.getItem());
    }
    if (goals.isEmpty()) return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.