Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/08 16:47:45 (15 years ago)
Author:
gkronber
Message:

removed visitor interfaces and methods in HeuristicLab.Data and fixed classes in HeuristicLab.Random to work without visitor methods. #343 (Rethink about usefulness of visitors for ObjectData and Constraints)

Location:
trunk/sources/HeuristicLab.Data
Files:
2 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/BoolArrayData.cs

    r737 r763  
    9595      Data = data;
    9696    }
    97     /// <summary>
    98     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    99     /// can change the elements of the array.
    100     /// </summary>
    101     /// <param name="visitor">The visitor that changes the element.</param>
    102     public override void Accept(IObjectDataVisitor visitor) {
    103       visitor.Visit(this);
    104     }
    10597  }
    10698}
  • trunk/sources/HeuristicLab.Data/BoolData.cs

    r737 r763  
    9898      Data = bool.Parse(node.InnerText);
    9999    }
    100 
    101     /// <summary>
    102     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    103     /// can change the boolean element.
    104     /// </summary>
    105     /// <param name="visitor">The visitor that changes the element.</param>
    106     public override void Accept(IObjectDataVisitor visitor) {
    107       visitor.Visit(this);
    108     }
    109100  }
    110101}
  • trunk/sources/HeuristicLab.Data/BoolMatrixData.cs

    r737 r763  
    122122      return builder.ToString();
    123123    }
    124     /// <summary>
    125     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    126     /// can change the elements of the matrix.
    127     /// </summary>
    128     /// <param name="visitor">The visitor that changes the elements.</param>
    129     public override void Accept(IObjectDataVisitor visitor) {
    130       visitor.Visit(this);
    131     }
    132124  }
    133125}
  • trunk/sources/HeuristicLab.Data/ConstrainedDoubleData.cs

    r737 r763  
    110110      base.Data = (DoubleData)PersistenceManager.Restore(node.SelectSingleNode("Value"), restoredObjects);
    111111    }
    112 
    113     /// <summary>
    114     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    115     /// can change the double value.
    116     /// </summary>
    117     /// <param name="visitor">The visitor that changes the element.</param>
    118     public override void Accept(IObjectDataVisitor visitor) {
    119       visitor.Visit(this);
    120     }
    121112  }
    122113}
  • trunk/sources/HeuristicLab.Data/ConstrainedIntData.cs

    r737 r763  
    110110      base.Data = (IntData)PersistenceManager.Restore(node.SelectSingleNode("Value"), restoredObjects);
    111111    }
    112 
    113     /// <summary>
    114     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    115     /// can change the int element.
    116     /// </summary>
    117     /// <param name="visitor">The visitor that changes the element.</param>
    118     public override void Accept(IObjectDataVisitor visitor) {
    119       visitor.Visit(this);
    120     }
    121112  }
    122113}
  • trunk/sources/HeuristicLab.Data/ConstrainedObjectData.cs

    r737 r763  
    137137      return Data.ToString();
    138138    }
    139 
    140     /// <summary>
    141     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    142     /// can change the element.
    143     /// </summary>
    144     /// <param name="visitor">The visitor that changes the element.</param>
    145     public virtual void Accept(IObjectDataVisitor visitor) {
    146       visitor.Visit(this);
    147     }
    148139  }
    149140}
  • trunk/sources/HeuristicLab.Data/DoubleArrayData.cs

    r737 r763  
    117117      return builder.ToString();
    118118    }
    119 
    120     /// <summary>
    121     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    122     /// can change the elements of the array.
    123     /// </summary>
    124     /// <param name="visitor">The visitor that changes the elements.</param>
    125     public override void Accept(IObjectDataVisitor visitor) {
    126       visitor.Visit(this);
    127     }
    128119  }
    129120}
  • trunk/sources/HeuristicLab.Data/DoubleData.cs

    r737 r763  
    109109      }
    110110    }
    111 
    112     /// <summary>
    113     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    114     /// can change the elements of the matrix.
    115     /// </summary>
    116     /// <param name="visitor">The visitor that changes the elements.</param>
    117     public override void Accept(IObjectDataVisitor visitor) {
    118       visitor.Visit(this);
    119     }
    120111  }
    121112}
  • trunk/sources/HeuristicLab.Data/HeuristicLab.Data.csproj

    r737 r763  
    33    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    44    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    5     <ProductVersion>9.0.21022</ProductVersion>
     5    <ProductVersion>9.0.30729</ProductVersion>
    66    <SchemaVersion>2.0</SchemaVersion>
    77    <ProjectGuid>{F473D9AF-3F09-4296-9F28-3C65118DAFFA}</ProjectGuid>
     
    180180    </Compile>
    181181    <Compile Include="IObjectData.cs" />
    182     <Compile Include="IObjectDataVisitor.cs" />
    183182    <Compile Include="ItemList.cs" />
    184183    <Compile Include="ItemListView.cs">
     
    200199    </Compile>
    201200    <Compile Include="ObjectData.cs" />
    202     <Compile Include="ObjectDataVisitorBase.cs" />
    203201    <Compile Include="StringDataView.cs">
    204202      <SubType>UserControl</SubType>
  • trunk/sources/HeuristicLab.Data/IObjectData.cs

    r737 r763  
    3434    /// </summary>
    3535    object Data { get; set; }
    36 
    37     /// <summary>
    38     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    39     /// can change the object.
    40     /// </summary>
    41     /// <param name="visitor">The visitor that changes the element.</param>
    42     void Accept(IObjectDataVisitor visitor);
    4336  }
    4437}
  • trunk/sources/HeuristicLab.Data/IntData.cs

    r737 r763  
    103103      Data = int.Parse(node.InnerText, CultureInfo.InvariantCulture.NumberFormat);
    104104    }
    105 
    106     /// <summary>
    107     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    108     /// can change the int value.
    109     /// </summary>
    110     /// <param name="visitor">The visitor that changes the element.</param>
    111     public override void Accept(IObjectDataVisitor visitor) {
    112       visitor.Visit(this);
    113     }
    114105  }
    115106}
  • trunk/sources/HeuristicLab.Data/IntMatrixData.cs

    r737 r763  
    139139      return builder.ToString();
    140140    }
    141 
    142     /// <summary>
    143     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    144     /// can change the elements of the matrix.
    145     /// </summary>
    146     /// <param name="visitor">The visitor that changes the elements.</param>
    147     public override void Accept(IObjectDataVisitor visitor) {
    148       visitor.Visit(this);
    149     }
    150141  }
    151142}
  • trunk/sources/HeuristicLab.Data/NullData.cs

    r737 r763  
    5858      return clone;
    5959    }
    60 
    61     /// <summary>
    62     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    63     /// can change the value.
    64     /// </summary>
    65     /// <param name="visitor">The visitor that changes the element.</param>
    66     public override void Accept(IObjectDataVisitor visitor) {
    67       visitor.Visit(this);
    68     }
    6960  }
    7061}
  • trunk/sources/HeuristicLab.Data/ObjectData.cs

    r737 r763  
    120120        return Data.ToString();
    121121    }
    122 
    123     /// <summary>
    124     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    125     /// can change the object.
    126     /// </summary>
    127     /// <param name="visitor">The visitor that changes the element.</param>
    128     public virtual void Accept(IObjectDataVisitor visitor) {
    129       visitor.Visit(this);
    130     }
    131122  }
    132123}
  • trunk/sources/HeuristicLab.Data/StringData.cs

    r737 r763  
    109109      return Data;
    110110    }
    111 
    112     /// <summary>
    113     /// The point of intersection where an <see cref="IObjectDataVisitor"/>
    114     /// can change the string.
    115     /// </summary>
    116     /// <param name="visitor">The visitor that changes the element.</param>
    117     public override void Accept(IObjectDataVisitor visitor) {
    118       visitor.Visit(this);
    119     }
    120111  }
    121112}
Note: See TracChangeset for help on using the changeset viewer.