Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (15 years ago)
Author:
swagner
Message:

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/StringMatrix.cs

    r3047 r3048  
    2828
    2929namespace HeuristicLab.Data {
    30   [Item("StringMatrixData", "Represents a matrix of strings.")]
     30  [Item("StringMatrix", "Represents a matrix of strings.")]
    3131  [Creatable("Test")]
    3232  [StorableClass]
    33   public sealed class StringMatrixData : Item, IEnumerable, IStringConvertibleMatrixData {
     33  public sealed class StringMatrix : Item, IEnumerable, IStringConvertibleMatrix {
    3434    [Storable]
    3535    private string[,] array;
     
    7070    }
    7171
    72     public StringMatrixData() {
     72    public StringMatrix() {
    7373      array = new string[0, 0];
    7474    }
    75     public StringMatrixData(int rows, int columns) {
     75    public StringMatrix(int rows, int columns) {
    7676      array = new string[rows, columns];
    7777      for (int i = 0; i < array.GetLength(0); i++) {
     
    8080      }
    8181    }
    82     public StringMatrixData(string[,] elements) {
     82    public StringMatrix(string[,] elements) {
    8383      if (elements == null) throw new ArgumentNullException();
    8484      array = new string[elements.GetLength(0), elements.GetLength(1)];
     
    8888      }
    8989    }
    90     private StringMatrixData(StringMatrixData elements) {
     90    private StringMatrix(StringMatrix elements) {
    9191      if (elements == null) throw new ArgumentNullException();
    9292      array = (string[,])elements.array.Clone();
     
    9494
    9595    public override IDeepCloneable Clone(Cloner cloner) {
    96       StringMatrixData clone = new StringMatrixData(this);
     96      StringMatrix clone = new StringMatrix(this);
    9797      cloner.RegisterClonedObject(this, clone);
    9898      return clone;
     
    118118    }
    119119
    120     #region IStringConvertibleMatrixData Members
    121     int IStringConvertibleMatrixData.Rows {
     120    #region IStringConvertibleMatrix Members
     121    int IStringConvertibleMatrix.Rows {
    122122      get { return Rows; }
    123123      set { Rows = value; }
    124124    }
    125     int IStringConvertibleMatrixData.Columns {
     125    int IStringConvertibleMatrix.Columns {
    126126      get { return Columns; }
    127127      set { Columns = value; }
    128128    }
    129129
    130     bool IStringConvertibleMatrixData.Validate(string value, out string errorMessage) {
     130    bool IStringConvertibleMatrix.Validate(string value, out string errorMessage) {
    131131      if (value == null) {
    132132        errorMessage = "Invalid Value (string must not be null)";
     
    137137      }
    138138    }
    139     string IStringConvertibleMatrixData.GetValue(int rowIndex, int columIndex) {
     139    string IStringConvertibleMatrix.GetValue(int rowIndex, int columIndex) {
    140140      return this[rowIndex, columIndex];
    141141    }
    142     bool IStringConvertibleMatrixData.SetValue(string value, int rowIndex, int columnIndex) {
     142    bool IStringConvertibleMatrix.SetValue(string value, int rowIndex, int columnIndex) {
    143143      if (value != null) {
    144144        this[rowIndex, columnIndex] = value;
Note: See TracChangeset for help on using the changeset viewer.