// Copyright 2012 Georg-August-Universität Göttingen, Germany // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package de.ugoe.cs.autoquest.tasktrees.treeifc; /** *
* Provides extended information about a specific task, such as statistics about * task occurrences, etc. It contains measures for different metrics determined * for a task. *
* * @author Patrick Harms */ public interface ITaskInfo { /** ** represents a measure for a specific metric *
* * @author Patrick Harms */ public interface IMeasure { /** ** returns the metric of the measure *
* * @return as described */ public TaskMetric getMetric(); /** ** returns the value of the measure *
* * @return as described */ public int getValue(); /** ** returns the value of the measure if the task was observed in a * specific context, i.e. parent task *
* * @return as described */ public int getValue(ITask context); } /** ** returns all available measures *
* * @return as described */ public IMeasure[] getMeasures(); /** ** returns the value of the measure identified through the given metric *
* * @param metric * the metric for which the value is to be returned * * @return as described */ public int getMeasureValue(TaskMetric metric); /** ** returns the value of the measure identified through the given metric if * the task is observed in the given context, i.e. parent task. The result * is Integer.MIN_VALUE if there is no value for this measure in a context. *
* * @param metric * the metric for which the value is to be returned * @param context * the context for which the measure value is to be returned * * @return as described */ public int getMeasureValue(TaskMetric metric, ITask context); /** ** returns the task to which these infos belong *
* * @return as described */ public ITask getTask(); }