source: trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInfo.java @ 1428

Last change on this file since 1428 was 1428, checked in by pharms, 10 years ago
  • removed find bugs warning
File size: 2.8 KB
RevLine 
[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
15package 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]25public 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     * returns the value of the measure identified through the given metric if the task is
59     * observed in the given context, i.e. parent task. The result is Integer.MIN_VALUE if there
60     * is no value for this measure in a context.
61     * </p>
62     *
63     * @param metric  the metric for which the value is to be returned
64     * @param context the context for which the measure value is to be returned
65     *
66     * @return as described
67     */
68    public int getMeasureValue(TaskMetric metric, ITask context);
69
70    /**
71     * <p>
72     * represents a measure for a specific metric
73     * </p>
74     *
75     * @author Patrick Harms
76     */
77    public interface IMeasure {
78       
79        /**
80         * <p>
81         * returns the metric of the measure
82         * </p>
83         *
84         * @return as described
85         */
86        public TaskMetric getMetric();
87       
88        /**
89         * <p>
90         * returns the value of the measure
91         * </p>
92         *
93         * @return as described
94         */
95        public int getValue();
96       
97        /**
98         * <p>
99         * returns the value of the measure if the task was observed in a specific context, i.e.
100         * parent task
101         * </p>
102         *
103         * @return as described
104         */
105        public int getValue(ITask context);
106       
107    }
108
[1146]109}
Note: See TracBrowser for help on using the repository browser.