Result - The Result type of the analysis,Config - The configuration type of the analysispublic interface IAnalysisService<Result extends IAnalysisResult,Config extends IAnalysisConfig>
AbstractAnalysisService| Modifier and Type | Method and Description |
|---|---|
IAnalysisConfig |
convertConfig(Config config,
Class<? extends AbstractAnalysisService<? extends IAnalysisResult,? extends IAnalysisConfig>> serviceClass)
Converts the config of this analysis to a config of the given analysis this depends on.
|
org.osgi.framework.Bundle |
getBundle()
The Bundle which this AnalysisService belongs to.
|
String |
getName()
This is the name that will be displayed to the user in the OSGi Framework
|
Config |
parseConfig(String[] config)
Creates the config for this analysis from commandline arguments
|
Future<Result> |
performAnalysis(Config config)
Performs the analysis with the given config, running all required other analyses
This is implemented by
AbstractAnalysisService |
Result |
runAnalysis(Config config,
Map<Class<? extends AbstractAnalysisService<? extends IAnalysisResult,? extends IAnalysisConfig>>,IAnalysisResult> previousResults)
Runs the actual analysis with the given configuration
|
boolean |
shouldBeHidden()
Method the framework uses to decide whether this service should be hidden from the user
|
String getName()
Result runAnalysis(Config config, Map<Class<? extends AbstractAnalysisService<? extends IAnalysisResult,? extends IAnalysisConfig>>,IAnalysisResult> previousResults)
config - the configuration to runpreviousResults - the results of other analyses this analysis depends onFuture<Result> performAnalysis(Config config) throws IllegalClassFormatException
AbstractAnalysisServiceconfig - the given configIllegalClassFormatExceptionDependsOn,
AbstractAnalysisServiceIAnalysisConfig convertConfig(Config config, Class<? extends AbstractAnalysisService<? extends IAnalysisResult,? extends IAnalysisConfig>> serviceClass)
config - the config to convertserviceClass - the required analysis type, for which the config needs to be convertedConfig parseConfig(String[] config)
config - the commandline argumentsorg.osgi.framework.Bundle getBundle()
boolean shouldBeHidden()
Copyright © 2017. All rights reserved.