[104] | 1 | package schedframe.scheduling.plugin.grid; |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | /** |
---|
| 5 | * This interface provides performance estimations that can be used in scheduling |
---|
| 6 | * |
---|
| 7 | * @author Ariel |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | public interface Prediction { |
---|
| 11 | |
---|
| 12 | /** |
---|
| 13 | * Predicts runtime of a given task at specific resource |
---|
| 14 | * @param td Description of a task |
---|
| 15 | * @param rd Description of resources |
---|
| 16 | * @param resourceId id of resource |
---|
| 17 | * @return prediction of a task runtime for a given task and resource description |
---|
| 18 | */ |
---|
| 19 | // public PredictionValue getRunTime(TaskDescription td, ResourceDescription rd, String resourceId); |
---|
| 20 | |
---|
| 21 | /** |
---|
| 22 | * Predicts runtime of a given task |
---|
| 23 | * @param td Description of a task |
---|
| 24 | * @return prediction of a task runtime for a given task |
---|
| 25 | */ |
---|
| 26 | // public PredictionValue getRunTime(TaskDescription td); |
---|
| 27 | |
---|
| 28 | /** |
---|
| 29 | * Predicts queue wait time of a given task at specific resource |
---|
| 30 | * @param td Description of a task |
---|
| 31 | * @param rd Description of resources |
---|
| 32 | * @param resourceId id of resource |
---|
| 33 | * @return prediction of a task waiting time for a given task and resource description |
---|
| 34 | */ |
---|
| 35 | // public PredictionValue getWaitTime(TaskDescription td, ResourceDescription rd, String resourceId); |
---|
| 36 | |
---|
| 37 | /** |
---|
| 38 | * Predicts a given parameter of a given task |
---|
| 39 | * @return prediction for a given parameter and task description |
---|
| 40 | */ |
---|
| 41 | // public PredictionValue getPrediction(String paramName, TaskDescription td); |
---|
| 42 | |
---|
| 43 | /** |
---|
| 44 | * Predicts runtimes of given tasks at specific resources |
---|
| 45 | * @param td Description of a task |
---|
| 46 | * @param rd Description of resources |
---|
| 47 | * @param resourceIds identifiers of resources |
---|
| 48 | * @return predictions for a given task; returned array contains predictions for requested resources |
---|
| 49 | */ |
---|
| 50 | // public PredictionValue[] getRunTime(TaskDescription td, ResourceDescription rd, String[] resourceIds); |
---|
| 51 | |
---|
| 52 | } |
---|