Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/Api/IMatlabConnector.cs @ 15958

Last change on this file since 15958 was 15926, checked in by rhanghof, 7 years ago

#2913:

  • Added the support for importing different Matlab datatypes.
  • Added some classes and changed the import dialog for importing double arrays.
File size: 1.6 KB
Line 
1
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7using HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api.Types;
8
9namespace HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api {
10  public interface IMatlabConnector : IDisposable {
11    event Action<string> ErrorOccuredEvent;
12
13    /// <summary>
14    /// Executes a given matlab script.
15    /// </summary>
16    /// <param name="script"></param>
17    void ExecuteScript(string script);
18
19    /// <summary>
20    /// Executes a matlab command.
21    /// </summary>
22    /// <param name="command"></param>
23    void Execute(string command);
24
25    /// <summary>
26    /// Returns a dictionary with all available and supported variables from the matlab workspace.
27    /// </summary>
28    /// <returns></returns>
29    IEnumerable<MLVariableInfo> GetVariablesFromScript(string script);
30
31    /// <summary>
32    ///
33    /// </summary>
34    /// <param name="varName"></param>
35    /// <returns></returns>
36    object GetVariable(string varName);
37
38    /// <summary>
39    ///
40    /// </summary>
41    /// <param name="varName"></param>
42    /// <returns></returns>
43    MLTimeseries GetTimeseries(string varName);
44
45    /// <summary>
46    ///
47    /// </summary>
48    /// <param name="varName"></param>
49    /// <returns></returns>
50    MLDouble GetDouble(string varName);
51
52    /// <summary>
53    ///
54    /// </summary>
55    /// <param name="varName"></param>
56    /// <returns></returns>
57    MLDoubleArray GetDoubleArray(string varName);
58  }
59}
Note: See TracBrowser for help on using the repository browser.