Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/13 14:14:17 (11 years ago)
Author:
pfleck
Message:

Removed obsolete methods.
Implemented few members...

File:
1 edited

Legend:

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

    r10187 r10188  
    9595    #region IPreprocessingData Members
    9696
    97     public T GetCell<T>(int columnIndex, int rowIndex) {
    98       return (T)variableValues[variableNames[columnIndex]][rowIndex];
    99     }
    100 
    101     public void SetCell<T>(int columnIndex, int rowIndex, T value) {
    102       variableValues[variableNames[columnIndex]][rowIndex] = value;
    103     }
    104 
    10597    public T GetCell<T>(string variableName, int row) {
    10698      return (T)variableValues[variableName][row];
     
    111103    }
    112104
    113     public IEnumerable<T> GetValues<T>(int columnIndex) {
    114       return (IEnumerable<T>)variableValues[variableNames[columnIndex]];
    115     }
    116 
    117105    public IEnumerable<T> GetValues<T>(string variableName) {
    118106      return (IEnumerable<T>)variableValues[variableName];
    119     }
    120 
    121     public void SetValues<T>(int columnIndex, IEnumerable<T> values) {
    122       variableValues[variableNames[columnIndex]] = values.ToList();
    123107    }
    124108
     
    139123    }
    140124
    141     public void DeleteColumn(int columnIndex) {
    142       throw new NotImplementedException();
    143     }
    144 
    145125    public void DeleteColumn(string variableName) {
    146126      throw new NotImplementedException();
    147127    }
    148128
    149     IEnumerable<string> IPreprocessingData.VariableNames {
    150       get { throw new NotImplementedException(); }
    151     }
    152 
    153     public bool IsType<T>(int columnIndex) {
    154       throw new NotImplementedException();
     129    public IEnumerable<string> VariableNames {
     130      get { return variableNames; }
    155131    }
    156132
    157133    public bool IsType<T>(string variableName) {
    158       throw new NotImplementedException();
     134      return variableValues[variableName] is List<T>;
    159135    }
    160136
Note: See TracChangeset for help on using the changeset viewer.