Last change
on this file since 243 was 236, checked in by Faria Nassiri Mofakham, 5 years ago |
Bug in classes Chip, Stack and operations, Bundle and operations fixed; they work well. Old versions of aggregation operators and tests copied into an old file.
|
File size:
897 bytes
|
Rev | Line | |
---|
[236] | 1 | //package negotiator.onetomany;
|
---|
| 2 | //
|
---|
| 3 | //import java.util.HashMap;
|
---|
| 4 | //
|
---|
| 5 | ///**
|
---|
| 6 | // * @author Faria Nassiri-Mofakham
|
---|
| 7 | // *
|
---|
| 8 | // */
|
---|
| 9 | //public class Preference extends DemandPlan
|
---|
| 10 | //{
|
---|
[228] | 11 | //
|
---|
[236] | 12 | // private Bid desiredBid = new Bid();
|
---|
| 13 | // private HashMap<Product, Double> weight = new HashMap<Product, Double>();
|
---|
| 14 | //
|
---|
| 15 | // Product redProduct = new Product("Red");
|
---|
| 16 | // Product pinkProduct = new Product("Pink");
|
---|
| 17 | // Product blueProduct = new Product("Blue");
|
---|
| 18 | //
|
---|
| 19 | //
|
---|
| 20 | //// desiredBid.setQuantity(redProduct,4);
|
---|
| 21 | //// desiredBid.setQuantity(pinkProduct,4);
|
---|
| 22 | //// desiredBid.setQuantity(blueProduct,2);
|
---|
| 23 | ////
|
---|
| 24 | //// weight.setWeight(redProduct,0.6);
|
---|
| 25 | //// weight.setWeight(pinkProduct,0.3);
|
---|
| 26 | //// weight.setWeight(blueProduct,0.1);
|
---|
| 27 | //
|
---|
| 28 | //
|
---|
| 29 | // public Bid getDesiredBid()
|
---|
| 30 | // {
|
---|
| 31 | // return desiredBid;
|
---|
| 32 | // }
|
---|
| 33 | //
|
---|
| 34 | //
|
---|
| 35 | // public HashMap<Product, Double> getWeight()
|
---|
| 36 | // {
|
---|
| 37 | // return weight;
|
---|
| 38 | // }
|
---|
| 39 | //
|
---|
| 40 | //}
|
---|
| 41 | //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.