Last change
on this file since 256 was 253, checked in by Faria Nassiri Mofakham, 5 years ago |
Commit #1 of:
+ negotiator.onetomany package refactored into onetomany package.
+ info created for all contained the packages.
+ current work defined under onetomany.bargainingchipsgame.
+ in this package, onetomany.bargainingchipsgame.players package includes packages for utility function, coordinator, negotiatior, and buyer and seller.
+ negotiator.onetomany package now contains nothing, can be deleted.
+ Interaction thread
|
File size:
1.0 KB
|
Line | |
---|
1 | package onetomany.etc;
|
---|
2 | //package negotiator.onetomany;
|
---|
3 | //
|
---|
4 | //public class Utility
|
---|
5 | //{
|
---|
6 | // Bid bid;
|
---|
7 | //
|
---|
8 | // public Utility()
|
---|
9 | // {
|
---|
10 | // Product redProduct = new Product("Red");
|
---|
11 | // Product pinkProduct = new Product("Pink");
|
---|
12 | // Product blueProduct = new Product("Blue");
|
---|
13 | //
|
---|
14 | // Bid desiredBid = new Bid();
|
---|
15 | // desiredBid.setQuantity(redProduct, 4);
|
---|
16 | // desiredBid.setQuantity(pinkProduct, 4);
|
---|
17 | // desiredBid.setQuantity(blueProduct, 2);
|
---|
18 | // }
|
---|
19 | //}
|
---|
20 | //
|
---|
21 | //
|
---|
22 | ////
|
---|
23 | //// for (Product product : portfolio.getPortfolio())
|
---|
24 | //// demandPlan.setQuantity(product, (int)(Math.random()*numType+1));
|
---|
25 | ////
|
---|
26 | ////
|
---|
27 | //// double weight[]= {0.6,0.3,0.1};
|
---|
28 | ////
|
---|
29 | //// for (Product product : bid.getBid().keySet())
|
---|
30 | //// {
|
---|
31 | //// Integer q = bid.getQuantity(product);
|
---|
32 | ////
|
---|
33 | //// int sum += Abs(desierdQTY[bid.getKeys()]-q)*weight[product];
|
---|
34 | //// }
|
---|
35 | ////
|
---|
36 | ////this.getUtility=sum
|
---|
37 | ////
|
---|
38 | //// this.utility = new ArrayList<Product>();
|
---|
39 | //// }
|
---|
40 | ////
|
---|
41 | //// double getUtility(Bid b)
|
---|
42 | //// {
|
---|
43 | ////
|
---|
44 | //// return
|
---|
45 | //// } |
---|
Note:
See
TracBrowser
for help on using the repository browser.