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 | /** |
---|
18 | * <p> |
---|
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. |
---|
21 | * </p> |
---|
22 | * |
---|
23 | * @author Patrick Harms |
---|
24 | */ |
---|
25 | public interface ITaskInfo { |
---|
26 | |
---|
27 | /** |
---|
28 | * <p> |
---|
29 | * returns the task to which these infos belong |
---|
30 | * </p> |
---|
31 | * |
---|
32 | * @return as described |
---|
33 | */ |
---|
34 | public ITask getTask(); |
---|
35 | |
---|
36 | /** |
---|
37 | * <p> |
---|
38 | * returns all available measures |
---|
39 | * </p> |
---|
40 | * |
---|
41 | * @return as described |
---|
42 | */ |
---|
43 | public IMeasure[] getMeasures(); |
---|
44 | |
---|
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 | |
---|
85 | } |
---|