Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

de.fraunhofer.isst.axbench.operations.writer.TimingDataWriter Class Reference

The TimingInputWriter generates a csv file from a task model that can be used as input for the timing module. More...

List of all members.

Public Member Functions

 TimingDataWriter ()
 Constructor setting the operation parameters.

Protected Member Functions

Map< String, Object > executeConcreteOperation (Map< String, Object > theInputParameters)
 Writes an element.

Private Member Functions

int getHWSubComponentID (IAXLangElement hwSubComponent)
 generates a new integer as identifier for each new hsSubComponent
String toTimingData (TransactionModel theTransactionModel)
 Writes data of a transaction model.

Private Attributes

int hwSubCompID = 0
Map< String, Integer > hwSubCompIdMap = new HashMap<String,Integer>()
 returns the HWSubComponent the subComponent is mapped to by the a2rMapping

Static Private Attributes

static final String CSV_LINE = "{0};{1};{2};{3};{4};{5};{6};{7};{8};{9};{10};{11};{12}\n"
static final String ID_IN_ELEMENT = "axlin"
 identifier of the input element
static final String ID_IN_FILE = "timingfile"
 identifier of the output file
static final String ID_IN_TRANSACTIONMODEL = "transactionmodel"
 identifier of the A2R-Mapping
static final String PATH_SEPARATOR = ":"

Detailed Description

The TimingInputWriter generates a csv file from a task model that can be used as input for the timing module.

Author:
mgrosse
ekleinod
Version:
0.9.0
Since:
0.8.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.operations.writer.TimingDataWriter.TimingDataWriter (  ) 

Constructor setting the operation parameters.

Operation parameters:

  • selection of a file
  • identifier of a task model

Member Function Documentation

Map<String, Object> de.fraunhofer.isst.axbench.operations.writer.TimingDataWriter.executeConcreteOperation ( Map< String, Object >  theInputParameters  )  [protected]

Writes an element.

either

  • collect all files to generate (all components and operations have to be processed) or
  • write the element
Parameters:
theInputParameters map of the input parameters (empty map allowed)
Returns:
map of the output parameters (empty map allowed)
int de.fraunhofer.isst.axbench.operations.writer.TimingDataWriter.getHWSubComponentID ( IAXLangElement  hwSubComponent  )  [private]

generates a new integer as identifier for each new hsSubComponent

Parameters:
hwSubComponent the hwSubComponent
Returns:
integer valued identifier
String de.fraunhofer.isst.axbench.operations.writer.TimingDataWriter.toTimingData ( TransactionModel  theTransactionModel  )  [private]

Writes data of a transaction model.

Bug:
just commented out buggy code, search for "bug ek"
Parameters:
theTransactionModel transaction model to use

Member Data Documentation

final String de.fraunhofer.isst.axbench.operations.writer.TimingDataWriter.CSV_LINE = "{0};{1};{2};{3};{4};{5};{6};{7};{8};{9};{10};{11};{12}\n" [static, private]
Map<String,Integer> de.fraunhofer.isst.axbench.operations.writer.TimingDataWriter.hwSubCompIdMap = new HashMap<String,Integer>() [private]

returns the HWSubComponent the subComponent is mapped to by the a2rMapping

Parameters:
a2rMapping the a2rMapping
subComponent the subComponent
Returns:
the HWSubComponent Since the timing module does not accept strings as identifiers integer identifiers must be generated

identifier of the input element

final String de.fraunhofer.isst.axbench.operations.writer.TimingDataWriter.ID_IN_FILE = "timingfile" [static, private]

identifier of the output file

identifier of the A2R-Mapping