Package dsc_suite :: Package tools :: Module benchmarks :: Class ACADEMIC
[hide private]
[frames] | no frames]

Class ACADEMIC

source code

object --+    
         |    
 Benchmark --+
             |
            ACADEMIC

class YAL(Benchmark) - reading academic benchmarks

Use this class to load a ACADEMIC file. This is a 3D benchmark format.

Instance Methods [hide private]
 
__init__(self, filename)
data ...
source code
data
parse_benchmark_string(self, text)
text ...
source code

Inherited from Benchmark: add_connections, get_blocks, get_connections, get_dimensions, get_status, join, load_benchmark, remove_blocks, remove_connections, rename_blocks, set_connections, to_3d

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from Benchmark: load_benchmark_file

Class Variables [hide private]

Inherited from Benchmark: CONNECTIONS, DIMENSIONS, MODULETYPE

Properties [hide private]

Inherited from Benchmark: blocks, connections, dimensions, status

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename)
(Constructor)

source code 
data   ... data from an external source
status ... benchmark status dictionary

Takes data and creates an own benchmark instance. data needs to
be in the right format. No format testing is done!
Example status = {'source' : 'YAL',
                  'name' : filename,
                  'number of dimensions' : 2,
                  'shape of modules' : 'rectangluar'}

Overrides: object.__init__
(inherited documentation)

parse_benchmark_string(self, text)

source code 

text ... string representation of benchmark file data ... dictionary representation of benchmark

Abstract method!!! Needs to be implemented in subclass.

Parsing string representation of a SPECIFIC benchmark. data format: {modulename: [moduletype, dimensions, connections]}

Returns: data
Overrides: Benchmark.parse_benchmark_string
(inherited documentation)