Free cookie consent management tool by TermsFeed Policy Generator

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

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

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

    r3047 r3048  
    2525
    2626namespace HeuristicLab.Data {
    27   [Item("BoolMatrixData", "Represents a matrix of boolean values.")]
     27  [Item("BoolMatrix", "Represents a matrix of boolean values.")]
    2828  [Creatable("Test")]
    2929  [StorableClass]
    30   public sealed class BoolMatrixData : ValueTypeMatrixData<bool>, IStringConvertibleMatrixData {
    31     public BoolMatrixData() : base() { }
    32     public BoolMatrixData(int rows, int columns) : base(rows, columns) { }
    33     public BoolMatrixData(bool[,] elements) : base(elements) { }
    34     private BoolMatrixData(BoolMatrixData elements) : base(elements) { }
     30  public sealed class BoolMatrix : ValueTypeMatrix<bool>, IStringConvertibleMatrix {
     31    public BoolMatrix() : base() { }
     32    public BoolMatrix(int rows, int columns) : base(rows, columns) { }
     33    public BoolMatrix(bool[,] elements) : base(elements) { }
     34    private BoolMatrix(BoolMatrix elements) : base(elements) { }
    3535
    3636    public override IDeepCloneable Clone(Cloner cloner) {
    37       BoolMatrixData clone = new BoolMatrixData(this);
     37      BoolMatrix clone = new BoolMatrix(this);
    3838      cloner.RegisterClonedObject(this, clone);
    3939      return clone;
    4040    }
    4141
    42     #region IStringConvertibleMatrixData Members
    43     int IStringConvertibleMatrixData.Rows {
     42    #region IStringConvertibleMatrix Members
     43    int IStringConvertibleMatrix.Rows {
    4444      get { return Rows; }
    4545      set { Rows = value; }
    4646    }
    47     int IStringConvertibleMatrixData.Columns {
     47    int IStringConvertibleMatrix.Columns {
    4848      get { return Columns; }
    4949      set { Columns = value; }
    5050    }
    5151
    52     bool IStringConvertibleMatrixData.Validate(string value, out string errorMessage) {
     52    bool IStringConvertibleMatrix.Validate(string value, out string errorMessage) {
    5353      bool val;
    5454      bool valid = bool.TryParse(value, out val);
     
    6363      return valid;
    6464    }
    65     string IStringConvertibleMatrixData.GetValue(int rowIndex, int columIndex) {
     65    string IStringConvertibleMatrix.GetValue(int rowIndex, int columIndex) {
    6666      return this[rowIndex, columIndex].ToString();
    6767    }
    68     bool IStringConvertibleMatrixData.SetValue(string value, int rowIndex, int columnIndex) {
     68    bool IStringConvertibleMatrix.SetValue(string value, int rowIndex, int columnIndex) {
    6969      bool val;
    7070      if (bool.TryParse(value, out val)) {
Note: See TracChangeset for help on using the changeset viewer.