source: src/main/java/negotiator/onetomany/Main.java@ 216

Last change on this file since 216 was 215, checked in by Faria Nassiri Mofakham, 6 years ago
File size: 768 bytes
RevLine 
[209]1package negotiator.onetomany;
2
[211]3import java.awt.Color;
4
[209]5public class Main
6{
7 private Portfolio portfolio;
[215]8 private DemandPlan demandPlan;
[209]9
10 public Main()
11 {
[212]12 Product redProduct = new Product("Red");
13 Product pinkProduct = new Product("Pink");
14 Product blueProduct = new Product("Blue");
[211]15
[215]16
[209]17 portfolio = new Portfolio();
[215]18
[209]19 portfolio.addProduct(redProduct);
[212]20 portfolio.addProduct(pinkProduct);
[209]21 portfolio.addProduct(blueProduct);
[215]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// }
[209]29 }
30
31 public Portfolio getPortfolio()
32 {
33 return portfolio;
34 }
[215]35
36// public DemandPlan getDemandPlan()
37// {
38// return demandPlan;
39// }
[209]40
41}
[215]42
Note: See TracBrowser for help on using the repository browser.