def _getTPClass(temporalImp):
 if (temporalImp == 'py'):
  return TP.TP
 elif (temporalImp == 'cpp'):
  return TP10X2.TP10X2
 elif (temporalImp == 'tm_py'):
  return TP_shim.TPShim
 elif (temporalImp == 'tm_cpp'):
  return TP_shim.TPCPPShim
 elif (temporalImp == 'tm_py_fast'):
  return TP_shim.FastTPShim
 elif (temporalImp == 'monitored_tm_py'):
  return TP_shim.MonitoredTPShim
 else:
  raise RuntimeError(("Invalid temporalImp '%s'. Legal values are: 'py', 'cpp', 'tm_py', 'monitored_tm_py'" % temporalImp))

def _getTPClass ( temporalImp ) : if ( temporalImp == 'py' ) : return TP . TP elif ( temporalImp == 'cpp' ) : return TP10X2 . TP10X2 elif ( temporalImp == 'tm_py' ) : return TP_shim . TPShim elif ( temporalImp == 'tm_cpp' ) : return TP_shim . TPCPPShim elif ( temporalImp == 'tm_py_fast' ) : return TP_shim . FastTPShim elif ( temporalImp == 'monitored_tm_py' ) : return TP_shim . MonitoredTPShim else : raise RuntimeError ( ( "Invalid temporalImp '%s'. Legal values are: 'py', 'cpp', 'tm_py', 'monitored_tm_py'" % temporalImp ) )
return the class corresponding to the given temporalimp string .