You are on page 1of 5

P riv a tecolLTECellAs NewCollection P riv a tecolLTEExtCell AsNewCollectio n P riv a tecolW E xtCellA sNewCollectio n P riv a tecolSCTPLNKA sNewCollection P riv a tecolIPPATHAs

THAs NewCollection P riv a tecolETHPORTA sNewCollectio n P riv a tecolX2AsNew Collection P riv a tecolX2SERVIPA sNewCollectio n P riv a tecolX2SIGIPAs NewCollection P ubl icNameAsStrin g P ubl icENodeBIdAsS tring P ubl icLocationAsStr ing P ubl icTACAsString P ubl icMCCAsString P ubl icMNCAsString P ubl icFunctionAddC ell(ByValCellAs cLTECell)AscLT ECell Dim testCel lAscLTE C ell IfNot CellIsNothing Then IfC ell.Name<>""T hen S ettestCell=Ge tLTECell(Cell.Nam e) I ftestCellIsNoth ingThen SetCel l.ENode B=Me col LTECell.Add Cell SetAddCell=C ell E lse SetAddCell=t estCell E ndIf End If EndI f EndF unction P ubl icFunctionGetLT ECell(ByValNam eAsString)As cLTECell Dim Cel lAscLTECell ForE achCellIncolLT ECell IfC ell.Name=Nam eThen
E xitFor End If Next EndF unction P ubl icSubAddExtCe ll(ByValCellAsc ExtLTECell) Dim testCel lAscExtL TECell IfNot CellIsNothing Then IfC ell.LTECell.Nam e<>""Then S ettestCell=Ge tLTEExtCellByEN odeBId(Cell.LTEC ell.ENodeB.ENo deBId, Cell.L TECell.LocalCellI d) I ftestCellIsNoth ingThen col LTEExtCell. AddCell E ndIf End If EndI f EndS ub P ubl icFunctionGetLT EExtCell(ByValN ameAsString) AscExtLTECell Dim Cel lAscExtLTEC ell ForE achCel lIncolLT EExtCell IfC ell.LTECell.Nam e=NameThen S etGetLTEExtCe ll=Cell E xitFor End If Next EndF unction P ubl icFunctionGetLT EExtCellByENod eBId(ByValENo deBAsString,By ValIdAsString) As cExtL TECell Dim Cel lAscExtLTECe ll ForE achCellIncolLT EExtCell IfC ell.LTECell.ENod eB.ENodeBId=E NodeBAnd_ C ell.LTECell.Loca lCellId=IdThen S etGetLTEExtCe llByENodeBId= Cell E xitFor E ndIf End If EndI f EndS ub P ubl icFuncti onG etW ExtCell(ByValNam eAsString)A scWCell Dim Cel lAscW Cel l ForE achCellIncolW ExtCell IfC ell.Name=Nam eThen S etGetW E xtCell =Cell E xitFor End If Next EndF unction P ubl icFunctionAddS CTPLNK(ByValSC TPLNKAscSCTP LNK)AscSCTPLN K Dim testSCTPLNKAs cSCTPLNK IfNot SCTPLNKIsNot hingThen IfS CTPLNK.Id<>"" Then S ettestSCTPLNK =GetSCTPLNK(S CTPLNK.Id) I ftestSCTPLNKIs NothingThen SetSCTPLNK.E NodeB=Me col SCTPLNK.Ad dSCTPLNK SetAddSCTPLN K=SCTPLNK E lse SetAddSCTPLN K=testSCTPLN K E ndIf End If EndI f EndF unction P ubl icFunctionGetS CTPLNK(ByValId AsString)AscS CTPLNK Dim SCTPLNKAscSCT PLNK ForE achSCTPLNKIn colSCTPLNK IfS CTPLNK.Id=IdT hen
I ftestIPPATHIsN othingThen SetIPPATH.EN odeB=Me col IPPATH.Add IPPATH SetAddIPPATH =IPPATH E lse SetAddIPPATH =testIPPATH E ndIf End If EndI f EndF unction P ubl icFunctionGetIP PATH(ByValIdA sString)AscIPP Ath Dim IPPATHAscIPPA th ForE achIPPATHInco lIPPATH IfIP PATH.Id=IdTh en S etGetIPPATH= IPPATH E xitFor End If Next EndF unction P ubl icFuncti onAddET HPORT(ByValET HPORTAscETH PORT)AscETH P ORT Dim testE THPORTAs cETHPORT IfNot ETHPORTIsNo thingThen IfE THPORT.PortNo <>""Then S ettestETHPORT =GetETHPORT( ETHPORT.PortN o) I ftestETHPORTI sNothingThen SetE THPO RT.E NodeB=Me col ETHPO RT.A ddETHPORT SetAddETHPO RT=ETHPORT E lse SetAddETHPO RT=testETHPOR T E ndIf End If EndI f EndF unctionP ubl icFunctionAddX 2(ByValX2AscX 2)AscX2 Dim testX2AscX2 IfNot X2IsNothi ngT hen Set testX2=GetX2( X2.X2ENODEBID ) Ift estX2IsNothing Then S etX2.ENodeB= Me c olX2.AddX2 S etAddX2=X2 Else S etAddX2=test X2 End If EndI f EndF unction P ubl icFunctionGetX 2(ByValX2ENOD EBIDAsInteger) AscX2 Dim X2AscX2 ForE achX2IncolX2 IfX 2.X2ENODEBID= X2ENODEBIDT hen S etGetX2=X2 E xitFor End If Next EndF unction P ubl icFunctionAddX 2SERVIP(ByValX 2SERVIPAscX2S ERVIP)AscX2SE RVIP Dim testX2SE RVIPAs cX2SERVIP IfNot X2SERVIPIsNo thingThen Set testX2SERVIP= GetX2SERVIP(X2 SERVIP.X2SERVI PserviceIPID) Ift estX2SERVIPIsN othingThen S etX2SERVIP.EN odeB=Me c olX2SERVIP.Add X2SERVIP S etAddX2SERVI P=X2SERVIP Else S etAddX2SERVI P=testX2SERVIP End If EndI f
EndF unction P ubl icFunctionAddX 2SIGIP(ByValX2 SIGIPAscX2SIGI P)AscX2SIGIP Dim testX2SIGIPAsc X2SIGIP IfNot X2SIGIPIsNoth ingThen Set testX2SIGIP=G etX2SIGIP(X2SI GIP.X2SignalIPID) Ift estX2SIGIPIsNot hingThen S etX2SIGIP.ENo deB=Me c olX2SIGIP.AddX 2SIGIP S etAddX2SIGIP= X2SIGIP Else S etAddX2SIGIP= testX2SIGIP End If EndI f EndF unction P ubl icFunctionGetX 2SIGIP(ByValX2S ignalIPIDAsInt eger)AscX2SIGI P Dim X2SIGIPAscX2SI GIP ForE achX2SIGIPInc olX2SIGIP IfX 2SIGIP.X2SignalI PID=X2SignalIP IDThen S etGetX2SIGIP= X2SIGIP E xitFor End If Next EndF unction P ubl icSubW ri teScrip t(hArqLTEAsInt eger) Dim LTE CellAscLTEC ell Dim E xtLTECellAscLT ECell Dim wcellAscWCel l P rint #hArqLTE,"M ODENODEBALGO SWITCH:HoAlgo Switch=UtranCs fbSwitch-1, H oM odeSwitch=Utra nPsHoSwitch-0& UtranSrvccSwit ch-0&UtranRed irectSwitch- 1&B lindHoSwitch-1;{ "&Me.Name& "}" P rint #hArqLTE,"M ODINTERRATHOC OMM:InterRatH oUtranB1Meas Quan=UTRAN_R SCP, Int er RatHoA1A2TrigQ uan=RSRP;{"& Me.Name&"}" Next LTECell ForE achLTECellInco lLTEExtCell IfL TECell.ENodeB.N ame<>Me.Nam eThen P rint#hArqLTE, "ADDEUTRANEX TERNALCELL:M cc="""&LTECell. ENodeB.MCC& """, Mnc ="""&LTECell.EN odeB.MNC&"" ",eNodeBId="& LTECell.ENodeB .ENodeBId&_ ",Cel lId ="&LTECell.Loc alCellId&",DlE arfcn="&LTECe ll.ARFCN&", UlEar fcnCfgInd=NOT_ CFG,PhyCellId= "&LTECell.PCI& _ ",Tac=" &LTECell.ENod eB.TAC&";{"& Me.Name&"}" End If Next ForE achwcellIncolW ExtCell P rin t#hArqLTE,"AD DUTRANEXTER NALCELL:MCC= """&wcell.MCC &""",MNC=""" & wce l l.MNC&""",UTR ANCELLID="&w cell.CellId&_ ",U TRANF DDTDDTYPE=UT RAN_FDD,UTRA NDLARFCN="& wcell.ARFCN&" , UTRA NULARFCNCFGI ND=NOT_CFG,R NCID="&wcell. RNC.RNCId&_ ",RACCFGI ND=CFG,RAC=" &wcell.RAC&" ,PSCRAMBCODE ="&wcell.PSC& ", LAC= "&wcell.LAC& ",CELLNAME="" "&wcell.Name &_ """,CSPSH OIND=BOOLEAN _FALSE;{"&M e.Name&"}" Next ForE achLTECellInco lLTECell LTE Cell.W ri teScript hArqLTE Next EndS ub P ubl icSubW ri teScrip tToRemove(hAr qLTEAsInteger) Dim LTE CellAscLTEC ell Dim E xtLTECellAscLT ECell Dim wcellAscWCel l ForE achLTECellInco lLTECell LTE Cell.W ri teScript ToRemovehArqL TE Next
wce l l.MNC&""",UTR ANCELLID="&w cell.CellId&_ ' ",UTRAN FDDTDDTYPE=U TRAN_FDD,UTR ANDLARFCN="& wcell.ARFCN& ", UTRA NULARFCNCFGI ND=NOT_CFG,R NCID="&wcell. RNC.RNCId&_ ' ",RACCFG IND=CFG,RAC=" &wcell.RAC& ",PSCRAMBCOD E="&wcell.PSC &", LAC= "&wcell.LAC& ",CELLNAME="" "&wcell.Nam e&_ ' """,CSPS HOIND=BOOLEA N_FALSE;{"&w cell.RNC.Name& "}" 'Next EndS ub P ubl icSubWri teSpre adsheet(ByRefr owENodeBAsLo ng,ByRefrowC ellAsLong,ByRe f rowE xtCellAsLong,B yRefrowNLAsL ong,_ ByRef rowSCTPLNKAs Long,ByRefro wIPPATH AsLong ,ByRefrowETH PORTAs Long, ByRefrowX2As Long,_ ByRef rowX2SERVIPA sLong,ByRefro wX2SIGIPAsLon g) Dim LTE CellAscLTEC ell Dim E xtLTECellAscEx tLTECell Dim SCTPLNKAscSCT PLNK Dim IPPATHAscIPPA th Dim E THPORTAscET HPORT Dim X2AscX2 Dim X2SE RVIPAscX2 SERVIP Dim X2SIGIPAscX2SI GIP ThisW orkbook1.Wor ksheets("ENodeB ").Cells(rowENo deB,1).Value= Me.Name ThisW orkbook1.Wor ksheets("ENodeB ").Cells(rowENo deB,2).Value= Me.ENodeBId ThisW orkbook1.Wor ksheets("ENodeB ").Cells(rowENo deB,3).Value= Me.TAC ThisW orkbook1.Wor ksheets("ENodeB ").Cells(rowENo deB,4).Value= Me.MCC ThisW orkbook1.Wor ksheets("ENodeB ").Cells(rowENo deB,5).Value= Me.MNC ThisW orkbook1.Wor ksheets("ENodeB ").Cells(rowENo deB,6).Value= Me.Location ForE achLTECellInco lLTECell LTE Cell.W ri teSprea dsheetrowCell, rowNL Next LTECell ForE achExtLTECellIn colLTEExtCell Th isWorkbook1.W orksheets("EUTR ANEXTERNALCEL L").Cells(rowExt Cell,1).Value= Me. Name Th isWorkbook1.W orksheets("EUTR ANEXTERNALCEL L").Cells(rowExt Cell,2).Value= Th isWorkbook1.W orksheets("EUTR ANEXTERNALCEL L").Cells(rowExt Cell,8).Value= ExtLT ECell.ActualLTE Cell.ENodeB.Nam e Th isWorkbook1.W orksheets("EUTR ANEXTERNALCEL L").Cells(rowExt Cell,9).Value= ExtLT ECell.ActualLTE Cell.ENodeB.ENo deBId Th isWorkbook1.W orksheets("EUTR ANEXTERNALCEL L").Cells(rowExt Cell,10).Value= ExtLT ECell.ActualLTE Cell.LocalCellId Th isWorkbook1.W orksheets("EUTR ANEXTERNALCEL L").Cells(rowExt Cell,11).Value= ExtLT ECell.ActualLTE Cell.Name Th isWorkbook1.W orksheets("EUTR ANEXTERNALCE LL").Cells(rowEx tCell,12).Value= ExtLT ECell.ActualLTE Cell.PCI Th isWorkbook1.W orksheets("EUTR ANEXTERNALCEL L").Cells(rowExt Cell,13).Value= ExtLT ECell.ActualLTE Cell.ARFCN row ExtCell=rowEx tCell+1 Next ExtLTECell ForE achX2IncolX2 X2.W ri teSpreadshe etrowX2 Next X2 ForE achX2SERVIPIn colX2SERVIP X2S ERVIP.W ri teSpr eadsheetrowX2 SERVIP Next X2SERVIP ForE achX2SIGIPInc olX2SIGIP X2S IGIP.W ri teSprea dsheetrowX2SI GIP Next X2SIGIP ForE achSCTPLNKIn colSCTPLNK SCT PLNK.Wri teSpre adsheetrowSCT PLNK Next SCTPLNK ForE achIPPATHInco lIPPATH IP P ATH.W ri teSprea dsheetrowIPPA TH Next IPPATH ForE achETHPORTIn colETHPORT ETH PORT.Wri teSpr eadsheetrowET HPORT Next ETHPORT