Projekt

Obecné

Profil

« Předchozí | Další » 

Revize da68bebb

Přidáno uživatelem stepanekp před asi 3 roky(ů)

Functions renamed

Zobrazit rozdíly:

src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/BusinessAsUsualDetectorImpl.java
1 1
package cz.zcu.fav.kiv.antipatterndetectionapp.detecting.detectors;
2 2

  
3
import cz.zcu.fav.kiv.antipatterndetectionapp.Constants;
4 3
import cz.zcu.fav.kiv.antipatterndetectionapp.detecting.DatabaseConnection;
5 4
import cz.zcu.fav.kiv.antipatterndetectionapp.model.*;
6 5
import cz.zcu.fav.kiv.antipatterndetectionapp.model.types.Percentage;
......
8 7
import cz.zcu.fav.kiv.antipatterndetectionapp.service.*;
9 8
import org.slf4j.Logger;
10 9
import org.slf4j.LoggerFactory;
11
import org.springframework.beans.factory.annotation.Autowired;
12 10

  
13 11
import java.util.*;
14 12

  
......
33 31
    private List<String> sqlQueries;
34 32

  
35 33
    private float getDivisionOfIterationsWithRetrospective() {
36
        return ((Percentage) antiPattern.getConfigurations().get("divisionOfIterationsWithRetrospective").getValue()).getValue();
34
        return ((Percentage) antiPattern.getThresholds().get("divisionOfIterationsWithRetrospective").getValue()).getValue();
37 35
    }
38 36

  
39 37
    private List<String> getSearchSubstringsWithRetrospective() {
40
        return Arrays.asList(((String) antiPattern.getConfigurations().get("searchSubstringsWithRetrospective").getValue()).split("\\|\\|"));
38
        return Arrays.asList(((String) antiPattern.getThresholds().get("searchSubstringsWithRetrospective").getValue()).split("\\|\\|"));
41 39
    }
42 40

  
43 41
    @Override
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/LongOrNonExistentFeedbackLoopsDetectorImpl.java
1 1
package cz.zcu.fav.kiv.antipatterndetectionapp.detecting.detectors;
2 2

  
3
import cz.zcu.fav.kiv.antipatterndetectionapp.Constants;
4 3
import cz.zcu.fav.kiv.antipatterndetectionapp.detecting.DatabaseConnection;
5 4
import cz.zcu.fav.kiv.antipatterndetectionapp.model.*;
6 5
import cz.zcu.fav.kiv.antipatterndetectionapp.model.types.Percentage;
......
39 38
    private List<String> sqlQueries;
40 39

  
41 40
    private float getDivisionOfIterationsWithFeedbackLoop() {
42
        return ((Percentage) antiPattern.getConfigurations().get("divisionOfIterationsWithFeedbackLoop").getValue()).getValue();
41
        return ((Percentage) antiPattern.getThresholds().get("divisionOfIterationsWithFeedbackLoop").getValue()).getValue();
43 42
    }
44 43

  
45 44
    private float getMaxGapBetweenFeedbackLoopRate() {
46
        return ((PositiveFloat) antiPattern.getConfigurations().get("maxGapBetweenFeedbackLoopRate").getValue()).floatValue();
45
        return ((PositiveFloat) antiPattern.getThresholds().get("maxGapBetweenFeedbackLoopRate").getValue()).floatValue();
47 46
    }
48 47

  
49 48
    private List<String> getSearchSubstringsWithFeedbackLoop() {
50
        return Arrays.asList(((String) antiPattern.getConfigurations().get("searchSubstringsWithFeedbackLoop").getValue()).split("\\|\\|"));
49
        return Arrays.asList(((String) antiPattern.getThresholds().get("searchSubstringsWithFeedbackLoop").getValue()).split("\\|\\|"));
51 50
    }
52 51

  
53 52
    @Override
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/NinetyNinetyRuleDetectorImpl.java
29 29
    private List<String> sqlQueries;
30 30

  
31 31
    private double getMaxDivisionRange() {
32
        return ((PositiveFloat) antiPattern.getConfigurations().get("maxDivisionRange").getValue()).doubleValue();
32
        return ((PositiveFloat) antiPattern.getThresholds().get("maxDivisionRange").getValue()).doubleValue();
33 33
    }
34 34

  
35 35
    private int getMaxBadDivisionLimit() {
36
        return ((PositiveInteger) antiPattern.getConfigurations().get("maxBadDivisionLimit").getValue()).intValue();
36
        return ((PositiveInteger) antiPattern.getThresholds().get("maxBadDivisionLimit").getValue()).intValue();
37 37
    }
