Search in sources :

Example 1 with Report

use of com.jopdesign.wcet.report.Report in project jop by jop-devel.

the class WCETTool method onSetupConfig.

@Override
public void onSetupConfig(AppSetup setup) throws BadConfigurationException {
    appInfo = setup.getAppInfo();
    Config config = setup.getConfig();
    projectConfig = new ProjectConfig(config);
    projectConfig.initConfig(setup.getMainMethodID());
    this.projectName = projectConfig.getProjectName();
    if (projectConfig.doGenerateReport()) {
        this.results = new Report(this, setup.getLoggerConfig());
        try {
            this.results.initVelocity();
        } catch (Exception e) {
            throw new BadConfigurationException("Error initializing Velocity: " + e, e);
        }
        this.genWCETReport = true;
    } else {
        this.genWCETReport = false;
    }
}
Also used : Report(com.jopdesign.wcet.report.Report) JOPConfig(com.jopdesign.common.processormodel.JOPConfig) IPETConfig(com.jopdesign.wcet.ipet.IPETConfig) UppAalConfig(com.jopdesign.wcet.uppaal.UppAalConfig) Config(com.jopdesign.common.config.Config) ReportConfig(com.jopdesign.wcet.report.ReportConfig) BadConfigurationException(com.jopdesign.common.config.Config.BadConfigurationException) AppInfoException(com.jopdesign.common.misc.AppInfoException) BadAnnotationException(com.jopdesign.wcet.annotations.BadAnnotationException) FileNotFoundException(java.io.FileNotFoundException) MethodNotFoundException(com.jopdesign.common.misc.MethodNotFoundException) BadConfigurationException(com.jopdesign.common.config.Config.BadConfigurationException) IOException(java.io.IOException) BadGraphException(com.jopdesign.common.misc.BadGraphException)

Aggregations

Config (com.jopdesign.common.config.Config)1 BadConfigurationException (com.jopdesign.common.config.Config.BadConfigurationException)1 AppInfoException (com.jopdesign.common.misc.AppInfoException)1 BadGraphException (com.jopdesign.common.misc.BadGraphException)1 MethodNotFoundException (com.jopdesign.common.misc.MethodNotFoundException)1 JOPConfig (com.jopdesign.common.processormodel.JOPConfig)1 BadAnnotationException (com.jopdesign.wcet.annotations.BadAnnotationException)1 IPETConfig (com.jopdesign.wcet.ipet.IPETConfig)1 Report (com.jopdesign.wcet.report.Report)1 ReportConfig (com.jopdesign.wcet.report.ReportConfig)1 UppAalConfig (com.jopdesign.wcet.uppaal.UppAalConfig)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1