Commit dc9211ae authored by hardy's avatar hardy

removed all Getters and Setters from EPC, HTML classes (as all attributes are public)

parent d273ae84
...@@ -70,34 +70,34 @@ class EPCManagement(): ...@@ -70,34 +70,34 @@ class EPCManagement():
# Setter and Getters on Public Members # Setter and Getters on Public Members
#----------------------------------------------------------- #-----------------------------------------------------------
def SetIPAddress(self, ipaddress): # def SetIPAddress(self, ipaddress):
self.IPAddress = ipaddress # self.IPAddress = ipaddress
def GetIPAddress(self): # def GetIPAddress(self):
return self.IPAddress # return self.IPAddress
def SetUserName(self, username): # def SetUserName(self, username):
self.UserName = username # self.UserName = username
def GetUserName(self): # def GetUserName(self):
return self.UserName # return self.UserName
def SetPassword(self, password): # def SetPassword(self, password):
self.Password = password # self.Password = password
def GetPassword(self): # def GetPassword(self):
return self.Password # return self.Password
def SetSourceCodePath(self, sourcecodepath): # def SetSourceCodePath(self, sourcecodepath):
self.SourceCodePath = sourcecodepath # self.SourceCodePath = sourcecodepath
def GetSourceCodePath(self): # def GetSourceCodePath(self):
return self.SourceCodePath # return self.SourceCodePath
def SetType(self, kind): # def SetType(self, kind):
self.Type = kind # self.Type = kind
def GetType(self): # def GetType(self):
return self.Type # return self.Type
def SetHtmlObj(self, obj): # def SetHtmlObj(self, obj):
self.htmlObj = obj # self.htmlObj = obj
def SetTestCase_id(self, idx): # def SetTestCase_id(self, idx):
self.testCase_id = idx # self.testCase_id = idx
def GetMmeIPAddress(self): # def GetMmeIPAddress(self):
return self.MmeIPAddress # return self.MmeIPAddress
def SetContainerPrefix(self, prefix): # def SetContainerPrefix(self, prefix):
self.containerPrefix = prefix # self.containerPrefix = prefix
#----------------------------------------------------------- #-----------------------------------------------------------
# EPC management functions # EPC management functions
......
...@@ -82,73 +82,69 @@ class HTMLManagement(): ...@@ -82,73 +82,69 @@ class HTMLManagement():
#----------------------------------------------------------- #-----------------------------------------------------------
# Setters and Getters # Setters and Getters
#----------------------------------------------------------- #-----------------------------------------------------------
def SethtmlUEFailureMsg(self,huefa):
self.htmlUEFailureMsg = huefa
def GethtmlUEFailureMsg(self):
return self.htmlUEFailureMsg
def SetHmleNBFailureMsg(self, msg):
self.htmleNBFailureMsg = msg
def Setdesc(self, dsc):
self.desc = dsc
def SetstartTime(self, sttime):
self.startTime = sttime
def SettestCase_id(self, tcid):
self.testCase_id = tcid
def GettestCase_id(self):
return self.testCase_id
def SetranRepository(self, repository):
self.ranRepository = repository
def SetranAllowMerge(self, merge):
self.ranAllowMerge = merge
def SetranBranch(self, branch):
self.ranBranch = branch
def SetranCommitID(self, commitid):
self.ranCommitID = commitid
def SetranTargetBranch(self, tbranch):
self.ranTargetBranch = tbranch
def SethtmlUEConnected(self, nbUEs): def SethtmlUEConnected(self, nbUEs):
if nbUEs > 0: if nbUEs > 0:
self.htmlUEConnected = nbUEs self.htmlUEConnected = nbUEs
else: else:
self.htmlUEConnected = 1 self.htmlUEConnected = 1
def SethtmlNb_Smartphones(self, nbUEs):
self.htmlNb_Smartphones = nbUEs
def SethtmlNb_CATM_Modules(self, nbUEs):
self.htmlNb_CATM_Modules = nbUEs
def SetnbTestXMLfiles(self, nb):
self.nbTestXMLfiles = nb
def GetnbTestXMLfiles(self):
return self.nbTestXMLfiles
def SettestXMLfiles(self, xmlFile): # def SethtmlUEFailureMsg(self,huefa):
self.testXMLfiles.append(xmlFile) # self.htmlUEFailureMsg = huefa
def SethtmlTabRefs(self, tabRef): # def GethtmlUEFailureMsg(self):
self.htmlTabRefs.append(tabRef) # return self.htmlUEFailureMsg
def SethtmlTabNames(self, tabName): # def SetHmleNBFailureMsg(self, msg):
self.htmlTabNames.append(tabName) # self.htmleNBFailureMsg = msg
def SethtmlTabIcons(self, tabIcon): # def Setdesc(self, dsc):
self.htmlTabIcons.append(tabIcon) # self.desc = dsc
# def SetstartTime(self, sttime):
# self.startTime = sttime
# def SettestCase_id(self, tcid):
# self.testCase_id = tcid
# def GettestCase_id(self):
# return self.testCase_id
# def SetranRepository(self, repository):
# self.ranRepository = repository
# def SetranAllowMerge(self, merge):
# self.ranAllowMerge = merge
# def SetranBranch(self, branch):
# self.ranBranch = branch
# def SetranCommitID(self, commitid):
# self.ranCommitID = commitid
# def SetranTargetBranch(self, tbranch):
# self.ranTargetBranch = tbranch
# def SethtmlNb_Smartphones(self, nbUEs):
# self.htmlNb_Smartphones = nbUEs
# def SethtmlNb_CATM_Modules(self, nbUEs):
# self.htmlNb_CATM_Modules = nbUEs
# def SetnbTestXMLfiles(self, nb):
# self.nbTestXMLfiles = nb
# def GetnbTestXMLfiles(self):
# return self.nbTestXMLfiles
# def SettestXMLfiles(self, xmlFile):
# self.testXMLfiles.append(xmlFile)
# def SethtmlTabRefs(self, tabRef):
# self.htmlTabRefs.append(tabRef)
# def SethtmlTabNames(self, tabName):
# self.htmlTabNames.append(tabName)
# def SethtmlTabIcons(self, tabIcon):
# self.htmlTabIcons.append(tabIcon)
# def SetOsVersion(self, version, idx):
# self.OsVersion[idx] = version
# def SetKernelVersion(self, version, idx):
# self.KernelVersion[idx] = version
# def SetUhdVersion(self, version, idx):
# self.UhdVersion[idx] = version
# def SetUsrpBoard(self, version, idx):
# self.UsrpBoard[idx] = version
# def SetCpuNb(self, nb, idx):
# self.CpuNb[idx] = nb
# def SetCpuModel(self, model, idx):
# self.CpuModel[idx] = model
# def SetCpuMHz(self, freq, idx):
# self.CpuMHz[idx] = freq
def SetOsVersion(self, version, idx):
self.OsVersion[idx] = version
def SetKernelVersion(self, version, idx):
self.KernelVersion[idx] = version
def SetUhdVersion(self, version, idx):
self.UhdVersion[idx] = version
def SetUsrpBoard(self, version, idx):
self.UsrpBoard[idx] = version
def SetCpuNb(self, nb, idx):
self.CpuNb[idx] = nb
def SetCpuModel(self, model, idx):
self.CpuModel[idx] = model
def SetCpuMHz(self, freq, idx):
self.CpuMHz[idx] = freq
#----------------------------------------------------------- #-----------------------------------------------------------
# HTML structure creation functions # HTML structure creation functions
......
This diff is collapsed.
...@@ -92,143 +92,143 @@ class RANManagement(): ...@@ -92,143 +92,143 @@ class RANManagement():
self.epcObj = None self.epcObj = None
"""
#----------------------------------------------------------- #-----------------------------------------------------------
# Setters and Getters on Public members # Setters and Getters on Public members
#----------------------------------------------------------- #-----------------------------------------------------------
def SetHtmlObj(self, obj): # def SetHtmlObj(self, obj):
self.htmlObj = obj # self.htmlObj = obj
def SetEpcObj(self, obj): # def SetEpcObj(self, obj):
self.epcObj = obj # self.epcObj = obj
#
def SetflexranCtrlInstalled(self,fxrctin): # def SetflexranCtrlInstalled(self,fxrctin):
self.flexranCtrlInstalled = fxrctin # self.flexranCtrlInstalled = fxrctin
def GetflexranCtrlInstalled(self): # def GetflexranCtrlInstalled(self):
return self.flexranCtrlInstalled # return self.flexranCtrlInstalled
def SetflexranCtrlStarted(self,fxrctst): # def SetflexranCtrlStarted(self,fxrctst):
self.flexranCtrlStarted = fxrctst # self.flexranCtrlStarted = fxrctst
def GetflexranCtrlStarted(self): # def GetflexranCtrlStarted(self):
return self.flexranCtrlStarted # return self.flexranCtrlStarted
def SetpStatus(self, pSt): # def SetpStatus(self, pSt):
self.pStatus = pSt # self.pStatus = pSt
def SetranRepository(self, repository): # def SetranRepository(self, repository):
self.ranRepository = repository # self.ranRepository = repository
def GetranRepository(self): # def GetranRepository(self):
return self.ranRepository # return self.ranRepository
def SetranBranch(self, branch): # def SetranBranch(self, branch):
self.ranBranch = branch # self.ranBranch = branch
def GetranBranch(self): # def GetranBranch(self):
return self.ranBranch # return self.ranBranch
def SetranCommitID(self, commitid): # def SetranCommitID(self, commitid):
self.ranCommitID = commitid # self.ranCommitID = commitid
def GetranCommitID(self): # def GetranCommitID(self):
return self.ranCommitID # return self.ranCommitID
def SeteNB_serverId(self, enbsrvid): # def SeteNB_serverId(self, enbsrvid):
self.eNB_serverId = enbsrvid # self.eNB_serverId = enbsrvid
def GeteNB_serverId(self): # def GeteNB_serverId(self):
return self.eNB_serverId # return self.eNB_serverId
def SeteNBIPAddress(self, enbip): # def SeteNBIPAddress(self, enbip):
self.eNBIPAddress = enbip # self.eNBIPAddress = enbip
def GeteNBIPAddress(self): # def GeteNBIPAddress(self):
return self.eNBIPAddress # return self.eNBIPAddress
def SeteNBUserName(self, enbusr): # def SeteNBUserName(self, enbusr):
self.eNBUserName = enbusr # self.eNBUserName = enbusr
def GeteNBUserName(self): # def GeteNBUserName(self):
return self.eNBUserName # return self.eNBUserName
def SeteNBPassword(self, enbpw): # def SeteNBPassword(self, enbpw):
self.eNBPassword = enbpw # self.eNBPassword = enbpw
def GeteNBPassword(self): # def GeteNBPassword(self):
return self.eNBPassword # return self.eNBPassword
def SeteNBSourceCodePath(self, enbcodepath): # def SeteNBSourceCodePath(self, enbcodepath):
self.eNBSourceCodePath = enbcodepath # self.eNBSourceCodePath = enbcodepath
def GeteNBSourceCodePath(self): # def GeteNBSourceCodePath(self):
return self.eNBSourceCodePath # return self.eNBSourceCodePath
def SetranAllowMerge(self, merge): # def SetranAllowMerge(self, merge):
self.ranAllowMerge = merge # self.ranAllowMerge = merge
def GetranAllowMerge(self): # def GetranAllowMerge(self):
return self.ranAllowMerge # return self.ranAllowMerge
def SetranTargetBranch(self, tbranch): # def SetranTargetBranch(self, tbranch):
self.ranTargetBranch = tbranch # self.ranTargetBranch = tbranch
def GetranTargetBranch(self): # def GetranTargetBranch(self):
return self.ranTargetBranch # return self.ranTargetBranch
def SetBuild_eNB_args(self, enbbuildarg): # def SetBuild_eNB_args(self, enbbuildarg):
self.Build_eNB_args = enbbuildarg # self.Build_eNB_args = enbbuildarg
def GetBuild_eNB_args(self): # def GetBuild_eNB_args(self):
return self.Build_eNB_args # return self.Build_eNB_args
def SetInitialize_eNB_args(self, initenbarg): # def SetInitialize_eNB_args(self, initenbarg):
self.Initialize_eNB_args = initenbarg # self.Initialize_eNB_args = initenbarg
def GetInitialize_eNB_args(self): # def GetInitialize_eNB_args(self):
return self.Initialize_eNB_args # return self.Initialize_eNB_args
def SetbackgroundBuild(self, bkbuild): # def SetbackgroundBuild(self, bkbuild):
self.backgroundBuild = bkbuild # self.backgroundBuild = bkbuild
def GetbackgroundBuild(self): # def GetbackgroundBuild(self):
return self.backgroundBuild # return self.backgroundBuild
def SetbackgroundBuildTestId(self, bkbuildid): # def SetbackgroundBuildTestId(self, bkbuildid):
self.backgroundBuildTestId = bkbuildid # self.backgroundBuildTestId = bkbuildid
def GetbackgroundBuildTestId(self): # def GetbackgroundBuildTestId(self):
return self.backgroundBuildTestId # return self.backgroundBuildTestId
def SetBuild_eNB_forced_workspace_cleanup(self, fcdwspclean): # def SetBuild_eNB_forced_workspace_cleanup(self, fcdwspclean):
self.Build_eNB_forced_workspace_cleanup = fcdwspclean # self.Build_eNB_forced_workspace_cleanup = fcdwspclean
def GetBuild_eNB_forced_workspace_cleanup(self): # def GetBuild_eNB_forced_workspace_cleanup(self):
return self.Build_eNB_forced_workspace_cleanup # return self.Build_eNB_forced_workspace_cleanup
def Setair_interface(self, airif): # def Setair_interface(self, airif):
self.air_interface = airif # self.air_interface = airif
def Getair_interface(self): # def Getair_interface(self):
return self.air_interface # return self.air_interface
def SeteNB_instance(self, enbinst): # def SeteNB_instance(self, enbinst):
self.eNB_instance = enbinst # self.eNB_instance = enbinst
def GeteNB_instance(self): # def GeteNB_instance(self):
return self.eNB_instance # return self.eNB_instance
#
def SeteNBLogFile(self, enblog, idx): # def SeteNBLogFile(self, enblog, idx):
self.eNBLogFiles[idx] = enblog # self.eNBLogFiles[idx] = enblog
def GeteNBLogFile(self, idx): # def GeteNBLogFile(self, idx):
return self.eNBLogFiles[idx] # return self.eNBLogFiles[idx]
#
def GeteNBmbmsEnable(self, idx): # def GeteNBmbmsEnable(self, idx):
return self.eNBmbmsEnables[idx] # return self.eNBmbmsEnables[idx]
#
def SeteNB1IPAddress(self,enb1ip): # def SeteNB1IPAddress(self,enb1ip):
self.eNB1IPAddress = enb1ip # self.eNB1IPAddress = enb1ip
def GeteNB1IPAddress(self): # def GeteNB1IPAddress(self):
return self.eNB1IPAddress # return self.eNB1IPAddress
def SeteNB1UserName(self, enb1usr): # def SeteNB1UserName(self, enb1usr):
self.eNB1UserName = enb1usr # self.eNB1UserName = enb1usr
def GeteNB1UserName(self): # def GeteNB1UserName(self):
return self.eNB1UserName # return self.eNB1UserName
def SeteNB1Password(self, enb1pw): # def SeteNB1Password(self, enb1pw):
self.eNB1Password = enb1pw # self.eNB1Password = enb1pw
def GeteNB1Password(self): # def GeteNB1Password(self):
return self.eNB1Password # return self.eNB1Password
def SeteNB1SourceCodePath(self, enb1codepath): # def SeteNB1SourceCodePath(self, enb1codepath):
self.eNB1SourceCodePath = enb1codepath # self.eNB1SourceCodePath = enb1codepath
def GeteNB1SourceCodePath(self): # def GeteNB1SourceCodePath(self):
return self.eNB1SourceCodePath # return self.eNB1SourceCodePath
#
def SeteNB2IPAddress(self, enb2ip): # def SeteNB2IPAddress(self, enb2ip):
self.eNB2IPAddress = enb2ip # self.eNB2IPAddress = enb2ip
def GeteNB2IPAddress(self): # def GeteNB2IPAddress(self):
return self.eNB2IPAddress # return self.eNB2IPAddress
def SeteNB2UserName(self, enb2usr): # def SeteNB2UserName(self, enb2usr):
self.eNB2UserName = enb2usr # self.eNB2UserName = enb2usr
def GeteNB2UserName(self): # def GeteNB2UserName(self):
return self.eNB2UserName # return self.eNB2UserName
def SeteNB2Password(self, enb2pw): # def SeteNB2Password(self, enb2pw):
self.eNB2Password = enb2pw # self.eNB2Password = enb2pw
def GeteNB2Password(self): # def GeteNB2Password(self):
return self.eNB2Password # return self.eNB2Password
def SeteNB2SourceCodePath(self, enb2codepath): # def SeteNB2SourceCodePath(self, enb2codepath):
self.eNB2SourceCodePath = enb2codepath # self.eNB2SourceCodePath = enb2codepath
def GeteNB2SourceCodePath(self): # def GeteNB2SourceCodePath(self):
return self.eNB2SourceCodePath # return self.eNB2SourceCodePath
#
# def SetprematureExit(self, premex):
# self.prematureExit = premex
# def GetprematureExit(self):
# return self.prematureExit
def SetprematureExit(self, premex):
self.prematureExit = premex
def GetprematureExit(self):
return self.prematureExit
"""
#----------------------------------------------------------- #-----------------------------------------------------------
# RAN management functions # RAN management functions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment