Migration Difficulty Scores
You can modify the maximum allowed score of each difficulty assessment metric in the /opt/DevKit/devkitplugins/porting/config/xc_model/difficulty_model.json file. /opt is the tool installation directory. Replace it with the actual directory.
Parameter |
Description |
|---|---|
xx_keyword |
Name of the metric in this dimension. |
default |
Default value of the metric. |
options |
Value options of the metric. |
score |
Weight of an option. A smaller weight indicates a lower migration difficulty. Difficulty = (score / (∑scoresingle-option max + ∑scoremultiple options)) x 100. For example, if you set Maintenance status to In warranty in China + Software evolving, the default weight is 5 and the difficulty is 3.57 (5/140 x 100). |
The difficulty formula is as follows:
Total difficulty = (∑score / (∑scoresingle-option max + ∑scoremultiple options)) x 100
- ∑score: Sum of the weight of each option.
- ∑scoresingle-option max: Sum of the maximum weight of each single option, including Maintenance status, Software type, OS, Dependency, Importance, Database data, System users, Service scope, and Application scenario.
- ∑scoremultiple options: Sum of the weight of each multiple-selection option, including Programming language.
If the difficulty_model.json file is mis-deleted, the default model file in the /opt/DevKit/devkitplugins/porting/config/xc_model/xc_model_bak backup path is read. If you need to modify the default file, copy the default file to the xc_model directory:
cd /opt/DevKit/devkitplugins/porting/config/xc_model cp xc_model_bak/difficulty_model_bak.json difficulty_model.json chown -R devkit:devkit difficulty_model.json chmod 644 difficulty_model.json