Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.62 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package lapr.project.model;
  7.  
  8. import java.util.ArrayList;
  9. import java.util.List;
  10. import lapr.project.utils.*;
  11.  
  12. /**
  13. *
  14. * @author LAPR2-2017/2018-G013
  15. * 1151182 - Tomás Magalhães <1151182@isep.ipp.pt>
  16. * 1161383 - João Sousa <1161383@isep.ipp.pt>
  17. * 1161641 - Miguel Costa <1161641@isep.ipp.pt>
  18. * 1171164 - João Ribeiro <1171164@isep.ipp.pt>
  19. * 1171169 - José Ferreira <1171169@isep.ipp.pt> */
  20. public class Data {
  21.  
  22. public static EventCenter initializeData() {
  23. EventCenter eCenter = new EventCenter();
  24.  
  25. Product p1 = new Product("Product 1");
  26. Product p2 = new Product("Product 2");
  27. Product p3 = new Product("Product 3");
  28. Product p4 = new Product("Product 4");
  29. Product p5 = new Product("Product 5");
  30. Product p6 = new Product("Product 6");
  31. Product p7 = new Product("Product 7");
  32. Product p8 = new Product("Product 8");
  33. Product p9 = new Product("Product 9");
  34. List<Product> lp1 = new ArrayList<>();
  35. List<Product> lp2 = new ArrayList<>();
  36. List<Product> lp3 = new ArrayList<>();
  37. List<Product> lp4 = new ArrayList<>();
  38. List<Product> lp5 = new ArrayList<>();
  39. List<Product> lp6 = new ArrayList<>();
  40. List<Product> lp7 = new ArrayList<>();
  41. List<Product> lp8 = new ArrayList<>();
  42. List<Product> lp9 = new ArrayList<>();
  43. lp1.add(p1);
  44. lp2.add(p2);
  45. lp3.add(p3);
  46. lp4.add(p4);
  47. lp5.add(p5);
  48. lp6.add(p6);
  49. lp7.add(p7);
  50. lp8.add(p8);
  51. lp9.add(p9);
  52.  
  53. String topic1 = "Topic 1";
  54. String topic2 = "Topic 2";
  55. String topic3 = "Topic 3";
  56. String topic4 = "Topic 4";
  57. String topic5 = "Topic 5";
  58. String topic6 = "Topic 6";
  59. String topic7 = "Topic 7";
  60. String topic8 = "Topic 8";
  61. String topic9 = "Topic 9";
  62. List<String> lt1 = new ArrayList<>();
  63. List<String> lt2 = new ArrayList<>();
  64. List<String> lt3 = new ArrayList<>();
  65. List<String> lt4 = new ArrayList<>();
  66. List<String> lt5 = new ArrayList<>();
  67. List<String> lt6 = new ArrayList<>();
  68. List<String> lt7 = new ArrayList<>();
  69. List<String> lt8 = new ArrayList<>();
  70. List<String> lt9 = new ArrayList<>();
  71. lt1.add(topic1);
  72. lt2.add(topic2);
  73. lt3.add(topic3);
  74. lt4.add(topic4);
  75. lt5.add(topic5);
  76. lt6.add(topic6);
  77. lt7.add(topic7);
  78. lt8.add(topic8);
  79. lt9.add(topic9);
  80.  
  81. StaffMember teste = new StaffMember(new User("Diogo Alberto Costa", "digaac1", "digaac1@email.pt", 12345678));
  82. EventManager evf = new EventManager(new User("Samuel", "q", "ddd@gmail.com", 12345678));
  83. eCenter.getEventRegister().getEventManagerList().add(evf);
  84. Review r1 = new Review("r1", 1, 2, 1, 4);
  85. Review r2 = new Review("r2", 4, 3, 1, 5);
  86. Review r3 = new Review("r3", 3, 3, 1, 5);
  87. Review r4 = new Review(1, 2, 4, 3, 5, teste);
  88. Review r5 = new Review(1, 2, 1, 2, 5, teste);
  89. Review r6 = new Review("r6", 4, 5, 2, 2);
  90. Review r7 = new Review("r7", 3, 3, 1, 1);
  91. Review r8 = new Review("r8", 2, 3, 3, 4);
  92. Review r9 = new Review("r9", 1, 3, 3, 4);
  93. List<Review> rList1 = new ArrayList<>();
  94. List<Review> rList2 = new ArrayList<>();
  95. List<Review> rList3 = new ArrayList<>();
  96. List<Review> rList4 = new ArrayList<>();
  97. List<Review> rList5 = new ArrayList<>();
  98. List<Review> rList6 = new ArrayList<>();
  99. List<Review> rList7 = new ArrayList<>();
  100. List<Review> rList8 = new ArrayList<>();
  101. List<Review> rList9 = new ArrayList<>();
  102. rList1.add(r1);
  103. rList2.add(r2);
  104. rList3.add(r3);
  105. rList4.add(r4);
  106. rList5.add(r5);
  107. rList6.add(r6);
  108. rList7.add(r7);
  109. rList8.add(r8);
  110. rList9.add(r9);
  111.  
  112. Workshop w1 = new Workshop("w1", "Des 10");
  113. Workshop w2 = new Workshop("w2", "Desc 20");
  114. Workshop w3 = new Workshop("w3", "Desc 30");
  115. Workshop w4 = new Workshop("w4", "Desc 40");
  116. Workshop w5 = new Workshop("w5", "Desc 50");
  117. Workshop w6 = new Workshop("w6", "Desc 60");
  118. Workshop w7 = new Workshop("w7", "Desc 70");
  119. Workshop w8 = new Workshop("w8", "Desc 80");
  120. Workshop w9 = new Workshop("w9", "Desc 90");
  121. Workshop w10 = new Workshop("w10", "Desc 100");
  122. Workshop w11 = new Workshop("w11", "Desc 110");
  123. Workshop w12 = new Workshop("w12", "Desc 120");
  124.  
  125. User u1 = new User("Tomas Magalhães", "tomasm1", "tomasm1@email.pt", 12345678);
  126. User u2 = new User("Joao Sousa", "joaos1", "joaos1@email.pt", 12345678);
  127. User u3 = new User("Miguel Costa", "miguelc1", "miguelc1@email.pt", 12345678);
  128. User u4 = new User("João Ribeiro", "joaor1", "joaor1@email.pt", 12345678);
  129. User u5 = new User("José Ferreira", "josef1", "josef1@email.pt", 12345678);
  130. User u6 = new User("Helder Costa", "helderc1", "helderc1@email.pt", 12345678);
  131. User u7 = new User("Ana Silva", "anasilva1", "anasilva1@email.pt", 12345678);
  132. User u8 = new User("Hugo Magalhães", "hugom1", "hugom1@email.pt", 12345678);
  133. User u9 = new User("Diogo Alberto Costa", "digaac1", "digaac1@email.pt", 12345678);
  134. User u10 = new User("Amilcar Sousa", "amilcars1", "amilcars1@email.pt", 12345678);
  135. User u11 = new User("Sunny Florida", "sunnyf1", "sunnyf1@email.pt", 12345678);
  136. User u12 = new User("Fernando Alberto", "fernandoa1", "fernandoa1@email.pt", 12345678);
  137. User u13 = new User("Antonio Ramos", "antonior1", "antonior1@email.pt", 12345678);
  138. User u14 = new User("Alice Sousa", "alices", "alices@email.pt", 12345678);
  139. User u15 = new User("Dino Torres", "dinot", "dinot@email.pt", 12345678);
  140. User u16 = new User("Nuno Torres", "nunot", "nunot@email.pt", 12345678);
  141. User u17 = new User("Martim Melo", "martimm", "martimm@email.pt", 12345678);
  142. User u18 = new User("Rui Oliveira", "ruioli", "ruioli@email.pt", 12345678);
  143. User u19 = new User("Nuno Dias", "nunodi", "nunodi@email.pt", 12345678);
  144. User u20 = new User("Antonio Perez", "antoniop", "antoniop@email.pt", 12345678);
  145. User u21 = new User("Ederson Moraes", "edersonm", "edersonm@email.pt", 12345678);
  146. User u22 = new User("Anderson Luis", "andersonl", "andersonl@email.pt", 12345678);
  147. User u23 = new User("Ruben Dias", "rubend", "rubend@email.pt", 12345678);
  148. User u24 = new User("Andre Almeida", "andrea", "andrea@email.pt", 12345678);
  149. User u25 = new User("Luis Vieira", "luisv", "luisv@email.pt", 12345678);
  150.  
  151. List<RelativeDistance> relativeDistance1 = new ArrayList<>();
  152. RelativeDistance rd1 = new RelativeDistance("Stand2", 10);
  153. relativeDistance1.add(rd1);
  154. List<RelativeDistance> relativeDistance2 = new ArrayList<>();
  155. RelativeDistance rd2 = new RelativeDistance("Stand3", 30);
  156. relativeDistance2.add(rd2);
  157. List<RelativeDistance> relativeDistance3 = new ArrayList<>();
  158. RelativeDistance rd3 = new RelativeDistance("Stand4", 15);
  159. relativeDistance3.add(rd3);
  160. List<RelativeDistance> relativeDistance4 = new ArrayList<>();
  161. RelativeDistance rd4 = new RelativeDistance("Stand5", 10);
  162. relativeDistance4.add(rd4);
  163. List<RelativeDistance> relativeDistance5 = new ArrayList<>();
  164. RelativeDistance rd5 = new RelativeDistance("Stand6", 20);
  165. relativeDistance5.add(rd5);
  166. List<RelativeDistance> relativeDistance6 = new ArrayList<>();
  167. RelativeDistance rd6 = new RelativeDistance("Stand1", 10);
  168. relativeDistance6.add(rd6);
  169. List<RelativeDistance> relativeDistance7 = new ArrayList<>();
  170. RelativeDistance rd7 = new RelativeDistance("Stand2", 10);
  171. relativeDistance7.add(rd7);
  172. List<RelativeDistance> relativeDistance8 = new ArrayList<>();
  173. RelativeDistance rd8 = new RelativeDistance("Stand2", 10);
  174. relativeDistance8.add(rd8);
  175. List<RelativeDistance> relativeDistance9 = new ArrayList<>();
  176. RelativeDistance rd9 = new RelativeDistance("Stand4", 15);
  177. relativeDistance9.add(rd9);
  178.  
  179. Stand st1 = new Stand("Stand 1", 20, relativeDistance1);
  180. Stand st2 = new Stand("Stand 2", 35, relativeDistance2);
  181. Stand st3 = new Stand("Stand 3", 44, relativeDistance3);
  182. Stand st4 = new Stand("Stand 4", 30, relativeDistance4);
  183. Stand st5 = new Stand("Stand 5", 50, relativeDistance5);
  184. Stand st6 = new Stand("Stand 6", 100, relativeDistance6);
  185. Stand st7 = new Stand("Stand 7", 88, relativeDistance6);
  186. Stand st8 = new Stand("Stand 8", 101, relativeDistance6);
  187. Stand st9 = new Stand("Stand 9", 20, relativeDistance6);
  188.  
  189. Keyword k1 = new Keyword("key 1");
  190. Keyword k2 = new Keyword("key 2");
  191. Keyword k3 = new Keyword("key 3");
  192. Keyword k4 = new Keyword("key 4");
  193. Keyword k5 = new Keyword("key 5");
  194. Keyword k6 = new Keyword("key 6");
  195. Keyword k7 = new Keyword("key 7");
  196. Keyword k8 = new Keyword("key 8");
  197. Keyword k9 = new Keyword("key 9");
  198. Keyword k10 = new Keyword("key 10");
  199. Keyword k11 = new Keyword("key 11");
  200. Keyword k12 = new Keyword("key 12");
  201. List<Keyword> kList1 = new ArrayList<>();
  202. List<Keyword> kList2 = new ArrayList<>();
  203. List<Keyword> kList3 = new ArrayList<>();
  204. List<Keyword> kList4 = new ArrayList<>();
  205. List<Keyword> kList5 = new ArrayList<>();
  206. List<Keyword> kList6 = new ArrayList<>();
  207. List<Keyword> kList7 = new ArrayList<>();
  208. List<Keyword> kList8 = new ArrayList<>();
  209. List<Keyword> kList9 = new ArrayList<>();
  210. kList1.add(k1);
  211. kList1.add(k2);
  212. kList2.add(k3);
  213. kList3.add(k4);
  214. kList3.add(k5);
  215. kList3.add(k6);
  216. kList4.add(k7);
  217. kList5.add(k8);
  218. kList6.add(k9);
  219. kList7.add(k10);
  220. kList8.add(k11);
  221. kList9.add(k12);
  222.  
  223. ApplicationList appList1 = new ApplicationList();
  224. Application app1 = new Application("Application 1", "Company 1", 999999999, 911111111, 100, lp1, 2, lt1, AppState.ACCEPTED, rList1, w1, u17, st1, kList1);
  225. Application app2 = new Application("Application 2", "Company 2", 888888888, 922222222, 50, lp2, 21, lt2, AppState.REJECTED, rList2, w2, u18, st2, kList2);
  226. appList1.add(app1);
  227. appList1.add(app2);
  228.  
  229. ApplicationList appList2 = new ApplicationList();
  230. Application app3 = new Application("Application 3", "Company 3", 777777777, 933333333, 220, lp3, 30, lt3, AppState.ACCEPTED, rList3, w3, u19, st3, kList3);
  231. appList2.add(app3);
  232.  
  233. ApplicationList appList3 = new ApplicationList();
  234. Application app4 = new Application("Application 4", "Company 4", 666666666, 944444444, 100, lp4, 2, lt4, AppState.PENDING, rList4, w4, u20, st4, kList4);
  235. Application app5 = new Application("Application 5", "Company 5", 555555555, 955555555, 100, lp5, 2, lt5, AppState.ACCEPTED, rList5, w5, u21, st5, kList5);
  236. appList3.add(app4);
  237. appList3.add(app5);
  238.  
  239. ApplicationList appList4 = new ApplicationList();
  240. Application app6 = new Application("Application 6", "Company 6", 444444444, 966666666, 133, lp6, 8, lt6, AppState.REJECTED, rList6, w6, u22, st6, kList6);
  241. appList4.add(app6);
  242.  
  243. ApplicationList appList5 = new ApplicationList();
  244. Application app7 = new Application("Application 7", "Company 7", 333333333, 977777777, 10, lp7, 55, lt7, AppState.PENDING, rList7, w7, u23, st7, kList7);
  245. Application app8 = new Application("Application 8", "Company 8", 222222222, 988888888, 39, lp8, 29, lt8, AppState.REJECTED, rList8, w8, u24, st8, kList8);
  246. appList5.add(app7);
  247. appList5.add(app8);
  248.  
  249. ApplicationList appList6 = new ApplicationList();
  250. Application app9 = new Application("Application 9", "Company 9", 111, 999, 49, lp9, 48, lt9, AppState.ACCEPTED, rList9, w9, u25, st9, kList9);
  251. appList6.add(app9);
  252.  
  253. ApplicationRegister appReg = new ApplicationRegister();
  254. appReg.addApp(app1);
  255. appReg.addApp(app2);
  256. appReg.addApp(app3);
  257. appReg.addApp(app4);
  258. appReg.addApp(app5);
  259. appReg.addApp(app6);
  260. appReg.addApp(app7);
  261. appReg.addApp(app8);
  262. appReg.addApp(app9);
  263. eCenter.setAppRegister(appReg);
  264.  
  265. UserRegister ur = new UserRegister();
  266. ur.addUser(u1);
  267. ur.addUser(u2);
  268. ur.addUser(u3);
  269. ur.addUser(u4);
  270. ur.addUser(u5);
  271. ur.addUser(u6);
  272. ur.addUser(u7);
  273. ur.addUser(u8);
  274. ur.addUser(u9);
  275. ur.addUser(u10);
  276. ur.addUser(u11);
  277. ur.addUser(u12);
  278. ur.addUser(u13);
  279. ur.addUser(u14);
  280. ur.addUser(u15);
  281. ur.addUser(u16);
  282. ur.addUser(u17);
  283. ur.addUser(u18);
  284. ur.addUser(u19);
  285. ur.addUser(u20);
  286. ur.addUser(u21);
  287. ur.addUser(u22);
  288. ur.addUser(u23);
  289. ur.addUser(u24);
  290. ur.addUser(u25);
  291. eCenter.setUserRegister(ur);
  292.  
  293. List<StaffMember> smList1 = new ArrayList<>();
  294. StaffMember sm1 = new StaffMember(u7);
  295. smList1.add(sm1);
  296. List<StaffMember> smList2 = new ArrayList<>();
  297. StaffMember sm2 = new StaffMember(u8);
  298. smList1.add(sm2);
  299. List<StaffMember> smList3 = new ArrayList<>();
  300. StaffMember sm3 = new StaffMember(u9);
  301. smList3.add(sm3);
  302. List<StaffMember> smList4 = new ArrayList<>();
  303. StaffMember sm4 = new StaffMember(u10);
  304. smList1.add(sm4);
  305. List<StaffMember> smList5 = new ArrayList<>();
  306. StaffMember sm5 = new StaffMember(u11);
  307. smList1.add(sm5);
  308. List<StaffMember> smList6 = new ArrayList<>();
  309. StaffMember sm6 = new StaffMember(u12);
  310. smList1.add(sm6);
  311.  
  312. List<Organizer> orgList1 = new ArrayList<>();
  313. List<Organizer> orgList2 = new ArrayList<>();
  314. List<Organizer> orgList3 = new ArrayList<>();
  315. List<Organizer> orgList4 = new ArrayList<>();
  316. List<Organizer> orgList5 = new ArrayList<>();
  317. List<Organizer> orgList6 = new ArrayList<>();
  318. Organizer o1 = new Organizer(u1);
  319. Organizer o2 = new Organizer(u2);
  320. Organizer o3 = new Organizer(u3);
  321. Organizer o4 = new Organizer(u4);
  322. Organizer o5 = new Organizer(u5);
  323. Organizer o6 = new Organizer(u6);
  324. orgList1.add(o1);
  325. orgList2.add(o2);
  326. orgList3.add(o3);
  327. orgList4.add(o4);
  328. orgList5.add(o5);
  329. orgList6.add(o6);
  330.  
  331. Date di1 = new Date(2018, 01, 31);
  332. Date di2 = new Date(2018, 01, 30);
  333. Date di3 = new Date(2018, 01, 29);
  334. Date di4 = new Date(2018, 01, 28);
  335. Date di5 = new Date(2018, 01, 27);
  336. Date di6 = new Date(2018, 01, 26);
  337. Date di7 = new Date(2018, 01, 25);
  338. Date di8 = new Date(2018, 01, 24);
  339. Date di9 = new Date(2018, 01, 23);
  340. Date df1 = new Date(2018, 02, 01);
  341. Date df2 = new Date(2018, 01, 31);
  342. Date df3 = new Date(2018, 01, 30);
  343. Date df4 = new Date(2018, 01, 29);
  344. Date df5 = new Date(2018, 01, 28);
  345. Date df6 = new Date(2018, 01, 27);
  346. Date df7 = new Date(2018, 01, 26);
  347. Date df8 = new Date(2018, 01, 25);
  348. Date df9 = new Date(2018, 01, 24);
  349.  
  350. SubmissionPeriod sp1 = new SubmissionPeriod(di1, df1);
  351. SubmissionPeriod sp2 = new SubmissionPeriod(di2, df2);
  352. SubmissionPeriod sp3 = new SubmissionPeriod(di3, df3);
  353. SubmissionPeriod sp4 = new SubmissionPeriod(di4, df4);
  354. SubmissionPeriod sp5 = new SubmissionPeriod(di5, df5);
  355. SubmissionPeriod sp6 = new SubmissionPeriod(di6, df6);
  356. SubmissionPeriod sp7 = new SubmissionPeriod(di7, df7);
  357. SubmissionPeriod sp8 = new SubmissionPeriod(di8, df8);
  358. SubmissionPeriod sp9 = new SubmissionPeriod(di9, df9);
  359.  
  360. List<Workshop> wl1 = new ArrayList<>();
  361. wl1.add(w1);
  362. wl1.add(w2);
  363. wl1.add(w3);
  364. wl1.add(w4);
  365. wl1.add(w5);
  366. wl1.add(w6);
  367. List<Workshop> wl2 = new ArrayList<>();
  368. wl2.add(w3);
  369. wl2.add(w4);
  370. wl2.add(w12);
  371. List<Workshop> wl3 = new ArrayList<>();
  372. wl3.add(w5);
  373. wl3.add(w6);
  374. wl1.add(w12);
  375. List<Workshop> wl4 = new ArrayList<>();
  376. wl4.add(w7);
  377. wl4.add(w8);
  378. wl1.add(w12);
  379. List<Workshop> wl5 = new ArrayList<>();
  380. wl5.add(w9);
  381. wl5.add(w10);
  382. wl1.add(w12);
  383. List<Workshop> wl6 = new ArrayList<>();
  384. wl6.add(w11);
  385. wl6.add(w12);
  386. wl1.add(w2);
  387. List<Workshop> wTest = new ArrayList<>();
  388. wTest.add(w1);
  389. wTest.add(w2);
  390. wTest.add(w3);
  391. wTest.add(w4);
  392. wTest.add(w5);
  393. wTest.add(w6);
  394. wTest.add(w7);
  395. wTest.add(w8);
  396. wTest.add(w9);
  397. wTest.add(w10);
  398. wTest.add(w11);
  399. wTest.add(w12);
  400.  
  401. Survey s1 = new Survey("Survey 1", wl1);
  402. Survey s2 = new Survey("Survey 2", wl2);
  403. Survey s3 = new Survey("Survey 3", wl3);
  404. Survey s4 = new Survey("Survey 4", wl4);
  405. Survey s5 = new Survey("Survey 5", wl5);
  406. Survey s6 = new Survey("Survey 6", wl6);
  407. List<Survey> surveyList1 = new ArrayList<>();
  408. List<Survey> surveyList2 = new ArrayList<>();
  409. List<Survey> surveyList3 = new ArrayList<>();
  410. List<Survey> surveyList4 = new ArrayList<>();
  411. List<Survey> surveyList5 = new ArrayList<>();
  412. List<Survey> surveyList6 = new ArrayList<>();
  413. surveyList1.add(s1);
  414. surveyList1.add(s2);
  415. surveyList1.add(s3);
  416. surveyList1.add(s4);
  417. surveyList1.add(s5);
  418. surveyList1.add(s6);
  419. surveyList2.add(s2);
  420. surveyList3.add(s3);
  421. surveyList4.add(s4);
  422. surveyList5.add(s5);
  423. surveyList6.add(s6);
  424.  
  425. StandList slist1 = new StandList();
  426. StandList slist2 = new StandList();
  427. StandList slist3 = new StandList();
  428. StandList slist4 = new StandList();
  429. StandList slist5 = new StandList();
  430. StandList slist6 = new StandList();
  431.  
  432. slist1.addStand(st1);
  433. slist2.addStand(st2);
  434. slist3.addStand(st3);
  435. slist4.addStand(st4);
  436. slist5.addStand(st5);
  437. slist6.addStand(st6);
  438.  
  439. EventManager eManager1 = new EventManager(u13);
  440. EventManager eManager2 = new EventManager(u14);
  441. EventManager eManager3 = new EventManager(u15);
  442. EventManager eManager4 = new EventManager(u16);
  443.  
  444. //Zé pôs para testar
  445. StandList standList = new StandList();
  446.  
  447. Stand stand1 = new Stand("stand1", 20, new ArrayList<>());
  448. Stand stand2 = new Stand("stand2", 30, new ArrayList<>());
  449. stand2.getRelativeDistanceList().add(new RelativeDistance("stand1", 30));
  450. Stand stand3 = new Stand("stand3", 40, new ArrayList<>());
  451. stand3.getRelativeDistanceList().add(new RelativeDistance("stand1", 50));
  452. stand3.getRelativeDistanceList().add(new RelativeDistance("stand2", 20));
  453. Stand stand4 = new Stand("stand4", 50, new ArrayList<>());
  454. stand4.getRelativeDistanceList().add(new RelativeDistance("stand1", 10));
  455. stand4.getRelativeDistanceList().add(new RelativeDistance("stand2", 40));
  456. stand4.getRelativeDistanceList().add(new RelativeDistance("stand3", 30));
  457. standList.getStandList().add(stand1);
  458. standList.getStandList().add(stand2);
  459. standList.getStandList().add(stand3);
  460. standList.getStandList().add(stand4);
  461.  
  462. //--------------------------------
  463. Exhibition ex1 = new Exhibition("Exhibition 1", "Exhibition Desc 1", "Place 1", "Exhibition", smList1, orgList1, sp1, wTest, appList1, surveyList1, standList, eManager1);
  464. Exhibition ex2 = new Exhibition("Exhibition 2", "Exhibition Desc 2", "Place 2", "Exhibition", smList2, orgList2, sp2, wl2, appList2, surveyList2, slist2, eManager2);
  465. Exhibition ex3 = new Exhibition("Exhibition 3", "Exhibition Desc 3", "Place 3", "Exhibition", smList3, orgList3, sp3, wl3, appList3, surveyList3, slist3, eManager2);
  466.  
  467. Congress c1 = new Congress("Congress 1", "Congress Desc 1", "Place 4", "Congress", smList4, orgList4, sp4, wl4, appList4, surveyList4, slist4, eManager3);
  468. Congress c2 = new Congress("Congress 2", "Congress Desc 2", "Place 5", "Congress", smList5, orgList5, sp5, wl5, appList5, surveyList5, slist5, eManager1);
  469. Congress c3 = new Congress("Congress 3", "Congress Desc 3", "Place 6", "Congress", smList6, orgList6, sp6, wl6, appList6, surveyList6, slist6, eManager4);
  470. eCenter.getEventRegister().getEventManagerList().add(eManager4);
  471. eCenter.getEventRegister().getEventManagerList().add(eManager3);
  472. eCenter.getEventRegister().getEventManagerList().add(eManager2);
  473. eCenter.getEventRegister().getEventManagerList().add(eManager1);
  474. eCenter.getEventRegister().addEvent(ex1);
  475. eCenter.getEventRegister().addEvent(ex2);
  476. eCenter.getEventRegister().addEvent(ex3);
  477. eCenter.getEventRegister().addEvent(c1);
  478. eCenter.getEventRegister().addEvent(c2);
  479. eCenter.getEventRegister().addEvent(c3);
  480. return eCenter;
  481. }
  482.  
  483. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement