def run(self):
     self.__simu.setAutotestResult(OvpTest.RUNNING)
     self.__autotest = OvpTest(self.__simu, 0, self.__ch_number)
     self.__autotest.start()
     self.__autotest.join()
     self.__simu.setAutotestResult(UvpTest.RUNNING)
     self.__autotest = UvpTest(self.__simu, 0, self.__ch_number)
     self.__autotest.start()
     self.__autotest.join()
     self.__simu.setAutotestResult(OcpTest.RUNNING)
     self.__autotest = OcpTest(self.__simu, 0, self.__ch_number)
     self.__autotest.start()
     self.__autotest.join()
     print "\nChannel test finished"
class ChannelTest( threading.Thread ) :
    
    __ch_number = 0
    __autotest = None
    __simu = None
    
    def __init__(self, simu, ch_number) :
        threading.Thread.__init__(self)
        self.__simu = simu
        self.__ch_number = ch_number
        
        
    def run(self):
        self.__simu.setAutotestResult(OvpTest.RUNNING)
        self.__autotest = OvpTest(self.__simu, 0, self.__ch_number)
        self.__autotest.start()
        self.__autotest.join()
        self.__simu.setAutotestResult(UvpTest.RUNNING)
        self.__autotest = UvpTest(self.__simu, 0, self.__ch_number)
        self.__autotest.start()
        self.__autotest.join()
        self.__simu.setAutotestResult(OcpTest.RUNNING)
        self.__autotest = OcpTest(self.__simu, 0, self.__ch_number)
        self.__autotest.start()
        self.__autotest.join()
        print "\nChannel test finished"