Package net.sf.collabreview.measurements.weight

Examples of net.sf.collabreview.measurements.weight.ArtifactWeight.measure()


      Artifact artifact = repository.getLatestForName(artId.getName(), artId.getBranch());
      Float artifactQuality = collabReview.getMeasurementsManager().getArtifactQualityAssessor().assessQuality(artId);
      if (artifactQuality == null) {
        continue;
      }
      float myResponsibilityScore = weight.measure(artifact) * collabReview.getMeasurementsManager().getArtifactResponsibility().assessResponsibility(artifact, user);
      if (myResponsibilityScore != 0) {
        // DocumentLength * Participation * QualityRating
        float myQualityScore = myResponsibilityScore * artifactQuality;
        // checks if the current document score is worse than one of the five worst scores
        // if yes: score and document will be added to the according tables for worst rated documents
View Full Code Here


        // overall scores
        myOverallQualityScore += myQualityScore;
        myOverallResponsibilityScore += myResponsibilityScore;
      }
      // DocumentLength * Participation * QualityRating
      float qualityScore = weight.measure(artifact) * artifactQuality;
      if (qualityScore < allWorstScores[4]) {
        allWorstScores[4] = qualityScore;
        allWorstDocuments[4] = artifact;
        for (int j = 4; j > 0; j--) {
          if (allWorstScores[j] < allWorstScores[j - 1]) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.