[1146] | 1 | // Copyright 2012 Georg-August-Universität Göttingen, Germany |
---|
| 2 | // |
---|
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
---|
| 4 | // you may not use this file except in compliance with the License. |
---|
| 5 | // You may obtain a copy of the License at |
---|
| 6 | // |
---|
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 8 | // |
---|
| 9 | // Unless required by applicable law or agreed to in writing, software |
---|
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 12 | // See the License for the specific language governing permissions and |
---|
| 13 | // limitations under the License. |
---|
| 14 | |
---|
| 15 | package de.ugoe.cs.autoquest.tasktrees.treeifc; |
---|
| 16 | |
---|
| 17 | /** |
---|
[1191] | 18 | * <p> |
---|
[1423] | 19 | * Provides extended information about a specific task, such as statistics about task occurrences, |
---|
| 20 | * etc. It contains measures for different metrics determined for a task. |
---|
[1191] | 21 | * </p> |
---|
[1146] | 22 | * |
---|
[1191] | 23 | * @author Patrick Harms |
---|
[1146] | 24 | */ |
---|
[1428] | 25 | public interface ITaskInfo { |
---|
[1146] | 26 | |
---|
| 27 | /** |
---|
[1191] | 28 | * <p> |
---|
| 29 | * returns the task to which these infos belong |
---|
| 30 | * </p> |
---|
[1146] | 31 | * |
---|
[1191] | 32 | * @return as described |
---|
[1146] | 33 | */ |
---|
| 34 | public ITask getTask(); |
---|
| 35 | |
---|
[1287] | 36 | /** |
---|
| 37 | * <p> |
---|
[1423] | 38 | * returns all available measures |
---|
[1287] | 39 | * </p> |
---|
| 40 | * |
---|
| 41 | * @return as described |
---|
| 42 | */ |
---|
[1423] | 43 | public IMeasure[] getMeasures(); |
---|
[1287] | 44 | |
---|
[1423] | 45 | /** |
---|
| 46 | * <p> |
---|
| 47 | * returns the value of the measure identified through the given metric |
---|
| 48 | * </p> |
---|
| 49 | * |
---|
| 50 | * @param metric the metric for which the value is to be returned |
---|
| 51 | * |
---|
| 52 | * @return as described |
---|
| 53 | */ |
---|
| 54 | public int getMeasureValue(TaskMetric metric); |
---|
| 55 | |
---|
| 56 | /** |
---|
| 57 | * <p> |
---|
| 58 | * represents a measure for a specific metric |
---|
| 59 | * </p> |
---|
| 60 | * |
---|
| 61 | * @author Patrick Harms |
---|
| 62 | */ |
---|
| 63 | public interface IMeasure { |
---|
| 64 | |
---|
| 65 | /** |
---|
| 66 | * <p> |
---|
| 67 | * returns the metric of the measure |
---|
| 68 | * </p> |
---|
| 69 | * |
---|
| 70 | * @return as described |
---|
| 71 | */ |
---|
| 72 | public TaskMetric getMetric(); |
---|
| 73 | |
---|
| 74 | /** |
---|
| 75 | * <p> |
---|
| 76 | * returns the value of the measure |
---|
| 77 | * </p> |
---|
| 78 | * |
---|
| 79 | * @return as described |
---|
| 80 | */ |
---|
| 81 | public int getValue(); |
---|
| 82 | |
---|
| 83 | } |
---|
| 84 | |
---|
[1146] | 85 | } |
---|