Line | |
---|
1 | package negotiator.onetomany;
|
---|
2 |
|
---|
3 | import java.util.ArrayList;
|
---|
4 | import java.util.HashMap;
|
---|
5 | import java.util.List;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * @author Faria Nassiri-Mofakham
|
---|
9 | *
|
---|
10 | */
|
---|
11 | public class DemandPlan
|
---|
12 | {
|
---|
13 | private HashMap<Product, Integer> demandPlan;
|
---|
14 |
|
---|
15 |
|
---|
16 | public DemandPlan()
|
---|
17 | {
|
---|
18 | this.demandPlan = new HashMap<Product, Integer>();
|
---|
19 | }
|
---|
20 |
|
---|
21 | public HashMap<Product, Integer> getDemandPlan()
|
---|
22 | {
|
---|
23 | return demandPlan;
|
---|
24 | }
|
---|
25 |
|
---|
26 | // public void addProduct(Product p, Integer i)
|
---|
27 | // {
|
---|
28 | // demandPlan.add(p,i);
|
---|
29 | // }
|
---|
30 |
|
---|
31 | @Override
|
---|
32 | public String toString()
|
---|
33 | {
|
---|
34 | return demandPlan.toString();
|
---|
35 | }
|
---|
36 |
|
---|
37 | //public Portfolio getPortfolio()
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.