Projekt

Obecné

Profil

Stáhnout (1.69 KB) Statistiky
| Větev: | Tag: | Revize:
1
//
2
// Author: Roman Kalivoda
3
//
4

    
5
using System.Collections.Generic;
6
using ServerApp.Connection.XMLProtocolHandler;
7

    
8
namespace ServerApp.Predictor
9
{
10
    /// <summary>
11
    /// Interface for PredictionController class. Defines basic interface methods to access the "model" package.
12
    /// </summary>
13
    public interface IPredictionController
14
    {
15
        /// <summary>
16
        /// </summary>
17
        /// <returns>A list with all existing predictors.</returns>
18
        List<string> GetPredictors();
19

    
20
        /// <summary>
21
        /// Trains all predictors. The training data are taken from given path location.
22
        /// </summary>
23
        void Train();
24

    
25
        /// <summary>
26
        /// Loads trained predictors from files in <c>path</c>.
27
        /// </summary>
28
        /// <param name="path">A path to folder with trained prediction model.</param>
29
        int Load(string path);
30

    
31
        /// <summary>
32
        /// Rolls back the predictors to previous trained instances.
33
        /// </summary>
34
        int Rollback();
35

    
36
        /// <summary>
37
        /// Predicts turnout level at given time supposing given weather conditions.
38
        /// </summary>
39
        /// <param name="request">A request with time and weather information.</param>
40
        /// <returns>A server response filled with predictions.</returns>
41
        Response Predict(Request request);
42

    
43
        /// <summary>
44
        /// Returns the filenames of data files used to train current predictor instances
45
        /// </summary>
46
        /// <returns>Collection of filenames</returns>
47
        IEnumerable<string> GetDataFileNames();
48

    
49
        /// <summary>
50
        /// Saves the predictors to model data path.
51
        /// </summary>
52
        public void Save();
53
    }
54
}
(4-4/11)