Changeset 10181


Ignore:
Timestamp:
12/04/13 12:56:18 (6 years ago)
Author:
pfleck
Message:

Added indexing IPreprocessingData with variable names.
Indexing per column index is marked obsolete.

Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs

    r10168 r10181  
    6868    }
    6969
    70     public IList<T> GetValues<T>(int columnIndex) {
     70    public T GetCell<T>(string variableName, int row) {
     71      throw new NotImplementedException();
     72    }
     73
     74    public void SetCell<T>(string variableName, int row, T value) {
     75      throw new NotImplementedException();
     76    }
     77
     78    public IEnumerable<T> GetValues<T>(int columnIndex) {
     79      throw new NotImplementedException();
     80    }
     81
     82    public IEnumerable<T> GetValues<T>(string variableName) {
    7183      throw new NotImplementedException();
    7284    }
    7385
    7486    public void SetValues<T>(int columnIndex, IEnumerable<T> values) {
     87      throw new NotImplementedException();
     88    }
     89
     90    public void SetValues<T>(string variableName, IEnumerable<T> values) {
    7591      throw new NotImplementedException();
    7692    }
     
    92108    }
    93109
    94     public IList<string> VariableNames {
     110    public void DeleteColumn(string variableName) {
     111      throw new NotImplementedException();
     112    }
     113
     114    IEnumerable<string> IPreprocessingData.VariableNames {
    95115      get { throw new NotImplementedException(); }
    96116    }
    97117
    98118    public bool IsType<T>(int columnIndex) {
     119      throw new NotImplementedException();
     120    }
     121
     122    public bool IsType<T>(string variableName) {
    99123      throw new NotImplementedException();
    100124    }
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingData.cs

    r10165 r10181  
    2020#endregion
    2121
     22using System;
    2223using System.Collections.Generic;
    2324using HeuristicLab.Core;
     
    2728
    2829  public interface IPreprocessingData : INamedItem {
    29     T GetCell<T>(int rowIndex, int columnIndex);
    30     void SetCell<T>(int rowIndex, int columnIndex, T value);
     30    [Obsolete]T GetCell<T>(int rowIndex, int columnIndex);
     31    [Obsolete]void SetCell<T>(int rowIndex, int columnIndex, T value);
    3132
    32     IList<T> GetValues<T>(int columnIndex);
    33     void SetValues<T>(int columnIndex, IEnumerable<T> values);
     33    T GetCell<T>(string variableName, int row);
     34    void SetCell<T>(string variableName, int row, T value);
     35
     36    [Obsolete]IEnumerable<T> GetValues<T>(int columnIndex);
     37    IEnumerable<T> GetValues<T>(string variableName);
     38    [Obsolete]void SetValues<T>(int columnIndex, IEnumerable<T> values);
     39    void SetValues<T>(string variableName, IEnumerable<T> values);
    3440
    3541    void InsertRow(int rowIndex);
     
    3743
    3844    void InsertColumn(string variableName, int columnIndex);
    39     void DeleteColumn(int columnIndex);
     45    [Obsolete]void DeleteColumn(int columnIndex);
     46    void DeleteColumn(string variableName);
    4047
    41     IList<string> VariableNames { get; }
    42     bool IsType<T>(int columnIndex);
     48    IEnumerable<string> VariableNames { get; }
     49    [Obsolete]bool IsType<T>(int columnIndex);
     50    bool IsType<T>(string variableName);
    4351
    4452    int Columns { get; }
Note: See TracChangeset for help on using the changeset viewer.