- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/loader/AbstractFolderLoader.java
r132 r135 46 46 } 47 47 48 /* *48 /* 49 49 * @see de.ugoe.cs.cpdp.loader.IVersionLoader#load() 50 50 */ … … 68 68 Instances data = instancesLoader.load(versionFile); 69 69 String versionName = data.relationName(); 70 List<Double> efforts = getEfforts(data); 71 versions.add(new SoftwareVersion(projectName, versionName, data, efforts)); 70 List<Double> efforts = getEfforts(data); 71 versions 72 .add(new SoftwareVersion(projectName, versionName, data, efforts)); 72 73 } 73 74 } … … 77 78 return versions; 78 79 } 79 80 81 /** 82 * <p> 83 * Sets the efforts for the instances 84 * </p> 85 * 86 * @param data 87 * the data 88 * @return 89 */ 80 90 private List<Double> getEfforts(Instances data) { 81 91 // attribute in the JURECZKO data and default … … 93 103 effortAtt = data.attribute("CountLineCodeExe"); 94 104 } 95 if ( effortAtt == null) {105 if (effortAtt == null) { 96 106 return null; 97 107 } 98 108 List<Double> efforts = new ArrayList<>(data.size()); 99 for ( int i=0; i<data.size(); i++) {109 for (int i = 0; i < data.size(); i++) { 100 110 efforts.add(data.get(i).value(effortAtt)); 101 111 } … … 106 116 * Returns the concrete {@link SingleVersionLoader} to be used with this folder loader. 107 117 * 108 * @return 118 * @return the version loader 109 119 */ 110 120 abstract protected SingleVersionLoader getSingleLoader();
Note: See TracChangeset
for help on using the changeset viewer.