1 | package de.uka.ipd.sdq.workflow.pcm; |
2 | |
3 | /** |
4 | * This class is used as a container for constants. |
5 | * |
6 | * @author Roman Andrej |
7 | */ |
8 | public class ConstantsContainer { |
9 | |
10 | // Model filenames configuration identifiers |
11 | public static final String RESOURCETYPEREPOSITORY_FILE = "resourceTypeFile"; |
12 | public static final String RESOURCEENVIRONMENT_FILE = "resourceEnvironmentFile"; |
13 | public static final String REPOSITORY_FILE = "repositoryFile"; |
14 | public static final String SYSTEM_FILE = "systemFile"; |
15 | public static final String ALLOCATION_FILE = "allocationFile"; |
16 | public static final String USAGE_FILE = "usageFile"; |
17 | public static final String MWREPOSITORY_FILE = "mwRepositoryFile"; |
18 | public static final String EVENT_MIDDLEWARE_REPOSITORY_FILE = "eventMiddlewareRepositoryFile"; |
19 | public static final String ACCURACY_QUALITY_ANNOTATION_FILE = "accuracyQualityAnnotationFile"; |
20 | public static final String SENSITIVITY_MODEL_FILE = "sensitivityModelFile"; |
21 | public static final String SENSITIVITY_LOG_FILE = "sensitivityLogFile"; |
22 | |
23 | // Template method value |
24 | public static final String AOP_TEMPLATE = "aop_templates"; |
25 | |
26 | /* |
27 | * Set the file extensions which the dialogs will use as selection filter and for file name validation. |
28 | */ |
29 | public static final String[] RESOURCETYPE_EXTENSION = new String[] { "*.resourcetype" }; |
30 | public static final String[] RESOURCEENVIRONMENT_EXTENSION = new String[] { "*.resourceenvironment" }; |
31 | public static final String[] REPOSITORY_EXTENSION = new String[] { "*.repository" }; |
32 | public static final String[] SYSTEM_EXTENSION = new String[] { "*.system" }; |
33 | public static final String[] ALLOCATION_EXTENSION = new String[] { "*.allocation" }; |
34 | public static final String[] USAGEMODEL_EXTENSION = new String[] { "*.usagemodel" }; |
35 | public static final String[] FEATURECONFIG_EXTENSION = new String[] { "*.featureconfig" }; |
36 | public static final String[] ACCURACY_QUALITY_ANNOTATION_EXTENSION = new String[] { "*.quality" }; |
37 | public static final String[] SENSITIVITY_ANALYSIS_EXTENSION = new String[] { "*.sensitivity" }; |
38 | public static final String[] SENSITIVITY_LOG_EXTENSION = new String[] { "*.txt" }; |
39 | |
40 | // Configuration tab |
41 | public static final String TEMPORARY_DATA_LOCATION = "outpath"; |
42 | public static final String DELETE_TEMPORARY_DATA_AFTER_ANALYSIS = "clear"; |
43 | public static final String ANALYSE_ACCURACY = "simulateAccuracy"; |
44 | public static final String DO_SENSITIVITY_ANALYSIS = "doSensitivityAnalysis"; |
45 | // Configuration tab (Simulation) |
46 | public static final String VARIABLE_TEXT = "variable"; |
47 | public static final String MINIMUM_TEXT = "minimum"; |
48 | public static final String MAXIMUM_TEXT = "maximum"; |
49 | public static final String STEP_WIDTH_TEXT = "stepwidth"; |
50 | public static final String RUN_NO = "runNo"; |
51 | |
52 | // Output path settings |
53 | public static final String EAROUT_PATH = "earOutpath"; |
54 | public static final String INTERFACESOUT_PATH = "interfacesOutpath"; |
55 | public static final String CLIENTOUT_PATH = "clientOutpath"; |
56 | public static final String EJBSOUT_PATH = "ejbsOutpath"; |
57 | |
58 | public static final String MODEL_TO_TEXT_CHOICE = "modelToTextTarget"; |
59 | public static final String MODEL_TO_TEXT_TARGET_EJB = "Model Target EJB"; |
60 | public static final String MODEL_TO_TEXT_TARGET_PROTO = "Model Target Protocom"; |
61 | |
62 | // Simulation features |
63 | public static final String FEATURE_CONFIG = "featureConfig"; |
64 | public static final String FEATURE_CONFIG_TARGET = "featureConfigTarget"; |
65 | public static final String FEATURE_FILE = "featureFile"; |
66 | public static final String SIMULATE_LINKING_RESOURCES = "simulateLinkingResources"; |
67 | public static final String SIMULATE_FAILURES = "simulateFailures"; |
68 | |
69 | // Default values |
70 | /** Default URI of the feature configuration file. */ |
71 | public static final String DEFAULT_FEATURE_CONFIGURATION_FILE = "pathmap://PCM_MODELS/ConnectorConfig.featureconfig"; |
72 | /** Default URI of the quality annotation file used for accuracy analysis. */ |
73 | public static final String DEFAULT_ACCURACY_QUALITY_ANNOTATION_FILE = ""; |
74 | /** Default URI of the sensitivity model file used for sensitivity analysis. */ |
75 | public static final String DEFAULT_SENSITIVITY_MODEL_FILE = ""; |
76 | /** Default URI of the sensitivity log file used for sensitivity result logging. */ |
77 | public static final String DEFAULT_SENSITIVITY_LOG_FILE = ""; |
78 | /** Default URI of the event middleware repository file. */ |
79 | public static final String DEFAULT_EVENT_MIDDLEWARE_FILE = "pathmap://PCM_MODELS/default_event_middleware.repository"; |
80 | |
81 | //BRG |
82 | // private static final String PCM_RESOURCETYPE_FILE_URI = "pathmap://PCM_MODELS/Palladio.resourcetype"; |
83 | /** Default URI of the middleware repository file. */ |
84 | public static final String DEFAULT_MIDDLEWARE_REPOSITORY_FILE = "pathmap://PCM_MODELS/Glassfish.repository"; |
85 | /** Default URI of the allocation model file. */ |
86 | public static final String DEFAULT_ALLOCATION_FILE = ""; |
87 | /** Default URI of the usage model file. */ |
88 | public static final String DEFAULT_USAGE_FILE = ""; |
89 | /** Default Eclipse plug-in project name for temporary data. */ |
90 | public static final String DEFAULT_TEMPORARY_DATA_LOCATION = "de.uka.ipd.sdq.temporary"; |
91 | /** Default value for the deletion of temporary data after an analysis. */ |
92 | public static final Boolean DEFAULT_DELETE_TEMPORARY_DATA_AFTER_ANALYSIS = true; |
93 | /** Default value for the analysis of accuracy influence. */ |
94 | public static final Boolean DEFAULT_ANALYSE_ACCURACY = false; |
95 | /** Default value for the sensitivity analysis. */ |
96 | public static final Boolean DEFAULT_DO_SENSITIVITY_ANALYSIS = false; |
97 | |
98 | } |