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.1 KB
|
Line | |
---|
1 | package onetomany.etc;
|
---|
2 | //package negotiator.onetomany;
|
---|
3 | //
|
---|
4 | //import java.util.HashMap;
|
---|
5 | //import java.util.Set;
|
---|
6 | //
|
---|
7 | //
|
---|
8 | ///**
|
---|
9 | // * * A demand plan is a specification of the demand of an agent for each product.
|
---|
10 | // * An example:
|
---|
11 | // * Red -> 4, Blue -> 4, Yellow -> 2
|
---|
12 | // *
|
---|
13 | // *
|
---|
14 | // *
|
---|
15 | // *
|
---|
16 | // *
|
---|
17 | // * @author Faria Nassiri-Mofakham
|
---|
18 | // *
|
---|
19 | // */
|
---|
20 | //public class Bid extends DemandPlan
|
---|
21 | //{
|
---|
22 | //
|
---|
23 | // private HashMap<Product, Integer> bid;
|
---|
24 | //
|
---|
25 | //
|
---|
26 | // public Bid()
|
---|
27 | // {
|
---|
28 | // this.bid = new HashMap<Product, Integer>();
|
---|
29 | // }
|
---|
30 | //
|
---|
31 | // public HashMap<Product, Integer> getBid()
|
---|
32 | // {
|
---|
33 | // return bid;
|
---|
34 | // }
|
---|
35 | //
|
---|
36 | //
|
---|
37 | // @Override
|
---|
38 | // public String toString()
|
---|
39 | // {
|
---|
40 | // return bid.toString();
|
---|
41 | // }
|
---|
42 | //
|
---|
43 | // public void setQuantity(Product p, Integer n)
|
---|
44 | // {
|
---|
45 | // bid.put(p,n);
|
---|
46 | // }
|
---|
47 | //
|
---|
48 | // public Integer getQuantity(Product p)
|
---|
49 | // {
|
---|
50 | // if (this.bid.containsKey(p))
|
---|
51 | // return bid.get(p);
|
---|
52 | // else
|
---|
53 | // return 0;
|
---|
54 | // }
|
---|
55 | //
|
---|
56 | //
|
---|
57 | //
|
---|
58 | // public Set<Product> getKeys()
|
---|
59 | // {
|
---|
60 | // return bid.keySet();
|
---|
61 | // }
|
---|
62 | //
|
---|
63 | //
|
---|
64 | // public Set<Integer> getValues()
|
---|
65 | // {
|
---|
66 | // return (Set<Integer>) bid.values();
|
---|
67 | // }
|
---|
68 | //
|
---|
69 | //
|
---|
70 | //}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.