Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. public class AuctionContext {
  2. public static enum AuctionType {SAA, CCA, LUA};
  3. private AuctionType type;
  4. private int round;
  5. private int duration_ms;
  6. private ArrayList<AuctionItem> itemList;
  7. private double minIncreament;
  8. //priceTick is used in CCA and LUA auction, keep track of current
  9. price for all items.
  10.  
  11. private double priceTick = 0;
  12. private boolean finalRound;
  13. public static int numberOfActivityRuleWaivers = 2;
  14. private boolean activityRuleAnnounced = false;
  15. private int activityRuleStartRound = -1;
  16. private int test=15;
  17. private int summElig;
  18.  
  19. child = doc.createElement("waivers");
  20. child.setAttribute("value", Integer.toString(numberOfActivityRuleWaivers));
  21. root.appendChild(child);
  22.  
  23. <polymer-element name="auction-saa">
  24. <template>
  25. <link rel="stylesheet" href="./auction-saa.css" type="text/css" />
  26.  
  27. <div id="auction-saa">
  28. <div class="title">
  29. <p>SAA - <span>Round {{ round }}</span></p>
  30. </div>
  31. <div id="box">
  32. <p id="time"></p>
  33. <p id="timeduration"> Minimum Increment: {{ minimumIncreament }} </p>
  34. <p id="waivers"> Number of Waivers {{waivers}}</p>
  35. <p id="warning"></p>
  36. <p id="activityruleannouncement"></p>
  37. <p id="leadingitems"></p>
  38. <p id="activityandeligibility"></p>
  39.  
  40. Polymer('auction-saa', {
  41. waivers:-1,
  42. test:-1,
  43.  
  44. displaywaivers:function()
  45. { this.summElig = this.saa.summElig;
  46.  
  47. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement