CacheContext.java 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. package com.gyee.intial;
  2. import java.util.ArrayList;
  3. import java.util.HashMap;
  4. import java.util.List;
  5. import java.util.Map;
  6. import org.apache.log4j.Logger;
  7. import org.springframework.beans.factory.InitializingBean;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.stereotype.Component;
  10. import com.gyee.model.Electricaltestingpointai;
  11. import com.gyee.model.Electricaltestingpointdi;
  12. import com.gyee.model.Equipmentmodel;
  13. import com.gyee.model.Line;
  14. import com.gyee.model.Meterpoint;
  15. import com.gyee.model.Mismap;
  16. import com.gyee.model.Project;
  17. import com.gyee.model.Stoptype;
  18. import com.gyee.model.Warning2;
  19. import com.gyee.model.WindPowerStationTestingPoint2;
  20. import com.gyee.model.WindTurbineTestingPointAi2;
  21. import com.gyee.model.WindTurbineTestingPointDi2;
  22. import com.gyee.model.Windpowerstation;
  23. import com.gyee.model.Windturbine;
  24. import com.gyee.model.WindturbineParts;
  25. import com.gyee.model.Windturbinepowercurvefitting;
  26. import com.gyee.service.ElectricaltestingpointaiService;
  27. import com.gyee.service.ElectricaltestingpointdiService;
  28. import com.gyee.service.EquipmentmodelService;
  29. import com.gyee.service.LineService;
  30. import com.gyee.service.MismapService;
  31. import com.gyee.service.ProjectService;
  32. import com.gyee.service.StopTypeService;
  33. import com.gyee.service.WarningBaseService;
  34. import com.gyee.service.WindPowerStationService;
  35. import com.gyee.service.WindPowerStationTestingPointService;
  36. import com.gyee.service.WindTurbineService;
  37. import com.gyee.service.WindTurbineTestingPointAIService;
  38. import com.gyee.service.WindTurbineTestingPointDIService;
  39. import com.gyee.service.WindturbinePartsService;
  40. import com.gyee.service.YjIdTransformService;
  41. import com.gyee.util.QueryOrder;
  42. @Component
  43. // public class CacheContext {
  44. public class CacheContext implements InitializingBean {
  45. private Logger logger = Logger.getLogger(this.getClass().getName());
  46. @Autowired
  47. private QueryCacheServcie queryCacheServcie;
  48. @Autowired
  49. private WindPowerStationService windPowerStationService;
  50. @Autowired
  51. private WindTurbineService windTurbineService;
  52. @Autowired
  53. private WindPowerStationTestingPointService windPowerStationTestingPointService;
  54. @Autowired
  55. private ElectricaltestingpointaiService electricaltestingpointaiService;
  56. @Autowired
  57. private ElectricaltestingpointdiService electricaltestingpointdiService;
  58. @Autowired
  59. private WindTurbineTestingPointAIService windTurbineTestingPointAIService;
  60. @Autowired
  61. private WindTurbineTestingPointDIService windTurbineTestingPointDIService;
  62. @Autowired
  63. private YjIdTransformService yjIdTransformService;
  64. @Autowired
  65. private EquipmentmodelService windturbinemodelService;
  66. @Autowired
  67. private WarningBaseService warningBaseService;
  68. @Autowired
  69. private ProjectService projectService;
  70. @Autowired
  71. private LineService lineService;
  72. @Autowired
  73. private StopTypeService stopTypeService;
  74. @Autowired
  75. private MismapService mismapService;
  76. @Autowired
  77. private WindturbinePartsService windturbinePartsService;
  78. public static Map<String, String> mismap = new HashMap<String, String>(); // 停机类型
  79. public static Map<String, Stoptype> stmap = new HashMap<String, Stoptype>(); // 停机类型
  80. public static Map<String, WindturbineParts> sttmap = new HashMap<String, WindturbineParts>(); // 停机类型
  81. public static Map<String, Windpowerstation> wpmap = new HashMap<String, Windpowerstation>(); // 风电场MAP
  82. public static Map<String, Windturbine> wtmap = new HashMap<String, Windturbine>(); // 风电机MAP
  83. public static Map<String, List<Windturbine>> wtsmap = new HashMap<String, List<Windturbine>>(); // 风电场MAP风电机LIST集合
  84. public static Map<String, Map<String, WindPowerStationTestingPoint2>> stationPointmap = new HashMap<String, Map<String, WindPowerStationTestingPoint2>>();// 场站测点
  85. public static Map<String, Map<String, WindTurbineTestingPointAi2>> wtpAimap = new HashMap<String, Map<String, WindTurbineTestingPointAi2>>();// 风电机测点AI表
  86. public static Map<String, Map<String, WindTurbineTestingPointDi2>> wtpDimap = new HashMap<String, Map<String, WindTurbineTestingPointDi2>>();// 风电机测点AI表
  87. public static Map<String, List<WindPowerStationTestingPoint2>> wppointsmap = new HashMap<String, List<WindPowerStationTestingPoint2>>(); // 风电场MAP风电机LIST集合
  88. public static Map<String, List<WindTurbineTestingPointAi2>> wtaipointsmap = new HashMap<String, List<WindTurbineTestingPointAi2>>(); // 风电场MAP风电机LIST集合
  89. public static Map<String, List<WindTurbineTestingPointDi2>> wtdipointsmap = new HashMap<String, List<WindTurbineTestingPointDi2>>(); // 风电场MAP风电机LIST集合
  90. public static Map<String, List<Electricaltestingpointai>> eleaipointsmap = new HashMap<String, List<Electricaltestingpointai>>(); // 风电场MAP风电机LIST集合
  91. public static Map<String, List<Electricaltestingpointdi>> eledipointsmap = new HashMap<String, List<Electricaltestingpointdi>>(); // 风电场MAP风电机LIST集合
  92. public static Map<String, Project> pjmap = new HashMap<String, Project>(); // 项目MAP
  93. public static Map<String, List<Project>> pjsmap = new HashMap<String, List<Project>>(); // 通过风场编号获得所属项目
  94. public static Map<String, Equipmentmodel> mlmap = new HashMap<String, Equipmentmodel>();// 风电机模型
  95. public static List<Equipmentmodel> mlls = new ArrayList<Equipmentmodel>();// 风电机模型LIST集合\
  96. public static List<Stoptype> stls = new ArrayList<Stoptype>();; // 停机类型
  97. public static List<WindturbineParts> sttls = new ArrayList<WindturbineParts>();; // 停机类型
  98. public static List<Windpowerstation> wpls = new ArrayList<Windpowerstation>(); // 风电场LIST集合
  99. public static List<Windturbine> wtls = new ArrayList<Windturbine>(); // 风电机LIST集合
  100. public static Map<String, String> gyeeidmap = new HashMap<String, String>();
  101. public static Map<String, String> yjidmap = new HashMap<String, String>();
  102. public static Map<String, Line> linemap = new HashMap<String, Line>(); // 线路MAP
  103. public static List<WindPowerStationTestingPoint2> wppointls = new ArrayList<WindPowerStationTestingPoint2>();
  104. public static List<WindPowerStationTestingPoint2> wpjsls = new ArrayList<WindPowerStationTestingPoint2>();
  105. public static List<WindPowerStationTestingPoint2> wppowerls = new ArrayList<WindPowerStationTestingPoint2>();
  106. public static List<Electricaltestingpointai> etails = new ArrayList<Electricaltestingpointai>();
  107. public static List<Electricaltestingpointdi> etdils = new ArrayList<Electricaltestingpointdi>();
  108. public static List<WindTurbineTestingPointAi2> wtails = new ArrayList<WindTurbineTestingPointAi2>();
  109. public static List<WindTurbineTestingPointDi2> wtdils = new ArrayList<WindTurbineTestingPointDi2>();
  110. public static List<Meterpoint> mpls = new ArrayList<Meterpoint>();
  111. public static List<Project> pjls = new ArrayList<Project>(); // 项目LIST集合
  112. public static Map<String, Warning2> warnnamemap = new HashMap<String, Warning2>(); // 报警按中文描述map
  113. public static Map<String, Warning2> warnmap = new HashMap<String, Warning2>(); // 报警
  114. public static List<Warning2> warnls = new ArrayList<Warning2>(); // 报警LIST集合
  115. public static List<Line> linels = new ArrayList<Line>(); // 线路LIST集合
  116. public static Map<String, Map<Double, Windturbinepowercurvefitting>> wtfitmap = new HashMap<>();
  117. @Override
  118. public void afterPropertiesSet() throws Exception {
  119. logger.info("初始化关系型数据库基础数据开始!......");
  120. List<Mismap> misls=mismapService.findAll();
  121. if (!misls.isEmpty()) {
  122. for (Mismap st : misls) {
  123. mismap.put(st.getSiskey(), st.getMiskey());
  124. }
  125. }
  126. stls = stopTypeService.findAll();
  127. if (!stls.isEmpty()) {
  128. for (Stoptype st : stls) {
  129. stmap.put(st.getId(), st);
  130. }
  131. }
  132. sttls = windturbinePartsService.getWindturbinePartsList();
  133. if (!sttls.isEmpty()) {
  134. for (WindturbineParts wp : sttls) {
  135. sttmap.put(wp.getId(), wp);
  136. }
  137. }
  138. // long startStamp = System.currentTimeMillis();
  139. wpls = windPowerStationService.findAll(QueryOrder.asc("ordernum"));
  140. for (Windpowerstation wp : wpls) {
  141. wpmap.put(wp.getId(), wp);
  142. }
  143. wtls = windTurbineService.findAll(QueryOrder.asc("id"));
  144. if (!wtls.isEmpty()) {
  145. List<Windturbine> list = null;
  146. for (Windturbine wt : wtls) {
  147. wtmap.put(wt.getId(), wt);
  148. if (wtsmap.containsKey(wt.getWindpowerstationid())) {
  149. list = wtsmap.get(wt.getWindpowerstationid());
  150. list.add(wt);
  151. } else {
  152. list = new ArrayList<Windturbine>();
  153. list.add(wt);
  154. wtsmap.put(wt.getWindpowerstationid(), list);
  155. }
  156. }
  157. }
  158. // wppointls = queryCacheServcie.findWpPointALL();
  159. // etails=queryCacheServcie.findEtAiPointALL();
  160. // etdils = queryCacheServcie.findEtDiPointALL();
  161. // wtails = queryCacheServcie.findWtAiPointALL();
  162. // wtdils = queryCacheServcie.findWtDiPointALL();
  163. // mpls = queryCacheServcie.findMeterpointALL();
  164. // for(WindPowerStationTestingPoint2 wppoint:wppointls)
  165. // {
  166. // if(wppoint.getRealtimeid().equals("GDNX.JSFW"))
  167. // {
  168. // wpjsls.add(wppoint);
  169. // }else {
  170. // wppowerls.add(wppoint);
  171. // }
  172. //
  173. // }
  174. // stationPointmap = queryCacheServcie.findWpPointMap();
  175. wtpAimap = queryCacheServcie.findWtAiPointMap();
  176. wtpDimap = queryCacheServcie.findWtDiPointMap();
  177. //
  178. //// wppointsmap = queryCacheServcie.findWpPointList();
  179. //// wtaipointsmap = queryCacheServcie.findWtAiPointList();
  180. //// wtdipointsmap= queryCacheServcie.findWtDiPointList();
  181. ////
  182. //// eleaipointsmap =
  183. // queryCacheServcie.findElectricaltestingpointAiList();
  184. //// eledipointsmap =
  185. // queryCacheServcie.findElectricaltestingpointDiList();
  186. //
  187. // gyeeidmap=yjIdTransformService.getGyeeMapInfo();
  188. // yjidmap=yjIdTransformService.getYjMapInfo();
  189. mlls = windturbinemodelService.findAll();
  190. if (!mlls.isEmpty()) {
  191. for (Equipmentmodel model : mlls) {
  192. mlmap.put(model.getId(), model);
  193. }
  194. }
  195. warnls = warningBaseService.findAll();
  196. if (!warnls.isEmpty()) {
  197. for (Warning2 warn : warnls) {
  198. warnmap.put(warn.getId(), warn);
  199. warnnamemap.put(warn.getChinesetext(), warn);
  200. }
  201. }
  202. pjls = projectService.findAll(QueryOrder.asc("code"));
  203. if (!pjls.isEmpty()) {
  204. for (Project pj : pjls) {
  205. pjmap.put(pj.getId(), pj);
  206. if (pjsmap.containsKey(pj.getWindpowerstationid())) {
  207. List<Project> pjls = pjsmap.get(pj.getWindpowerstationid());
  208. pjls.add(pj);
  209. pjsmap.put(pj.getWindpowerstationid(), pjls);
  210. } else {
  211. List<Project> pjls = new ArrayList<Project>();
  212. pjls.add(pj);
  213. pjsmap.put(pj.getWindpowerstationid(), pjls);
  214. }
  215. }
  216. }
  217. linels = lineService.findAll( QueryOrder.asc("id"));
  218. if (!linels.isEmpty()) {
  219. for (Line line : linels) {
  220. linemap.put(line.getId(), line);
  221. }
  222. }
  223. // wtfitmap=queryCacheServcie.getCurveFitMap();
  224. // 风机比武所用的数据封装结束
  225. logger.info("初始化关系型数据库基础数据完毕!......");
  226. }
  227. public Logger getLogger() {
  228. return logger;
  229. }
  230. public void setLogger(Logger logger) {
  231. this.logger = logger;
  232. }
  233. public QueryCacheServcie getQueryCacheServcie() {
  234. return queryCacheServcie;
  235. }
  236. public void setQueryCacheServcie(QueryCacheServcie queryCacheServcie) {
  237. this.queryCacheServcie = queryCacheServcie;
  238. }
  239. public WindPowerStationService getWindPowerStationService() {
  240. return windPowerStationService;
  241. }
  242. public void setWindPowerStationService(WindPowerStationService windPowerStationService) {
  243. this.windPowerStationService = windPowerStationService;
  244. }
  245. public WindTurbineService getWindTurbineService() {
  246. return windTurbineService;
  247. }
  248. public void setWindTurbineService(WindTurbineService windTurbineService) {
  249. this.windTurbineService = windTurbineService;
  250. }
  251. public WindPowerStationTestingPointService getWindPowerStationTestingPointService() {
  252. return windPowerStationTestingPointService;
  253. }
  254. public void setWindPowerStationTestingPointService(WindPowerStationTestingPointService windPowerStationTestingPointService) {
  255. this.windPowerStationTestingPointService = windPowerStationTestingPointService;
  256. }
  257. public ElectricaltestingpointaiService getElectricaltestingpointaiService() {
  258. return electricaltestingpointaiService;
  259. }
  260. public void setElectricaltestingpointaiService(ElectricaltestingpointaiService electricaltestingpointaiService) {
  261. this.electricaltestingpointaiService = electricaltestingpointaiService;
  262. }
  263. public ElectricaltestingpointdiService getElectricaltestingpointdiService() {
  264. return electricaltestingpointdiService;
  265. }
  266. public void setElectricaltestingpointdiService(ElectricaltestingpointdiService electricaltestingpointdiService) {
  267. this.electricaltestingpointdiService = electricaltestingpointdiService;
  268. }
  269. public WindTurbineTestingPointAIService getWindTurbineTestingPointAIService() {
  270. return windTurbineTestingPointAIService;
  271. }
  272. public void setWindTurbineTestingPointAIService(WindTurbineTestingPointAIService windTurbineTestingPointAIService) {
  273. this.windTurbineTestingPointAIService = windTurbineTestingPointAIService;
  274. }
  275. public WindTurbineTestingPointDIService getWindTurbineTestingPointDIService() {
  276. return windTurbineTestingPointDIService;
  277. }
  278. public void setWindTurbineTestingPointDIService(WindTurbineTestingPointDIService windTurbineTestingPointDIService) {
  279. this.windTurbineTestingPointDIService = windTurbineTestingPointDIService;
  280. }
  281. public YjIdTransformService getYjIdTransformService() {
  282. return yjIdTransformService;
  283. }
  284. public void setYjIdTransformService(YjIdTransformService yjIdTransformService) {
  285. this.yjIdTransformService = yjIdTransformService;
  286. }
  287. public static Map<String, Windpowerstation> getWpmap() {
  288. return wpmap;
  289. }
  290. public static void setWpmap(Map<String, Windpowerstation> wpmap) {
  291. CacheContext.wpmap = wpmap;
  292. }
  293. public static Map<String, Windturbine> getWtmap() {
  294. return wtmap;
  295. }
  296. public static void setWtmap(Map<String, Windturbine> wtmap) {
  297. CacheContext.wtmap = wtmap;
  298. }
  299. public static Map<String, List<Windturbine>> getWtsmap() {
  300. return wtsmap;
  301. }
  302. public static void setWtsmap(Map<String, List<Windturbine>> wtsmap) {
  303. CacheContext.wtsmap = wtsmap;
  304. }
  305. public static Map<String, Map<String, WindPowerStationTestingPoint2>> getStationPointmap() {
  306. return stationPointmap;
  307. }
  308. public static void setStationPointmap(Map<String, Map<String, WindPowerStationTestingPoint2>> stationPointmap) {
  309. CacheContext.stationPointmap = stationPointmap;
  310. }
  311. public static Map<String, Map<String, WindTurbineTestingPointAi2>> getWtpAimap() {
  312. return wtpAimap;
  313. }
  314. public static void setWtpAimap(Map<String, Map<String, WindTurbineTestingPointAi2>> wtpAimap) {
  315. CacheContext.wtpAimap = wtpAimap;
  316. }
  317. public static Map<String, Map<String, WindTurbineTestingPointDi2>> getWtpDimap() {
  318. return wtpDimap;
  319. }
  320. public static void setWtpDimap(Map<String, Map<String, WindTurbineTestingPointDi2>> wtpDimap) {
  321. CacheContext.wtpDimap = wtpDimap;
  322. }
  323. public static Map<String, List<WindPowerStationTestingPoint2>> getWppointsmap() {
  324. return wppointsmap;
  325. }
  326. public static void setWppointsmap(Map<String, List<WindPowerStationTestingPoint2>> wppointsmap) {
  327. CacheContext.wppointsmap = wppointsmap;
  328. }
  329. public static Map<String, List<WindTurbineTestingPointAi2>> getWtaipointsmap() {
  330. return wtaipointsmap;
  331. }
  332. public static void setWtaipointsmap(Map<String, List<WindTurbineTestingPointAi2>> wtaipointsmap) {
  333. CacheContext.wtaipointsmap = wtaipointsmap;
  334. }
  335. public static Map<String, List<WindTurbineTestingPointDi2>> getWtdipointsmap() {
  336. return wtdipointsmap;
  337. }
  338. public static void setWtdipointsmap(Map<String, List<WindTurbineTestingPointDi2>> wtdipointsmap) {
  339. CacheContext.wtdipointsmap = wtdipointsmap;
  340. }
  341. public static Map<String, List<Electricaltestingpointai>> getEleaipointsmap() {
  342. return eleaipointsmap;
  343. }
  344. public static void setEleaipointsmap(Map<String, List<Electricaltestingpointai>> eleaipointsmap) {
  345. CacheContext.eleaipointsmap = eleaipointsmap;
  346. }
  347. public static Map<String, List<Electricaltestingpointdi>> getEledipointsmap() {
  348. return eledipointsmap;
  349. }
  350. public static void setEledipointsmap(Map<String, List<Electricaltestingpointdi>> eledipointsmap) {
  351. CacheContext.eledipointsmap = eledipointsmap;
  352. }
  353. public static List<Windpowerstation> getWpls() {
  354. return wpls;
  355. }
  356. public static void setWpls(List<Windpowerstation> wpls) {
  357. CacheContext.wpls = wpls;
  358. }
  359. public static List<Windturbine> getWtls() {
  360. return wtls;
  361. }
  362. public static void setWtls(List<Windturbine> wtls) {
  363. CacheContext.wtls = wtls;
  364. }
  365. public static Map<String, String> getGyeeidmap() {
  366. return gyeeidmap;
  367. }
  368. public static void setGyeeidmap(Map<String, String> gyeeidmap) {
  369. CacheContext.gyeeidmap = gyeeidmap;
  370. }
  371. public static Map<String, String> getYjidmap() {
  372. return yjidmap;
  373. }
  374. public static void setYjidmap(Map<String, String> yjidmap) {
  375. CacheContext.yjidmap = yjidmap;
  376. }
  377. public static List<WindPowerStationTestingPoint2> getWppointls() {
  378. return wppointls;
  379. }
  380. public static void setWppointls(List<WindPowerStationTestingPoint2> wppointls) {
  381. CacheContext.wppointls = wppointls;
  382. }
  383. public static List<Electricaltestingpointai> getEtails() {
  384. return etails;
  385. }
  386. public static void setEtails(List<Electricaltestingpointai> etails) {
  387. CacheContext.etails = etails;
  388. }
  389. public static List<Electricaltestingpointdi> getEtdils() {
  390. return etdils;
  391. }
  392. public static void setEtdils(List<Electricaltestingpointdi> etdils) {
  393. CacheContext.etdils = etdils;
  394. }
  395. public static List<WindTurbineTestingPointAi2> getWtails() {
  396. return wtails;
  397. }
  398. public static void setWtails(List<WindTurbineTestingPointAi2> wtails) {
  399. CacheContext.wtails = wtails;
  400. }
  401. public static List<WindTurbineTestingPointDi2> getWtdils() {
  402. return wtdils;
  403. }
  404. public static void setWtdils(List<WindTurbineTestingPointDi2> wtdils) {
  405. CacheContext.wtdils = wtdils;
  406. }
  407. public EquipmentmodelService getWindturbinemodelService() {
  408. return windturbinemodelService;
  409. }
  410. public void setWindturbinemodelService(EquipmentmodelService windturbinemodelService) {
  411. this.windturbinemodelService = windturbinemodelService;
  412. }
  413. public WarningBaseService getWarningBaseService() {
  414. return warningBaseService;
  415. }
  416. public void setWarningBaseService(WarningBaseService warningBaseService) {
  417. this.warningBaseService = warningBaseService;
  418. }
  419. public ProjectService getProjectService() {
  420. return projectService;
  421. }
  422. public void setProjectService(ProjectService projectService) {
  423. this.projectService = projectService;
  424. }
  425. public LineService getLineService() {
  426. return lineService;
  427. }
  428. public void setLineService(LineService lineService) {
  429. this.lineService = lineService;
  430. }
  431. public static Map<String, Project> getPjmap() {
  432. return pjmap;
  433. }
  434. public static void setPjmap(Map<String, Project> pjmap) {
  435. CacheContext.pjmap = pjmap;
  436. }
  437. public static Map<String, List<Project>> getPjsmap() {
  438. return pjsmap;
  439. }
  440. public static void setPjsmap(Map<String, List<Project>> pjsmap) {
  441. CacheContext.pjsmap = pjsmap;
  442. }
  443. public static Map<String, Equipmentmodel> getMlmap() {
  444. return mlmap;
  445. }
  446. public static void setMlmap(Map<String, Equipmentmodel> mlmap) {
  447. CacheContext.mlmap = mlmap;
  448. }
  449. public static List<Equipmentmodel> getMlls() {
  450. return mlls;
  451. }
  452. public static void setMlls(List<Equipmentmodel> mlls) {
  453. CacheContext.mlls = mlls;
  454. }
  455. public static Map<String, Line> getLinemap() {
  456. return linemap;
  457. }
  458. public static void setLinemap(Map<String, Line> linemap) {
  459. CacheContext.linemap = linemap;
  460. }
  461. public static List<WindPowerStationTestingPoint2> getWpjsls() {
  462. return wpjsls;
  463. }
  464. public static void setWpjsls(List<WindPowerStationTestingPoint2> wpjsls) {
  465. CacheContext.wpjsls = wpjsls;
  466. }
  467. public static List<WindPowerStationTestingPoint2> getWppowerls() {
  468. return wppowerls;
  469. }
  470. public static void setWppowerls(List<WindPowerStationTestingPoint2> wppowerls) {
  471. CacheContext.wppowerls = wppowerls;
  472. }
  473. public static List<Meterpoint> getMpls() {
  474. return mpls;
  475. }
  476. public static void setMpls(List<Meterpoint> mpls) {
  477. CacheContext.mpls = mpls;
  478. }
  479. public static List<Project> getPjls() {
  480. return pjls;
  481. }
  482. public static void setPjls(List<Project> pjls) {
  483. CacheContext.pjls = pjls;
  484. }
  485. public static Map<String, Warning2> getWarnnamemap() {
  486. return warnnamemap;
  487. }
  488. public static void setWarnnamemap(Map<String, Warning2> warnnamemap) {
  489. CacheContext.warnnamemap = warnnamemap;
  490. }
  491. public static Map<String, Warning2> getWarnmap() {
  492. return warnmap;
  493. }
  494. public static void setWarnmap(Map<String, Warning2> warnmap) {
  495. CacheContext.warnmap = warnmap;
  496. }
  497. public static List<Warning2> getWarnls() {
  498. return warnls;
  499. }
  500. public static void setWarnls(List<Warning2> warnls) {
  501. CacheContext.warnls = warnls;
  502. }
  503. public static List<Line> getLinels() {
  504. return linels;
  505. }
  506. public static void setLinels(List<Line> linels) {
  507. CacheContext.linels = linels;
  508. }
  509. public StopTypeService getStopTypeService() {
  510. return stopTypeService;
  511. }
  512. public void setStopTypeService(StopTypeService stopTypeService) {
  513. this.stopTypeService = stopTypeService;
  514. }
  515. public MismapService getMismapService() {
  516. return mismapService;
  517. }
  518. public void setMismapService(MismapService mismapService) {
  519. this.mismapService = mismapService;
  520. }
  521. }