Form1.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. using HeidenhainDNCLib;
  2. using IMCS.HeidenHain;
  3. using Newtonsoft.Json;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.IO;
  10. using System.Linq;
  11. using System.Net;
  12. using System.Runtime.InteropServices;
  13. using System.Text;
  14. using System.Threading;
  15. using System.Threading.Tasks;
  16. using System.Windows.Forms;
  17. using HEIDENHAIN.body;
  18. using System.Net.NetworkInformation;
  19. namespace HEIDENHAIN
  20. {
  21. public partial class Form1 : Form
  22. {
  23. private int iChannel = 0;
  24. private string RemotePath = "TNC:\\prg";//ConfigurationManager.AppSettings["RemotePath"];
  25. private string DMGRemotePath = "TNC:\\PLC\\HANDLING";
  26. private string SMCRemotePath = "TNC:\\nc_prog";
  27. //连接设备列表
  28. public Dictionary<string, DNC_STATE> deviceList { get; set; } = new Dictionary<string, DNC_STATE>();
  29. private DNC_STATE m_ControlState;
  30. public Dictionary<string, JHMachineInProcess> machineList { get; set; } = new Dictionary<string, JHMachineInProcess>();
  31. //private JHMachineInProcess Machine = new JHMachineInProcess();
  32. // private JHAutomatic m_Automatic = null;
  33. // private JHFileSystem m_FileSystem = null;
  34. //private JHProcessData m_ProcessData = null;
  35. //private JHError m_Error = null;
  36. public Dictionary<String, String> hmDict = new Dictionary<String, String>();
  37. string Http_Request_Url = "http://127.0.0.1:8011/heidenhain/";
  38. bool _contine = true;//用于线程循环
  39. private AutoResetEvent autoConnectEvent = new AutoResetEvent(false);//此处需要调用System.Threading;用于触发等待的线程已发生的事件(连接)
  40. public delegate void RecvAndSendHandler(HttpListenerContext s);//此处需要调用System.Net用于请求和响应HttpListener类
  41. public event RecvAndSendHandler RecvAndSend;
  42. AsyncCallback callback;
  43. HttpListenerContext context = null;
  44. public Form1()
  45. {
  46. InitializeComponent();
  47. }
  48. private void Form1_Load(object sender, EventArgs e)
  49. {
  50. this.RecvAndSend += new RecvAndSendHandler(HttpListen_RecvAndSend);
  51. #region 添加监听的信息线程添加到线程池
  52. WaitCallback wc = new WaitCallback(http_Listen);
  53. ThreadPool.QueueUserWorkItem(wc);
  54. label1.Text = "HttpServer已开启:" + Http_Request_Url;
  55. hmDict.Add("192.168.11.186", RemotePath);
  56. hmDict.Add("192.168.11.187", RemotePath);
  57. hmDict.Add("192.168.11.188", RemotePath);
  58. hmDict.Add("192.168.11.166", DMGRemotePath);
  59. hmDict.Add("192.168.11.167", DMGRemotePath);
  60. hmDict.Add("192.168.11.168", DMGRemotePath);
  61. hmDict.Add("192.168.11.27", SMCRemotePath);
  62. hmDict.Add("192.168.11.29", SMCRemotePath);
  63. #endregion
  64. }
  65. /// <summary>
  66. /// 监听的线程
  67. /// </summary>
  68. /// <param name="ob"></param>
  69. private void http_Listen(object ob)
  70. {
  71. callback = new AsyncCallback(acceptCallback);
  72. HttpListener httpListenner;
  73. httpListenner = new HttpListener();
  74. httpListenner.AuthenticationSchemes = AuthenticationSchemes.Anonymous;
  75. httpListenner.Prefixes.Add(Http_Request_Url);
  76. httpListenner.Start();
  77. while (_contine)
  78. {
  79. try
  80. {
  81. httpListenner.BeginGetContext(callback, httpListenner);
  82. autoConnectEvent.WaitOne();
  83. }
  84. catch (Exception)
  85. {
  86. }
  87. Thread.Sleep(10);
  88. }
  89. }
  90. /// <summary>
  91. /// 回调函数
  92. /// </summary>
  93. /// <param name="ar"></param>
  94. private void acceptCallback(IAsyncResult ar)
  95. {
  96. try
  97. {
  98. context = ((HttpListener)ar.AsyncState).EndGetContext(ar);
  99. }
  100. catch (Exception)
  101. {
  102. autoConnectEvent.Set();
  103. }
  104. if (context != null)
  105. {
  106. RecvAndSend(context);//触发我们一开始声明的事件
  107. autoConnectEvent.Set();
  108. }
  109. }
  110. /// <summary>
  111. /// 接听到消息的方法
  112. /// </summary>
  113. /// <param name="cont"></param>
  114. private void HttpListen_RecvAndSend(HttpListenerContext cont)
  115. {
  116. HttpListenerRequest request = cont.Request;
  117. HttpListenerResponse response = context.Response;
  118. Servlet servlet = new MyServlet();
  119. servlet.onCreate();
  120. if (request.HttpMethod == "POST")
  121. {
  122. if (!request.Url.ToString().Contains("favicon"))
  123. {
  124. try
  125. {
  126. Stream stream = context.Request.InputStream;
  127. StreamReader reader = new StreamReader(stream, Encoding.UTF8);
  128. string body = reader.ReadToEnd();
  129. //YG.Log.Instance.WriteLogAdd(">>>===收到POST数据 : >>>>===" + body);
  130. ResponseBody responseBody = new ResponseBody();
  131. RequestBody hdhBody = JsonConvert.DeserializeObject<RequestBody>(body);
  132. AddList(DateTime.Now.ToString(), "POST", hdhBody.ServerUrl + ":设备:" + hdhBody.MachineName, "OK");
  133. if (hdhBody.Type == ActionTypeEnum.Connect.ToString())
  134. {
  135. Ping pingSender = new Ping();
  136. PingReply reply = pingSender.Send(hdhBody.ServerUrl);
  137. if (reply.Status != IPStatus.Success)
  138. {
  139. responseBody.result = false;
  140. }
  141. }
  142. else
  143. {
  144. //当时德玛吉以德玛吉路径
  145. string RemotePath = hmDict[hdhBody.ServerUrl];
  146. //第一次连接加入数组,以支持多台设备
  147. if (deviceList == null || (deviceList.Where(m => m.Key == hdhBody.MachineName).Count() == 0))
  148. {
  149. m_ControlState = connect(hdhBody.MachineName);
  150. //DNC连接正常,加入数组
  151. if (m_ControlState.ToString() == "DNC_STATE_MACHINE_IS_AVAILABLE")
  152. {
  153. deviceList.Add(hdhBody.MachineName, m_ControlState);
  154. }
  155. Thread.Sleep(500);
  156. }
  157. else
  158. {
  159. //取设备对应的状态
  160. m_ControlState = deviceList.Where(m => m.Key == hdhBody.MachineName).FirstOrDefault().Value;
  161. }
  162. JHMachineInProcess Machine = machineList.Where(m => m.Key == hdhBody.MachineName).FirstOrDefault().Value;
  163. if (m_ControlState != null && m_ControlState.ToString() == "DNC_STATE_MACHINE_IS_AVAILABLE")
  164. {
  165. JHError m_Error = Machine.GetInterface(HeidenhainDNCLib.DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHERROR);
  166. JHErrorEntry2List errorsList = m_Error.GetErrorList();
  167. IJHErrorEntry2 pErrorEntry = null;
  168. for (int i = 0; i < errorsList.Count; i++)
  169. {
  170. pErrorEntry = errorsList[i];
  171. if (pErrorEntry != null && pErrorEntry.Text != null)
  172. {
  173. //Console.WriteLine("===" + pErrorEntry.Text.ToString());
  174. responseBody.errorsInfo += pErrorEntry.Text.ToString() + " ";
  175. }
  176. }
  177. if (hdhBody.Type == ActionTypeEnum.Collect.ToString())
  178. {
  179. JHAutomatic m_Automatic = Machine.GetInterface(DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHAUTOMATIC);
  180. JHProcessData m_ProcessData = Machine.GetInterface(HeidenhainDNCLib.DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHPROCESSDATA);
  181. object pFeed = new object();
  182. object pSpeed = new object();
  183. object pRapid = new object();
  184. object proStatus = new object();
  185. //进出倍率 主轴倍率
  186. m_Automatic.GetOverrideInfo(ref pFeed, ref pSpeed, ref pRapid);
  187. m_Automatic.GetExecutionMode();
  188. DNC_STS_PROGRAM dncProgram = m_Automatic.GetProgramStatus();
  189. RunDatasInfo runDatasInfo = new RunDatasInfo();
  190. runDatasInfo.feedRate = pFeed.ToString();
  191. runDatasInfo.spindleMagnification = pSpeed.ToString();
  192. runDatasInfo.spindleSpeed = pRapid.ToString();
  193. responseBody.runDatasInfo = JsonConvert.SerializeObject(runDatasInfo);
  194. object oHours = new object();
  195. object oMinutes = new object();
  196. // --- NC uptime --------------------------------------------------------------------------
  197. m_ProcessData.GetNcUpTime(ref oHours, ref oMinutes);
  198. string ncUpTime = oHours.ToString() + ":" + (Convert.ToInt32(oMinutes) > 9 ? oMinutes.ToString() : ("0" + oMinutes.ToString()));
  199. // --- Machine uptime ---------------------------------------------------------------------
  200. m_ProcessData.GetMachineUpTime(ref oHours, ref oMinutes);
  201. string machineUpTime = oHours.ToString() + ":" + (Convert.ToInt32(oMinutes) > 9 ? oMinutes.ToString() : ("0" + oMinutes.ToString()));
  202. // --- Machine running time ---------------------------------------------------------------
  203. m_ProcessData.GetMachineRunningTime(ref oHours, ref oMinutes);
  204. string runningTimes = oHours.ToString() + ":" + (Convert.ToInt32(oMinutes) > 9 ? oMinutes.ToString() : ("0" + oMinutes.ToString()));
  205. }
  206. else if (hdhBody.Type == ActionTypeEnum.Upload.ToString())
  207. {
  208. JHFileSystem m_FileSystem = Machine.GetInterface(DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHFILESYSTEM);
  209. JHAutomatic m_Automatic = Machine.GetInterface(DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHAUTOMATIC);
  210. string sSelectedFile = Path.GetFileName(hdhBody.Path);
  211. string dncPath = GenPath(RemotePath, sSelectedFile);
  212. string tempDncPath = RemotePath + "\\2.h";
  213. //设置临时程序为主程序
  214. m_Automatic.SelectProgram(iChannel, tempDncPath);
  215. try
  216. { //删除上传文件,try异常防止文件不存在
  217. //m_FileSystem.DeleteFile(dncPath);
  218. }
  219. catch (Exception edel)
  220. {
  221. }
  222. //上传
  223. m_FileSystem.TransmitFile(hdhBody.Path, dncPath);
  224. //设当前上传程序为主程序
  225. m_Automatic.SelectProgram(iChannel, dncPath);
  226. }
  227. else if (hdhBody.Type == ActionTypeEnum.DeleteNc.ToString())
  228. {
  229. JHFileSystem m_FileSystem = Machine.GetInterface(DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHFILESYSTEM);
  230. string dncPath = GenPath(RemotePath, hdhBody.Path);
  231. m_FileSystem.DeleteFile(dncPath);
  232. }
  233. else if (hdhBody.Type == ActionTypeEnum.SelectNcProgram.ToString())//选中程序
  234. {
  235. JHAutomatic m_Automatic = Machine.GetInterface(DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHAUTOMATIC);
  236. string dncPath = GenPath(RemotePath, hdhBody.Path);
  237. m_Automatic.SelectProgram(iChannel, dncPath);
  238. }
  239. else if (hdhBody.Type == ActionTypeEnum.StartNcProgram.ToString())//启动程序备用
  240. {
  241. JHAutomatic m_Automatic = Machine.GetInterface(DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHAUTOMATIC);
  242. //m_Automatic.SelectProgram(iChannel, GenPath(RemotePath, hdhBody.Path));
  243. //Thread.Sleep(1000);
  244. m_Automatic.StartProgram(GenPath(RemotePath, hdhBody.Path));
  245. }
  246. else if (hdhBody.Type == ActionTypeEnum.Read.ToString())
  247. {
  248. }
  249. else if (hdhBody.Type == ActionTypeEnum.Write.ToString())
  250. {
  251. }
  252. else if (hdhBody.Type == ActionTypeEnum.ToolList.ToString())
  253. {
  254. IJHDataEntry2 ToolLine = null;
  255. IJHDataEntry2List ToolCells = null;
  256. //IJHDataEntry2 ToolCell = null;
  257. List<ToolsInfo> toolsList = new List<ToolsInfo>();
  258. JHDataAccess dataAccess = Machine.GetInterface(HeidenhainDNCLib.DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHDATAACCESS);
  259. dataAccess.SetAccessMode(DNC_ACCESS_MODE.DNC_ACCESS_MODE_TABLEDATAACCESS, "");
  260. //string ToolColumnNamesAccessor = @"\TABLE\TOOL\T\('1'-'50')"; // see Init()
  261. string ToolColumnNamesAccessor = @"\TABLE\TOOL_P\T\('1'-'50')";
  262. IJHDataEntry2 ToolTable = dataAccess.GetDataEntry2(ToolColumnNamesAccessor, DNC_DATA_UNIT_SELECT.DNC_DATA_UNIT_SELECT_METRIC, false);
  263. IJHDataEntry2List ToolLines = ToolTable.GetChildList();
  264. int ToolLinesCount = ToolLines.Count >= 50 ? 50 : ToolLines.Count;
  265. //int ToolLinesCount = ToolLines.Count;
  266. for (int i = 0; i < ToolLinesCount; i++)
  267. {
  268. ToolLine = ToolLines[i];
  269. ToolCells = ToolLine.GetChildList();
  270. // get child list from server
  271. ToolsInfo toolsInfo = new ToolsInfo();
  272. //刀位编码
  273. int[] pCode = ToolCells[0].GetPropertyValue(DNC_DATAENTRY_PROPKIND.DNC_DATAENTRY_PROPKIND_DATA);
  274. toolsInfo.position = string.Join(".", pCode);
  275. toolsInfo.number = ToolCells[1].GetPropertyValue(DNC_DATAENTRY_PROPKIND.DNC_DATAENTRY_PROPKIND_DATA).ToString();
  276. toolsInfo.name = ToolCells[2].GetPropertyValue(DNC_DATAENTRY_PROPKIND.DNC_DATAENTRY_PROPKIND_DATA).ToString();
  277. if (!String.IsNullOrEmpty(toolsInfo.name) && !String.IsNullOrEmpty(toolsInfo.number) && pCode.Length>0 && pCode[1]>0)
  278. {
  279. string ToolNumberAccessor = @"\TABLE\TOOL\T\"+ toolsInfo.number.ToString();
  280. IJHDataEntry2List ToolList = dataAccess.GetDataEntry2(ToolNumberAccessor, DNC_DATA_UNIT_SELECT.DNC_DATA_UNIT_SELECT_METRIC, false).GetChildList();
  281. //刀具半径
  282. toolsInfo.toolRadius = ToolList[3].GetPropertyValue(DNC_DATAENTRY_PROPKIND.DNC_DATAENTRY_PROPKIND_DATA).ToString();
  283. //报警期限
  284. toolsInfo.warnLife = ToolList[10].GetPropertyValue(DNC_DATAENTRY_PROPKIND.DNC_DATAENTRY_PROPKIND_DATA).ToString();
  285. //刀具寿命目标值
  286. toolsInfo.targetLife = ToolList[11].GetPropertyValue(DNC_DATAENTRY_PROPKIND.DNC_DATAENTRY_PROPKIND_DATA).ToString();
  287. //Cur_Time使用时间
  288. toolsInfo.curTime = ToolList[12].GetPropertyValue(DNC_DATAENTRY_PROPKIND.DNC_DATAENTRY_PROPKIND_DATA).ToString();
  289. toolsList.Add(toolsInfo);
  290. }
  291. }
  292. //获取海德汉的刀具寿命信息
  293. responseBody.toolsInfo = JsonConvert.SerializeObject(toolsList.Distinct().ToList());
  294. }
  295. }
  296. else
  297. {
  298. responseBody.msg = m_ControlState.ToString();
  299. responseBody.result = false;
  300. //deviceList.Remove(hdhBody.MachineName);
  301. }
  302. }
  303. AddList(DateTime.Now.ToString(), "POST", hdhBody.ServerUrl + ":响应数据:" + responseBody.toolsInfo, responseBody.result ? "OK" : "失败:"+ m_ControlState != null ? m_ControlState.ToString():"");
  304. response.ContentType = "application/json;charset=UTF-8";
  305. response.ContentEncoding = Encoding.UTF8;
  306. response.AppendHeader("Content-Type", "application/json;charset=UTF-8");
  307. string retJsonData = JsonConvert.SerializeObject(responseBody);
  308. using (StreamWriter writer = new StreamWriter(response.OutputStream, Encoding.UTF8))
  309. {
  310. YG.Log.Instance.WriteLogAdd($"海德汉响应结果--->>{JsonConvert.SerializeObject(JsonConvert.SerializeObject(responseBody))}--->>{body}\r\n");
  311. writer.Write(JsonConvert.SerializeObject(responseBody));
  312. writer.Close();
  313. response.Close();
  314. }
  315. }
  316. catch (Exception opcex)
  317. {
  318. YG.Log.Instance.WriteLogAdd($"海德汉响应异常--->>" + opcex.Message);
  319. AddList(DateTime.Now.ToString(), "POST", request.Url.ToString(), opcex.Message);
  320. //发生异常,清空数组,重新连接
  321. //deviceList = new Dictionary<string, DNC_STATE>();
  322. }
  323. }
  324. }
  325. else if (request.HttpMethod == "GET")
  326. {
  327. if (!request.Url.ToString().Contains("favicon"))
  328. {
  329. string ip = request.QueryString["ip"];
  330. string port = request.QueryString["port"];
  331. string fun = request.QueryString["fun"];
  332. AddList(DateTime.Now.ToString(), "GET", ip + port + fun, "OK");
  333. }
  334. response.Close();
  335. }
  336. }
  337. private DNC_STATE connect(string connectName)
  338. {
  339. DNC_CNC_TYPE CncType ;
  340. IJHConnectionList connectionList = null;
  341. IJHConnection connection = null;
  342. try
  343. {
  344. JHMachineInProcess Machine = null;
  345. //第一次连接加入数组,以支持多台设备
  346. if (machineList == null || (machineList.Where(m => m.Key == connectName).Count() == 0))
  347. {
  348. Machine = new JHMachineInProcess();
  349. //DNC连接正常,加入数组
  350. machineList.Add(connectName, Machine);
  351. Thread.Sleep(20);
  352. }
  353. else
  354. {
  355. //取对应设备
  356. Machine = machineList.Where(m => m.Key == connectName).FirstOrDefault().Value;
  357. }
  358. Machine.ConnectRequest(connectName);
  359. string sCurrentMachine = Machine.currentMachine;
  360. // Find out control type
  361. connectionList = Machine.ListConnections();
  362. for (int i = 0; i < connectionList.Count; i++)
  363. {
  364. connection = connectionList[i];
  365. if (connection.name == sCurrentMachine)
  366. {
  367. CncType = connection.cncType;
  368. }
  369. if (connection != null)
  370. Marshal.ReleaseComObject(connection);
  371. }
  372. return Machine.GetState();
  373. }
  374. catch (COMException cex)
  375. {
  376. YG.Log.Instance.WriteLogAdd($"海德汉响应异常--->>" + cex.Message);
  377. return DNC_STATE.DNC_STATE_NOT_INITIALIZED;
  378. }
  379. catch (Exception ex)
  380. {
  381. YG.Log.Instance.WriteLogAdd($"海德汉响应异常--->>" + ex.Message);
  382. return DNC_STATE.DNC_STATE_NOT_INITIALIZED;
  383. }
  384. finally
  385. {
  386. if (connectionList != null)
  387. Marshal.ReleaseComObject(connectionList);
  388. if (connection != null)
  389. Marshal.ReleaseComObject(connection);
  390. }
  391. }
  392. private string GenPath(string part1, string part2)
  393. {
  394. string sFullPath = part1;
  395. switch (part2)
  396. {
  397. case ".":
  398. break;
  399. case "..":
  400. if (part1.EndsWith(@"\") && part1.Length > 5)
  401. part1 = part1.Substring(0, part1.Length - 3);
  402. int iLastFolderPos = part1.LastIndexOf(@"\");
  403. if (iLastFolderPos >= 0)
  404. sFullPath = part1.Substring(0, iLastFolderPos + 1);
  405. break;
  406. default:
  407. if (part1.EndsWith(@"\"))
  408. sFullPath = part1 + part2;
  409. else
  410. sFullPath = part1 + @"\" + part2;
  411. break;
  412. }
  413. return sFullPath;
  414. }
  415. public class Servlet
  416. {
  417. public virtual void onGet(System.Net.HttpListenerRequest request, System.Net.HttpListenerResponse response, string info) { }
  418. public virtual void onPost(System.Net.HttpListenerRequest request, System.Net.HttpListenerResponse response) { }
  419. public virtual void onCreate()
  420. {
  421. }
  422. }
  423. public void AddList(string dtime, string type, string url, string res)
  424. {
  425. this.Invoke(new Action(delegate ()
  426. {
  427. listView1.BeginUpdate(); //数据更新,UI暂时挂起,直到EndUpdate绘制控件,可以有效避免闪烁并大大提高加载速度
  428. ListViewItem lvi = new ListViewItem();
  429. lvi.Text = dtime;
  430. lvi.SubItems.Add(type);
  431. lvi.SubItems.Add(url);
  432. lvi.SubItems.Add(res);
  433. this.listView1.Items.Insert(0, lvi);
  434. if (this.listView1.Items.Count > 100)
  435. {
  436. this.listView1.Items.Clear();
  437. }
  438. this.listView1.EndUpdate(); //结束数据处理,UI界面一次性绘制。}
  439. }));
  440. }
  441. public class MyServlet : Servlet
  442. {
  443. public override void onCreate()
  444. {
  445. base.onCreate();
  446. }
  447. public override void onGet(HttpListenerRequest request, HttpListenerResponse response, string info)
  448. {
  449. Console.WriteLine("GET:" + request.Url);
  450. byte[] buffer = Encoding.UTF8.GetBytes(info);
  451. //string sss = request.QueryString["ty"];
  452. System.IO.Stream output = response.OutputStream;
  453. output.Write(buffer, 0, buffer.Length);
  454. // You must close the output stream.
  455. output.Close();
  456. //listener.Stop();
  457. }
  458. public override void onPost(HttpListenerRequest request, HttpListenerResponse response)
  459. {
  460. Console.WriteLine("POST:" + request.Url);
  461. byte[] res = Encoding.UTF8.GetBytes("OK");
  462. response.OutputStream.Write(res, 0, res.Length);
  463. }
  464. }
  465. }
  466. }