Changeset 1734 for branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/TaskMetric.java
- Timestamp:
- 09/05/14 20:20:29 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/TaskMetric.java
r1733 r1734 17 17 import java.text.DecimalFormat; 18 18 19 // TODO: Auto-generated Javadoc 19 20 /** 20 21 * <p> … … 28 29 public enum TaskMetric { 29 30 30 COUNT("count", "number of all occurrences of the task in the model"), DEPTH( 31 /** The count. */ 32 COUNT("count", "number of all occurrences of the task in the model"), /** The depth. */ 33 DEPTH( 31 34 "depth", 32 35 "the maximum depth of the task, i.e., the number of children levels including the " 33 + "level of the task itself"), EVENT_COVERAGE( 36 + "level of the task itself"), 37 /** The event coverage. */ 38 EVENT_COVERAGE( 34 39 "covered events", 35 "number of all event task instances covered by the task"), EVENT_COVERAGE_RATIO( 40 "number of all event task instances covered by the task"), 41 /** The event coverage ratio. */ 42 EVENT_COVERAGE_RATIO( 36 43 "event coverage ratio", 37 44 "the ratio of events covered by this task in relation to all events " 38 45 + "covered by all tasks in their instances in per mille", 39 0.1, "%"), EVENT_COVERAGE_QUANTILE("event coverage ratio quantile", 46 0.1, "%"), 47 /** The event coverage quantile. */ 48 EVENT_COVERAGE_QUANTILE("event coverage ratio quantile", 40 49 "the quantile of with respect to all event coverages begining with " 41 50 + "the lowest", 0.1, "%"); 42 51 43 /** 44 * <p> 45 * the name of the metric 46 * </p> 47 */ 52 /** <p> the name of the metric </p>. */ 48 53 private String name; 49 54 50 /** 51 * <p> 52 * a human readable description of the metric 53 * </p> 54 */ 55 /** <p> a human readable description of the metric </p>. */ 55 56 private String description; 56 57 57 /** 58 * <p> 59 * a scale applied for the metric when formatting the value 60 * </p> 61 */ 58 /** <p> a scale applied for the metric when formatting the value </p>. */ 62 59 private double formatScale; 63 60 64 /** 65 * <p> 66 * the unit of the metric used when formatting the value 67 * </p> 68 */ 61 /** <p> the unit of the metric used when formatting the value </p>. */ 69 62 private String formatUnit; 70 63 … … 72 65 * <p> 73 66 * initializes the metric with a name and a description 74 * </p> 67 * </p>. 68 * 69 * @param name the name 70 * @param description the description 75 71 */ 76 72 private TaskMetric(String name, String description) { … … 86 82 * scale and a unit for formatting it. 87 83 * </p> 84 * 85 * @param name the name 86 * @param description the description 87 * @param formatScale the format scale 88 * @param formatUnit the format unit 88 89 */ 89 90 private TaskMetric(String name, String description, double formatScale, … … 100 101 * format scale and unit. 101 102 * </p> 102 * 103 * 104 * @param value the value 103 105 * @return the formatted value depending on the scale and unit of the metric 104 106 */ … … 124 126 * <p> 125 127 * returns the human readable description of the metric 126 * </p> 127 * 128 * </p>. 129 * 128 130 * @return the human readable description of the metric 129 131 */ … … 135 137 * <p> 136 138 * returns the name of the metric 137 * </p> 138 * 139 * </p>. 140 * 139 141 * @return the name of the metric 140 142 */
Note: See TracChangeset
for help on using the changeset viewer.