38 38

  
39 39
    @Override
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/RoadToNowhereDetectorImpl.java
1 1
package cz.zcu.fav.kiv.antipatterndetectionapp.detecting.detectors;
2 2

  
3
import cz.zcu.fav.kiv.antipatterndetectionapp.Constants;
4 3
import cz.zcu.fav.kiv.antipatterndetectionapp.detecting.DatabaseConnection;
5 4
import cz.zcu.fav.kiv.antipatterndetectionapp.model.*;
6 5
import cz.zcu.fav.kiv.antipatterndetectionapp.model.types.PositiveInteger;
......
14 13
import java.sql.SQLException;
15 14
import java.util.ArrayList;
16 15
import java.util.Arrays;
17
import java.util.HashMap;
18 16
import java.util.List;
19 17

  
20 18
public class RoadToNowhereDetectorImpl implements AntiPatternDetector {
......
39 37
    private List<String> sqlQueries;
40 38

  
41 39
    private int getMinNumberOfWikiPagesWithProjectPlan() {
42
        return ((PositiveInteger) antiPattern.getConfigurations().get("minNumberOfWikiPagesWithProjectPlan").getValue()).intValue();
40
        return ((PositiveInteger) antiPattern.getThresholds().get("minNumberOfWikiPagesWithProjectPlan").getValue()).intValue();
43 41
    }
44 42

  
45 43
    private int getMinNumberOfActivitiesWithProjectPlan() {
46
        return ((PositiveInteger) antiPattern.getConfigurations().get("minNumberOfActivitiesWithProjectPlan").getValue()).intValue();
44
        return ((PositiveInteger) antiPattern.getThresholds().get("minNumberOfActivitiesWithProjectPlan").getValue()).intValue();
47 45
    }
48 46

  
49 47
    private List<String> getSearchSubstringsWithProjectPlan() {
50
        return Arrays.asList(((String) antiPattern.getConfigurations().get("searchSubstringsWithProjectPlan").getValue()).split("\\|\\|"));
48
        return Arrays.asList(((String) antiPattern.getThresholds().get("searchSubstringsWithProjectPlan").getValue()).split("\\|\\|"));
51 49
    }
52 50

  
53 51
    @Override
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/SpecifyNothingDetectorImpl.java
1 1
package cz.zcu.fav.kiv.antipatterndetectionapp.detecting.detectors;
2 2

  
3
import cz.zcu.fav.kiv.antipatterndetectionapp.Constants;
4 3
import cz.zcu.fav.kiv.antipatterndetectionapp.detecting.DatabaseConnection;
5 4
import cz.zcu.fav.kiv.antipatterndetectionapp.model.*;
6 5
import cz.zcu.fav.kiv.antipatterndetectionapp.model.types.PositiveInteger;
......
14 13
import java.sql.SQLException;
15 14
import java.util.ArrayList;
16 15
import java.util.Arrays;
17
import java.util.HashMap;
18 16
import java.util.List;
19 17

  
20 18
public class SpecifyNothingDetectorImpl implements AntiPatternDetector {
......
38 36
    private List<String> sqlQueries;
39 37

  
40 38
    private int getMinNumberOfWikiPagesWithSpecification() {
41
        return ((PositiveInteger) antiPattern.getConfigurations().get("minNumberOfWikiPagesWithSpecification").getValue()).intValue();
39
        return ((PositiveInteger) antiPattern.getThresholds().get("minNumberOfWikiPagesWithSpecification").getValue()).intValue();
42 40
    }
43 41

  
44 42
    private int getMinNumberOfActivitiesWithSpecification() {
45
        return ((PositiveInteger) antiPattern.getConfigurations().get("minNumberOfActivitiesWithSpecification").getValue()).intValue();
43
        return ((PositiveInteger) antiPattern.getThresholds().get("minNumberOfActivitiesWithSpecification").getValue()).intValue();
46 44
    }
47 45

  
48 46
    private int getMinAvgLengthOfActivityDescription() {
49
        return ((PositiveInteger) antiPattern.getConfigurations().get("minAvgLengthOfActivityDescription").getValue()).intValue();
47
        return ((PositiveInteger) antiPattern.getThresholds().get("minAvgLengthOfActivityDescription").getValue()).intValue();
50 48
    }
51 49

  
52 50
    private List<String> getSearchSubstringsWithProjectSpecification() {
53
        return Arrays.asList(((String) antiPattern.getConfigurations().get("searchSubstringsWithProjectSpecification").getValue()).split("\\|\\|"));
51
        return Arrays.asList(((String) antiPattern.getThresholds().get("searchSubstringsWithProjectSpecification").getValue()).split("\\|\\|"));
54 52
    }
55 53

  
56 54
    @Override
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/TooLongSprintDetectorImpl.java
46 46
    }
47 47

  
48 48
    private Integer getMaxIterationLength() {
49
        return ((PositiveInteger) this.antiPattern.getConfigurations().get("maxIterationLength").getValue()).intValue();
49
        return ((PositiveInteger) this.antiPattern.getThresholds().get("maxIterationLength").getValue()).intValue();
50 50
    }
51 51

  
52 52
    private Integer getMaxNumberOfTooLongIterations() {
53
        return ((PositiveInteger) this.antiPattern.getConfigurations().get("maxNumberOfTooLongIterations").getValue()).intValue();
53
        return ((PositiveInteger) this.antiPattern.getThresholds().get("maxNumberOfTooLongIterations").getValue()).intValue();
54 54
    }
55 55

  
56 56
    /**
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/VaryingSprintLengthDetectorImpl.java
12 12
import java.sql.SQLException;
13 13
import java.util.ArrayList;
14 14
import java.util.Arrays;
15
import java.util.HashMap;
16 15
import java.util.List;
17 16

  
18 17
public class VaryingSprintLengthDetectorImpl implements AntiPatternDetector {
......
35 34
    private List<String> sqlQueries;
36 35

  
37 36
    private Integer getMaxDaysDifference() {
38
        return ((PositiveInteger) this.antiPattern.getConfigurations().get("maxDaysDifference").getValue()).intValue();
37
        return ((PositiveInteger) this.antiPattern.getThresholds().get("maxDaysDifference").getValue()).intValue();
39 38
    }
40 39

  
41 40
    private Integer getMaxIterationChanged() {
42
        return ((PositiveInteger) this.antiPattern.getConfigurations().get("maxIterationChanged").getValue()).intValue();
41
        return ((PositiveInteger) this.antiPattern.getThresholds().get("maxIterationChanged").getValue()).intValue();
43 42
    }
44 43

  
45 44
    @Override

Také k dispozici: Unified diff