Example #1
0
 def testC(self):
     """emulator"""
     try:
         cmssw = StepFactory.getStepEmulator("CMSSW")
     except Exception, ex:
         msg = "Error loading Step Emulator of Type CMSSW\n"
         msg += str(ex)
         self.fail(msg)
Example #2
0
 def testEmulator(self):
     """emulator"""
     try:
         cmssw = StepFactory.getStepEmulator("CMSSW")
     except Exception as ex:
         msg = "Error loading Step Emulator of Type CMSSW\n"
         msg += str(ex)
         self.fail(msg)
Example #3
0
    def addEmulator(self, nodeName, emulatorName):
        """
        _addEmulator_

        Add an Emulator for the node provided, emulatorName is the name
        of the emulator class to be loaded by the Emulator factory

        TODO: Exception handling

        """
        emuInstance = StepFactory.getStepEmulator(emulatorName)
        self.emulators[nodeName] = emuInstance
        return
Example #4
0
    def addEmulator(self, nodeName, emulatorName):
        """
        _addEmulator_

        Add an Emulator for the node provided, emulatorName is the name
        of the emulator class to be loaded by the Emulator factory

        TODO: Exception handling

        """
        emuInstance = StepFactory.getStepEmulator(emulatorName)
        self.emulators[nodeName] = emuInstance
        return