#NEWLINE# def __init__( self , device , **kwargs ) : #NEWLINE# #INDENT# '\n        Creates a new Workload.\n\n        :param device: the Device on which the workload will be executed.\n        ' #NEWLINE# super ( Workload , self ) . __init__ ( ** kwargs ) #NEWLINE# if ( self . supported_devices and ( device . name not in self . supported_devices ) ) : #NEWLINE# #INDENT# raise WorkloadError ( 'Workload {} does not support device {}' . format ( self . name , device . name ) ) #NEWLINE# #UNINDENT# if ( self . supported_platforms and ( device . platform not in self . supported_platforms ) ) : #NEWLINE# #INDENT# raise WorkloadError ( 'Workload {} does not support platform {}' . format ( self . name , device . platform ) ) #NEWLINE# #UNINDENT# self . device = device