شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة

Integrated Applications Programming Company

Skip Navigation LinksHome » Code Library » Dev

Public general use code classes and xml files that we've compiled and used over the years:

Huawei's Dev support class of Next Generation Network'a (NGN's) data model.

   1:  using System;
   2:  using System.Collections.Generic;
   3:  using System.Linq;
   4:  using System.Data;
   5:  using System.Text;
   6:   
   7:  namespace Ia.Ngn.Cl.Model.Data.Huawei
   8:  {
   9:      ////////////////////////////////////////////////////////////////////////////
  10:   
  11:      /// <summary publish="true">
  12:      /// Huawei's Dev support class of Next Generation Network'a (NGN's) data model.
  13:      /// </summary>
  14:      /// 
  15:      /// <remarks> 
  16:      /// Copyright © 2016-2018 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  17:      ///
  18:      /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
  19:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  20:      ///
  21:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  22:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  23:      /// 
  24:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  25:      /// 
  26:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  27:      /// </remarks> 
  28:      public partial class Dev
  29:      {
  30:          private static Dictionary<string, int> devTypeToDevTypeIdDictionary;
  31:          private static Dictionary<int, string> devTypeIdToDevTypeDictionary;
  32:   
  33:          private static Dictionary<string, int> devToDidDictionary;
  34:          private static Dictionary<int, string> didToDevDictionary;
  35:   
  36:          public static Dictionary<string, int> DevTypeToDevTypeIdDictionary
  37:          {
  38:              get
  39:              {
  40:                  if (devTypeToDevTypeIdDictionary == null || devTypeToDevTypeIdDictionary.Count == 0)
  41:                  {
  42:                      devTypeToDevTypeIdDictionary = new Dictionary<string, int>();
  43:   
  44:                      devTypeToDevTypeIdDictionary["UA5000(PVMV1)"] = 219;
  45:                      devTypeToDevTypeIdDictionary["MA5662"] = 37;
  46:                      devTypeToDevTypeIdDictionary["MA5600V3"] = 44;
  47:                      devTypeToDevTypeIdDictionary["MA5105(BSL)"] = 71;
  48:                      devTypeToDevTypeIdDictionary["MA5100V2"] = 72;
  49:                      devTypeToDevTypeIdDictionary["MA5300V1"] = 74;
  50:                      devTypeToDevTypeIdDictionary["MD5500V1"] = 75;
  51:                      devTypeToDevTypeIdDictionary["UA5000"] = 82;
  52:                      devTypeToDevTypeIdDictionary["MA5100V1"] = 86;
  53:                      devTypeToDevTypeIdDictionary["UA5000(IPMB)"] = 253;
  54:                      devTypeToDevTypeIdDictionary["MA5605"] = 30;
  55:                      devTypeToDevTypeIdDictionary["MA5680T"] = 34;
  56:                      devTypeToDevTypeIdDictionary["MA5606T"] = 57;
  57:                      devTypeToDevTypeIdDictionary["UA5000(PVU)"] = 232;
  58:                      devTypeToDevTypeIdDictionary["MA5600T"] = 249;
  59:                      devTypeToDevTypeIdDictionary["MA5615"] = 60;
  60:                      devTypeToDevTypeIdDictionary["MA5626E"] = 61;
  61:                      devTypeToDevTypeIdDictionary["MA5620E"] = 62;
  62:                      devTypeToDevTypeIdDictionary["MA5651"] = 64;
  63:                      devTypeToDevTypeIdDictionary["MA5620G"] = 65;
  64:                      devTypeToDevTypeIdDictionary["MA5626G"] = 66;
  65:                      devTypeToDevTypeIdDictionary["MA5651G"] = 67;
  66:                      devTypeToDevTypeIdDictionary["MA5610"] = 70;
  67:                      devTypeToDevTypeIdDictionary["MA5652G"] = 92;
  68:                      devTypeToDevTypeIdDictionary["MA5603U"] = 94;
  69:                      devTypeToDevTypeIdDictionary["MA5603T"] = 95;
  70:                      devTypeToDevTypeIdDictionary["MA5620"] = 96;
  71:                      devTypeToDevTypeIdDictionary["MA5626"] = 97;
  72:                      devTypeToDevTypeIdDictionary["MA5616"] = 100;
  73:                      devTypeToDevTypeIdDictionary["MA5635"] = 103;
  74:                      devTypeToDevTypeIdDictionary["MA5612"] = 104;
  75:                      devTypeToDevTypeIdDictionary["MA5621"] = 2319;
  76:                      devTypeToDevTypeIdDictionary["MA5628"] = 2312;
  77:                      devTypeToDevTypeIdDictionary["MA5652"] = 2313;
  78:                      devTypeToDevTypeIdDictionary["MA5631"] = 2317;
  79:                      devTypeToDevTypeIdDictionary["MA5612A"] = 2320;
  80:                      devTypeToDevTypeIdDictionary["MA5669"] = 2321;
  81:                      devTypeToDevTypeIdDictionary["MA5621A"] = 2322;
  82:                      devTypeToDevTypeIdDictionary["MA5622A"] = 2323;
  83:                      devTypeToDevTypeIdDictionary["MA5623"] = 2324;
  84:                      devTypeToDevTypeIdDictionary["MA5623A"] = 2326;
  85:                      devTypeToDevTypeIdDictionary["MA5632"] = 2318;
  86:                      devTypeToDevTypeIdDictionary["MA5608T"] = 2331;
  87:                      devTypeToDevTypeIdDictionary["MA5698"] = 2333;
  88:                      devTypeToDevTypeIdDictionary["MA5694"] = 2335;
  89:                      devTypeToDevTypeIdDictionary["MA5821"] = 2336;
  90:                      devTypeToDevTypeIdDictionary["MA5822"] = 2337;
  91:                      devTypeToDevTypeIdDictionary["MA5898"] = 2338;
  92:                      devTypeToDevTypeIdDictionary["MA5818"] = 2339;
  93:                      devTypeToDevTypeIdDictionary["MA5611S"] = 2340;
  94:                      devTypeToDevTypeIdDictionary["MA5694S"] = 2343;
  95:                      devTypeToDevTypeIdDictionary["RPS"] = 2344;
  96:                  }
  97:   
  98:                  return devTypeToDevTypeIdDictionary;
  99:              }
 100:          }
 101:   
 102:          /// <summary/>
 103:          public Dev() { }
 104:   
 105:          ////////////////////////////////////////////////////////////////////////////
 106:   
 107:          /// <summary>
 108:          ///
 109:          /// </summary>
 110:          public static Dictionary<int, string> DevTypeIdToDevTypeDictionary
 111:          {
 112:              get
 113:              {
 114:                  if (devTypeIdToDevTypeDictionary == null || devTypeIdToDevTypeDictionary.Count == 0)
 115:                  {
 116:                      devTypeIdToDevTypeDictionary = new Dictionary<int, string>();
 117:   
 118:                      foreach (KeyValuePair<string, int> kvp in DevTypeToDevTypeIdDictionary) devTypeIdToDevTypeDictionary[kvp.Value] = kvp.Key;
 119:                  }
 120:   
 121:                  return devTypeIdToDevTypeDictionary;
 122:              }
 123:          }
 124:   
 125:          ////////////////////////////////////////////////////////////////////////////
 126:   
 127:          /// <summary>
 128:          ///
 129:          /// </summary>
 130:          public static Dictionary<string, int> DevToDidDictionary
 131:          {
 132:              get
 133:              {
 134:                  if (devToDidDictionary == null || devToDidDictionary.Count == 0)
 135:                  {
 136:                      devToDidDictionary = new Dictionary<string, int>();
 137:   
 138:                      List<Ia.Ngn.Cl.Model.Huawei.EmsDev> list;
 139:   
 140:                      using (var db = new Ia.Ngn.Cl.Model.Ngn())
 141:                      {
 142:                          list = (from ed in db.EmsDevs select ed).ToList();
 143:                      }
 144:   
 145:                      foreach (var d in list) devToDidDictionary[d.DEV] = d.DID;
 146:                  }
 147:   
 148:                  return devToDidDictionary;
 149:              }
 150:          }
 151:   
 152:          ////////////////////////////////////////////////////////////////////////////
 153:   
 154:          /// <summary>
 155:          ///
 156:          /// </summary>
 157:          public static Dictionary<int, string> DidToDevDictionary
 158:          {
 159:              get
 160:              {
 161:                  if (didToDevDictionary == null || didToDevDictionary.Count == 0)
 162:                  {
 163:                      didToDevDictionary = new Dictionary<int, string>();
 164:   
 165:                      foreach (KeyValuePair<string, int> kvp in DevToDidDictionary) didToDevDictionary[kvp.Value] = kvp.Key;
 166:                  }
 167:   
 168:                  return didToDevDictionary;
 169:              }
 170:          }
 171:   
 172:          ////////////////////////////////////////////////////////////////////////////
 173:   
 174:          /// <summary>
 175:          ///
 176:          /// </summary>
 177:          public static bool Update(Ia.Ngn.Cl.Model.Business.Huawei.Ems.Response response, out Ia.Cl.Model.Result result)
 178:          {
 179:              bool isUpdated;
 180:              int id, queryDtTypeId, did, readItemCount, existingItemCount, insertedItemCount, updatedItemCount, deletedItemCount;
 181:              string queryCommand, dtType;
 182:              DataColumnCollection columns;
 183:              DataRow columnDataRow;
 184:              Ia.Ngn.Cl.Model.Huawei.EmsDev dev, newDev;
 185:              List<int> itemIdList;
 186:              List<Ia.Ngn.Cl.Model.Huawei.EmsDev> devList;
 187:   
 188:              isUpdated = false;
 189:              readItemCount = existingItemCount = insertedItemCount = updatedItemCount = deletedItemCount = 0;
 190:              result = new Ia.Cl.Model.Result();
 191:   
 192:              if (response.QueryDataTable != null)
 193:              {
 194:                  queryCommand = response.CommandFromCorrelationTagDictionaryByCtag;
 195:   
 196:                  // LST-DEV::DT=100:{ctag}::;
 197:                  queryDtTypeId = int.Parse(Ia.Cl.Model.Default.Match(queryCommand, @"DT=(\d+)"));
 198:   
 199:                  if (Ia.Ngn.Cl.Model.Data.Huawei.Dev.DevTypeIdToDevTypeDictionary.ContainsKey(queryDtTypeId))
 200:                  {
 201:                      dtType = Ia.Ngn.Cl.Model.Data.Huawei.Dev.DevTypeIdToDevTypeDictionary[queryDtTypeId];
 202:   
 203:                      columns = response.QueryDataTable.Columns;
 204:                      readItemCount = response.QueryDataTable.Rows.Count;
 205:   
 206:                      itemIdList = new List<int>(response.QueryDataTable.Rows.Count + 1);
 207:   
 208:                      using (var db = new Ia.Ngn.Cl.Model.Ngn())
 209:                      {
 210:                          devList = (from ed in db.EmsDevs where ed.DT == dtType select ed).ToList();
 211:   
 212:                          existingItemCount = devList.Count;
 213:   
 214:                          if (response.QueryDataTable.Rows.Count >= 1)
 215:                          {
 216:                              columnDataRow = response.QueryDataTable.Rows[0];
 217:   
 218:                              foreach (DataRow dataRow in response.QueryDataTable.Rows)
 219:                              {
 220:                                  did = int.Parse(dataRow[columns.IndexOf("DID")].ToString());
 221:   
 222:                                  id = Ia.Ngn.Cl.Model.Business.Huawei.Dev.DevId(did);
 223:   
 224:                                  dev = (from d in devList where d.Id == id select d).SingleOrDefault();
 225:   
 226:                                  newDev = new Ia.Ngn.Cl.Model.Huawei.EmsDev()
 227:                                  {
 228:                                      Id = id,
 229:                                      DID = did,
 230:                                      DEV = columns.Contains("DEV") ? dataRow[columns.IndexOf("DEV")].ToString() : string.Empty,
 231:                                      DEVIP = columns.Contains("DEVIP") ? dataRow[columns.IndexOf("DEVIP")].ToString() : string.Empty,
 232:                                      DT = columns.Contains("DT") ? dataRow[columns.IndexOf("DT")].ToString() : string.Empty,
 233:                                      DVER = columns.Contains("DVER") ? dataRow[columns.IndexOf("DVER")].ToString() : string.Empty,
 234:                                      DSTAT = columns.Contains("DSTAT") ? dataRow[columns.IndexOf("DSTAT")].ToString() : string.Empty,
 235:                                      DLOC = columns.Contains("DLOC") ? dataRow[columns.IndexOf("DLOC")].ToString() : string.Empty,
 236:                                      AdminStat = columns.Contains("AdminStat") ? dataRow[columns.IndexOf("AdminStat")].ToString() : string.Empty,
 237:                                      WorkMode = columns.Contains("WorkMode") ? dataRow[columns.IndexOf("WorkMode")].ToString() : string.Empty,
 238:                                      ADDITIONALINFO = columns.Contains("ADDITIONALINFO") ? dataRow[columns.IndexOf("ADDITIONALINFO")].ToString() : string.Empty,
 239:                                      CRTID = columns.Contains("CRTID") ? dataRow[columns.IndexOf("CRTID")].ToString() : string.Empty,
 240:                                      CRTADDR = columns.Contains("CRTADDR") ? dataRow[columns.IndexOf("CRTADDR")].ToString() : string.Empty,
 241:                                      CRTTEL = columns.Contains("CRTTEL") ? dataRow[columns.IndexOf("CRTTEL")].ToString() : string.Empty,
 242:                                      CRTDATE = columns.Contains("CRTDATE") ? dataRow[columns.IndexOf("CRTDATE")].ToString() : string.Empty,
 243:                                      REMARK = columns.Contains("REMARK") ? dataRow[columns.IndexOf("REMARK")].ToString() : string.Empty,
 244:                                      TYPE = columns.Contains("TYPE") ? dataRow[columns.IndexOf("TYPE")].ToString() : string.Empty,
 245:                                      NERATELIST = columns.Contains("NERATELIST") ? dataRow[columns.IndexOf("NERATELIST")].ToString() : string.Empty,
 246:                                      NEPROV = columns.Contains("NEPROV") ? dataRow[columns.IndexOf("NEPROV")].ToString() : string.Empty,
 247:                                      TOPXY = columns.Contains("TOPXY") ? dataRow[columns.IndexOf("TOPXY")].ToString() : string.Empty,
 248:                                      EMSID = columns.Contains("EMSID") ? dataRow[columns.IndexOf("EMSID")].ToString() : string.Empty,
 249:                                      ALIAS = columns.Contains("ALIAS") ? dataRow[columns.IndexOf("ALIAS")].ToString() : string.Empty,
 250:                                      PCBVER = columns.Contains("PCBVER") ? dataRow[columns.IndexOf("PCBVER")].ToString() : string.Empty,
 251:                                      MAINTAINID = columns.Contains("MAINTAINID") ? dataRow[columns.IndexOf("MAINTAINID")].ToString() : string.Empty,
 252:                                      MAINTAINADDR = columns.Contains("MAINTAINADDR") ? dataRow[columns.IndexOf("MAINTAINADDR")].ToString() : string.Empty,
 253:                                      MAINTAINTEL = columns.Contains("MAINTAINTEL") ? dataRow[columns.IndexOf("MAINTAINTEL")].ToString() : string.Empty,
 254:                                      REGISTERSTAT = columns.Contains("REGISTERSTAT") ? dataRow[columns.IndexOf("REGISTERSTAT")].ToString() : string.Empty,
 255:                                  };
 256:   
 257:                                  if (dev == null)
 258:                                  {
 259:                                      newDev.Created = newDev.Updated = DateTime.UtcNow.AddHours(3);
 260:   
 261:                                      db.EmsDevs.Add(newDev);
 262:   
 263:                                      insertedItemCount++;
 264:                                  }
 265:                                  else // update
 266:                                  {
 267:                                      // below: copy values from newDev to dev
 268:   
 269:                                      if (dev.Update(newDev))
 270:                                      {
 271:                                          db.EmsDevs.Attach(dev);
 272:                                          db.Entry(dev).State = System.Data.Entity.EntityState.Modified;
 273:   
 274:                                          updatedItemCount++;
 275:                                      }
 276:                                  }
 277:   
 278:                                  itemIdList.Add(id); // keep at the end
 279:                              }
 280:   
 281:                              // below: this function will remove values that were not present in the reading
 282:                              if (devList.Count > 0)
 283:                              {
 284:                                  foreach (Ia.Ngn.Cl.Model.Huawei.EmsDev de in devList)
 285:                                  {
 286:                                      if (!itemIdList.Contains(de.Id))
 287:                                      {
 288:                                          /*
 289:                                           * First check that this is correct and there is no output paging issues, then I need to delete the boards and ports 
 290:                                          dev = (from ed in db.EmsDevs where ed.Id == de.Id select ed).SingleOrDefault();
 291:  
 292:                                          db.EmsDevs.Remove(dev);
 293:  
 294:                                          deletedItemCount++;
 295:                                          */
 296:                                      }
 297:                                  }
 298:                              }
 299:                          }
 300:                          else
 301:                          {
 302:                              // below: remove all values since reading was empty
 303:   
 304:                              if (devList.Count > 0)
 305:                              {
 306:                                  foreach (Ia.Ngn.Cl.Model.Huawei.EmsDev de in devList)
 307:                                  {
 308:                                      dev = (from ed in db.EmsDevs where ed.Id == de.Id select ed).SingleOrDefault();
 309:   
 310:                                      db.EmsDevs.Remove(dev);
 311:   
 312:                                      deletedItemCount++;
 313:                                  }
 314:                              }
 315:                          }
 316:   
 317:                          db.SaveChanges();
 318:                      }
 319:   
 320:                      if (insertedItemCount != 0 || updatedItemCount != 0 || deletedItemCount != 0) isUpdated = true;
 321:                      else isUpdated = false;
 322:   
 323:                      result.AddSuccess("(" + readItemCount + "/" + existingItemCount + "/" + insertedItemCount + "," + updatedItemCount + "," + deletedItemCount + ")");
 324:                  }
 325:                  else
 326:                  {
 327:                      result.AddWarning("Ia.Ngn.Cl.Model.Data.Huawei.Dev.DevTypeIdToDevTypeDictionary does not contain key queryDtTypeId: " + queryDtTypeId);
 328:                  }
 329:              }
 330:              else
 331:              {
 332:                  result.AddWarning("response.QueryDataTable is null");
 333:              }
 334:   
 335:              return isUpdated;
 336:          }
 337:   
 338:          ////////////////////////////////////////////////////////////////////////////
 339:   
 340:          /// <summary>
 341:          ///
 342:          /// </summary>
 343:          public static List<Ia.Ngn.Cl.Model.Huawei.EmsDev> List()
 344:          {
 345:              List<Ia.Ngn.Cl.Model.Huawei.EmsDev> list;
 346:   
 347:              using (var db = new Ia.Ngn.Cl.Model.Ngn())
 348:              {
 349:                  list = (from ed in db.EmsDevs select ed).ToList();
 350:              }
 351:   
 352:              return list;
 353:          }
 354:   
 355:          ////////////////////////////////////////////////////////////////////////////
 356:   
 357:          /// <summary>
 358:          ///
 359:          /// </summary>
 360:          public static List<string> DevList()
 361:          {
 362:              List<string> list;
 363:   
 364:              using (var db = new Ia.Ngn.Cl.Model.Ngn())
 365:              {
 366:                  list = (from ed in db.EmsDevs select ed.DEV).ToList();
 367:              }
 368:   
 369:              return list;
 370:          }
 371:   
 372:          ////////////////////////////////////////////////////////////////////////////
 373:   
 374:          /// <summary>
 375:          ///
 376:          /// </summary>
 377:          public static List<Ia.Ngn.Cl.Model.Huawei.EmsDev> ListByMA5616DevType()
 378:          {
 379:              return ListByDevType("MA5616");
 380:          }
 381:   
 382:          ////////////////////////////////////////////////////////////////////////////
 383:   
 384:          /// <summary>
 385:          ///
 386:          /// </summary>
 387:          public static List<Ia.Ngn.Cl.Model.Huawei.EmsDev> ListByDevType(string devType)
 388:          {
 389:              List<Ia.Ngn.Cl.Model.Huawei.EmsDev> list;
 390:   
 391:              using (var db = new Ia.Ngn.Cl.Model.Ngn())
 392:              {
 393:                  list = (from ed in db.EmsDevs where ed.DT == devType select ed).ToList();
 394:              }
 395:   
 396:              return list;
 397:          }
 398:   
 399:          ////////////////////////////////////////////////////////////////////////////
 400:   
 401:          /// <summary>
 402:          ///
 403:          /// </summary>
 404:          public static Ia.Ngn.Cl.Model.Huawei.EmsDev Read(int id)
 405:          {
 406:              Ia.Ngn.Cl.Model.Huawei.EmsDev item;
 407:   
 408:              using (var db = new Ia.Ngn.Cl.Model.Ngn())
 409:              {
 410:                  item = (from ed in db.EmsDevs where ed.Id == id select ed).SingleOrDefault();
 411:              }
 412:   
 413:              return item;
 414:          }
 415:   
 416:          ////////////////////////////////////////////////////////////////////////////
 417:   
 418:          /// <summary>
 419:          ///
 420:          /// </summary>
 421:          public static Ia.Ngn.Cl.Model.Huawei.EmsDev ReadByEmsName(string emsName)
 422:          {
 423:              Ia.Ngn.Cl.Model.Huawei.EmsDev item;
 424:   
 425:              using (var db = new Ia.Ngn.Cl.Model.Ngn())
 426:              {
 427:                  item = (from ed in db.EmsDevs where ed.DEV == emsName select ed).SingleOrDefault();
 428:              }
 429:   
 430:              return item;
 431:          }
 432:   
 433:          ////////////////////////////////////////////////////////////////////////////
 434:   
 435:          /// <summary>
 436:          ///
 437:          /// </summary>
 438:          public static Ia.Ngn.Cl.Model.Huawei.EmsDev ReadByDev(string dev)
 439:          {
 440:              Ia.Ngn.Cl.Model.Huawei.EmsDev item;
 441:   
 442:              using (var db = new Ia.Ngn.Cl.Model.Ngn())
 443:              {
 444:                  item = (from ed in db.EmsDevs where ed.DEV == dev select ed).SingleOrDefault();
 445:              }
 446:   
 447:              return item;
 448:          }
 449:   
 450:          ////////////////////////////////////////////////////////////////////////////
 451:   
 452:          /// <summary>
 453:          ///
 454:          /// </summary>
 455:          public static Ia.Ngn.Cl.Model.Huawei.EmsDev ReadByDid(int did)
 456:          {
 457:              Ia.Ngn.Cl.Model.Huawei.EmsDev item;
 458:   
 459:              using (var db = new Ia.Ngn.Cl.Model.Ngn())
 460:              {
 461:                  item = (from ed in db.EmsDevs where ed.DID == did select ed).SingleOrDefault();
 462:              }
 463:   
 464:              return item;
 465:          }
 466:   
 467:          ////////////////////////////////////////////////////////////////////////////
 468:          ////////////////////////////////////////////////////////////////////////////
 469:   
 470:          /// <summary>
 471:          ///
 472:          /// </summary>
 473:          public static string ToSimpleTextString(Ia.Ngn.Cl.Model.Huawei.EmsDev emsDev)
 474:          {
 475:              StringBuilder sb;
 476:   
 477:              sb = new StringBuilder();
 478:   
 479:              sb.AppendLine("DID: " + emsDev.DID);
 480:              sb.AppendLine("DEV: " + emsDev.DEV);
 481:              sb.AppendLine("DEVIP: " + emsDev.DEVIP);
 482:              sb.AppendLine("DT: " + emsDev.DT);
 483:              sb.AppendLine("DVER: " + emsDev.DVER);
 484:              sb.AppendLine("DSTAT: " + emsDev.DSTAT);
 485:   
 486:              return sb.ToString();
 487:          }
 488:   
 489:          ////////////////////////////////////////////////////////////////////////////
 490:          ////////////////////////////////////////////////////////////////////////////
 491:      }
 492:   
 493:      ////////////////////////////////////////////////////////////////////////////
 494:      ////////////////////////////////////////////////////////////////////////////
 495:  }