Last change
on this file since 210 was 209, checked in by Tim Baarslag, 6 years ago |
First GUI design of one-to-many negotiation
|
File size:
479 bytes
|
Rev | Line | |
---|
[209] | 1 | package negotiator.onetomany;
|
---|
| 2 |
|
---|
| 3 | public class Main
|
---|
| 4 | {
|
---|
| 5 | private Portfolio portfolio;
|
---|
| 6 |
|
---|
| 7 | public Main()
|
---|
| 8 | {
|
---|
| 9 | Product redProduct = new Product("Red");
|
---|
| 10 | Product greenProduct = new Product("Purple");
|
---|
| 11 | Product blueProduct = new Product("Blue");
|
---|
| 12 |
|
---|
| 13 | portfolio = new Portfolio();
|
---|
| 14 |
|
---|
| 15 | portfolio.addProduct(redProduct);
|
---|
| 16 | portfolio.addProduct(greenProduct);
|
---|
| 17 | portfolio.addProduct(blueProduct);
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | public Portfolio getPortfolio()
|
---|
| 21 | {
|
---|
| 22 | return portfolio;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.