Search in sources :

Example 6 with ConfigurationException

use of org.iobserve.stages.general.ConfigurationException in project iobserve-analysis by research-iobserve.

the class EvaluationMain method checkParameters.

@Override
protected boolean checkParameters(final JCommander commander) throws ConfigurationException {
    try {
        if (!this.baselineModelLocation.canRead()) {
            EvaluationMain.LOGGER.error("reading baseline failed: {}", this.baselineModelLocation.getCanonicalPath());
            commander.usage();
            return false;
        }
        if (!this.testModelLocation.canRead()) {
            EvaluationMain.LOGGER.error("reading test model failed: {}", this.testModelLocation.getCanonicalPath());
            commander.usage();
            return false;
        }
        return true;
    } catch (final IOException e) {
        throw new ConfigurationException(e);
    }
}
Also used : ConfigurationException(org.iobserve.stages.general.ConfigurationException) IOException(java.io.IOException)

Aggregations

ConfigurationException (org.iobserve.stages.general.ConfigurationException)6 IOException (java.io.IOException)4 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)2 JCommander (com.beust.jcommander.JCommander)1 ParameterException (com.beust.jcommander.ParameterException)1 File (java.io.File)1 ArrayList (java.util.ArrayList)1 PCMModelHandler (org.iobserve.model.PCMModelHandler)1 Graph (org.iobserve.model.provider.neo4j.Graph)1 GraphLoader (org.iobserve.model.provider.neo4j.GraphLoader)1 ModelProvider (org.iobserve.model.provider.neo4j.ModelProvider)1 Allocation (org.palladiosimulator.pcm.allocation.Allocation)1 ResourceEnvironment (org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment)1 System (org.palladiosimulator.pcm.system.System)1 SAXException (org.xml.sax.SAXException)1