Line | |
---|
1 | package negotiator.onetomany;
|
---|
2 |
|
---|
3 | import java.awt.Color;
|
---|
4 |
|
---|
5 | public class Main
|
---|
6 | {
|
---|
7 | private Portfolio portfolio;
|
---|
8 | private DemandPlan demandPlan;
|
---|
9 |
|
---|
10 | public Main()
|
---|
11 | {
|
---|
12 | Product redProduct = new Product("Red");
|
---|
13 | Product pinkProduct = new Product("Pink");
|
---|
14 | Product blueProduct = new Product("Blue");
|
---|
15 |
|
---|
16 |
|
---|
17 | portfolio = new Portfolio();
|
---|
18 |
|
---|
19 | portfolio.addProduct(redProduct);
|
---|
20 | portfolio.addProduct(pinkProduct);
|
---|
21 | portfolio.addProduct(blueProduct);
|
---|
22 |
|
---|
23 | // int s = portfolio.size();
|
---|
24 | // int q = 1;
|
---|
25 | // for (int i=0; i<s; i++)
|
---|
26 | // {
|
---|
27 | // demandPlan.addProduct(portfolio.getProduct(0), q+i*2);
|
---|
28 | // }
|
---|
29 | }
|
---|
30 |
|
---|
31 | public Portfolio getPortfolio()
|
---|
32 | {
|
---|
33 | return portfolio;
|
---|
34 | }
|
---|
35 |
|
---|
36 | // public DemandPlan getDemandPlan()
|
---|
37 | // {
|
---|
38 | // return demandPlan;
|
---|
39 | // }
|
---|
40 |
|
---|
41 | }
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.