Rev | Line | |
---|
[210] | 1 | package negotiator.onetomany;
|
---|
| 2 |
|
---|
| 3 | import java.util.ArrayList;
|
---|
[215] | 4 | import java.util.HashMap;
|
---|
[210] | 5 | import java.util.List;
|
---|
| 6 |
|
---|
| 7 | /**
|
---|
| 8 | * @author Faria Nassiri-Mofakham
|
---|
| 9 | *
|
---|
| 10 | */
|
---|
| 11 | public class DemandPlan
|
---|
| 12 | {
|
---|
[215] | 13 | private HashMap<Product, Integer> demandPlan;
|
---|
[210] | 14 |
|
---|
[215] | 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()
|
---|
[210] | 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.