Changeset 1423 for trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInfo.java
- Timestamp:
- 02/28/14 15:09:12 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInfo.java
r1287 r1423 19 19 /** 20 20 * <p> 21 * yet more or less unused, this class will in the future provide extended information about a22 * specific task, such as statistics about task occurrences, etc.21 * Provides extended information about a specific task, such as statistics about task occurrences, 22 * etc. It contains measures for different metrics determined for a task. 23 23 * </p> 24 24 * … … 38 38 /** 39 39 * <p> 40 * returns the number of times a task occurred40 * returns all available measures 41 41 * </p> 42 42 * 43 43 * @return as described 44 44 */ 45 public int getCount(); 45 public IMeasure[] getMeasures(); 46 47 /** 48 * <p> 49 * returns the value of the measure identified through the given metric 50 * </p> 51 * 52 * @param metric the metric for which the value is to be returned 53 * 54 * @return as described 55 */ 56 public int getMeasureValue(TaskMetric metric); 57 58 /** 59 * <p> 60 * returns the value of the measure identified through the given metric if the task is 61 * observed in the given context, i.e. parent task. The result is Integer.MIN_VALUE if there 62 * is no value for this measure in a context. 63 * </p> 64 * 65 * @param metric the metric for which the value is to be returned 66 * @param context the context for which the measure value is to be returned 67 * 68 * @return as described 69 */ 70 public int getMeasureValue(TaskMetric metric, ITask context); 71 72 /** 73 * <p> 74 * represents a measure for a specific metric 75 * </p> 76 * 77 * @author Patrick Harms 78 */ 79 public interface IMeasure { 80 81 /** 82 * <p> 83 * returns the metric of the measure 84 * </p> 85 * 86 * @return as described 87 */ 88 public TaskMetric getMetric(); 89 90 /** 91 * <p> 92 * returns the value of the measure 93 * </p> 94 * 95 * @return as described 96 */ 97 public int getValue(); 98 99 /** 100 * <p> 101 * returns the value of the measure if the task was observed in a specific context, i.e. 102 * parent task 103 * </p> 104 * 105 * @return as described 106 */ 107 public int getValue(ITask context); 108 109 } 46 110 47 111 }
Note: See TracChangeset
for help on using the changeset viewer.