Revize 8a1fe4e5
Přidáno uživatelem Ondřej Váně před asi 4 roky(ů)
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/BusinessAsUsualDetectorImpl.java | ||
---|---|---|
29 | 29 |
private List<String> sqlQueries; |
30 | 30 |
|
31 | 31 |
/** |
32 |
* Settings
|
|
32 |
* SETTINGS
|
|
33 | 33 |
*/ |
34 | 34 |
private final float DIVISION_BUSINESS_AS_USUAL_ITERATIONS = (float) 1/3; |
35 | 35 |
|
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/LongOrNonExistentFeedbackLoopsDetectorImpl.java | ||
---|---|---|
33 | 33 |
private List<String> sqlQueries; |
34 | 34 |
|
35 | 35 |
/** |
36 |
* Settings
|
|
36 |
* SETTINGS
|
|
37 | 37 |
*/ |
38 |
private final float DIVISION_LONG_OR_NON_FEEDBACK_ITERATIONS = (float) 1 / 3; |
|
39 |
|
|
40 |
/* Settings */ |
|
41 |
private final int MINIMUM_NUMBER_OF_WIKI_PAGES = 1; |
|
42 |
private final int MINIMUM_NUMBER_OF_ACTIVITIES = 1; |
|
43 | 38 |
|
44 | 39 |
@Override |
45 | 40 |
public AntiPattern getAntiPatternModel() { |
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/NinetyNinetyRuleDetectorImpl.java | ||
---|---|---|
24 | 24 |
// sql queries loaded from sql file |
25 | 25 |
private List<String> sqlQueries; |
26 | 26 |
|
27 |
/** |
|
28 |
* SETTINGS |
|
29 |
*/ |
|
30 |
|
|
27 | 31 |
@Override |
28 | 32 |
public AntiPattern getAntiPatternModel() { |
29 | 33 |
return this.antiPattern; |
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/RoadToNowhereDetectorImpl.java | ||
---|---|---|
28 | 28 |
// sql queries loaded from sql file |
29 | 29 |
private List<String> sqlQueries; |
30 | 30 |
|
31 |
/* Settings */ |
|
31 |
/** |
|
32 |
* SETTINGS |
|
33 |
*/ |
|
32 | 34 |
private final int MINIMUM_NUMBER_OF_WIKI_PAGES = 1; |
33 | 35 |
private final int MINIMUM_NUMBER_OF_ACTIVITIES = 1; |
34 | 36 |
|
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/SpecifyNothingDetectorImpl.java | ||
---|---|---|
27 | 27 |
// sql queries loaded from sql file |
28 | 28 |
private List<String> sqlQueries; |
29 | 29 |
|
30 |
/* Settings */ |
|
30 |
/** |
|
31 |
* SETTINGS |
|
32 |
*/ |
|
31 | 33 |
private final int MINIMUM_NUMBER_OF_WIKI_PAGES = 1; |
32 | 34 |
private final int MINIMUM_NUMBER_OF_ACTIVITIES = 1; |
33 | 35 |
private final double MINIMUM_AVERAGE_LENGTH_OF_ACTIVITY_DESCRIPTION = 150; |
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/TooLongSprintDetectorImpl.java | ||
---|---|---|
30 | 30 |
// sql queries loaded from sql file |
31 | 31 |
private List<String> sqlQueries; |
32 | 32 |
|
33 |
// TODO vytáhnout konstanty ZDE |
|
33 |
/** |
|
34 |
* SETTINGS |
|
35 |
*/ |
|
36 |
private static final int MAX_NUMBER_OF_TOO_LONG_ITERATIONS = 1; |
|
34 | 37 |
|
35 | 38 |
|
36 | 39 |
@Override |
... | ... | |
89 | 92 |
List<ResultDetail> resultDetails = new ArrayList<>(); |
90 | 93 |
resultDetails.add(new ResultDetail("Count of iterations", String.valueOf(totalCountOfIteration))); |
91 | 94 |
resultDetails.add(new ResultDetail("Number of too long iterations", String.valueOf(numberOfLongIterations))); |
92 |
if (numberOfLongIterations >= 1) {
|
|
95 |
if (numberOfLongIterations >= MAX_NUMBER_OF_TOO_LONG_ITERATIONS) {
|
|
93 | 96 |
resultDetails.add(new ResultDetail("Conclusion", "One or more iteration is too long")); |
94 | 97 |
} else { |
95 | 98 |
resultDetails.add(new ResultDetail("Conclusion", "All iterations in limit")); |
Také k dispozici: Unified diff
Extract all settings as constants