Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3166


Ignore:
Timestamp:
03/22/10 10:36:01 (15 years ago)
Author:
svonolfe
Message:

Renamed Knapsack to KnapsackProblem and KnapsackView to KnapsackProblemView (#917)

Location:
trunk/sources
Files:
2 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Knapsack.Views/3.3/HeuristicLab.Problems.Knapsack.Views-3.3.csproj

    r3082 r3166  
    8383  <ItemGroup>
    8484    <Compile Include="HeuristicLabProblemsKnapsackViewsPlugin.cs" />
    85     <Compile Include="Properties\AssemblyInfo.cs" />
    86     <Compile Include="KnapsackView.cs">
     85    <Compile Include="KnapsackProblemView.cs">
    8786      <SubType>UserControl</SubType>
    8887    </Compile>
    89     <Compile Include="KnapsackView.Designer.cs">
    90       <DependentUpon>KnapsackView.cs</DependentUpon>
     88    <Compile Include="KnapsackProblemView.Designer.cs">
     89      <DependentUpon>KnapsackProblemView.cs</DependentUpon>
    9190    </Compile>
     91    <Compile Include="Properties\AssemblyInfo.cs" />
    9292  </ItemGroup>
    9393  <ItemGroup>
  • trunk/sources/HeuristicLab.Problems.Knapsack.Views/3.3/KnapsackProblemView.Designer.cs

    r3163 r3166  
    11namespace HeuristicLab.Problems.Knapsack.Views {
    2   partial class KnapsackView {
     2  partial class KnapsackProblemView {
    33    /// <summary>
    44    /// Required designer variable.
  • trunk/sources/HeuristicLab.Problems.Knapsack.Views/3.3/KnapsackProblemView.cs

    r3163 r3166  
    99
    1010namespace HeuristicLab.Problems.Knapsack.Views {
    11   [View("Knapsack View")]
    12   [Content(typeof(Knapsack), true)]
    13   public partial class KnapsackView : HeuristicLab.Optimization.Views.ProblemView {
    14     public new Knapsack Content {
    15       get { return (Knapsack)base.Content; }
     11  [View("KnapsackProblem View")]
     12  [Content(typeof(KnapsackProblem), true)]
     13  public partial class KnapsackProblemView : HeuristicLab.Optimization.Views.ProblemView {
     14    public new KnapsackProblem Content {
     15      get { return (KnapsackProblem)base.Content; }
    1616      set { base.Content = value; }
    1717    }
     
    2020    /// Initializes a new instance of <see cref="ItemBaseView"/>.
    2121    /// </summary>
    22     public KnapsackView() {
     22    public KnapsackProblemView() {
    2323      InitializeComponent();
    2424    }
     
    2727    /// </summary>
    2828    /// <param name="item">The item that should be displayed.</param>
    29     public KnapsackView(Knapsack content)
     29    public KnapsackProblemView(KnapsackProblem content)
    3030      : this() {
    3131      Content = content;
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/HeuristicLab.Problems.Knapsack-3.3.csproj

    r3124 r3166  
    8686    <Compile Include="Interfaces\IKnapsackSolutionsVisualizer.cs" />
    8787    <Compile Include="Interfaces\IKnapsackMoveEvaluator.cs" />
    88     <Compile Include="Knapsack.cs" />
     88    <Compile Include="KnapsackProblem.cs" />
    8989    <Compile Include="MoveEvaluators\KnapsackMoveEvaluator.cs" />
    9090    <Compile Include="MoveEvaluators\KnapsackOneBitflipMoveEvaluator.cs" />
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs

    r3163 r3166  
    3434
    3535namespace HeuristicLab.Problems.Knapsack {
    36   [Item("Knapsack", "Represents a Knapsack Problem.")]
     36  [Item("KnapsackProblem", "Represents a Knapsack Problem.")]
    3737  [Creatable("Problems")]
    3838  [StorableClass]
    39   public sealed class Knapsack : ParameterizedNamedItem, ISingleObjectiveProblem {
     39  public sealed class KnapsackProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
    4040    public override Image ItemImage {
    4141      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
     
    157157    }
    158158
    159     public Knapsack()
     159    public KnapsackProblem()
    160160      : base() {
    161161      RandomBinaryVectorCreator creator = new RandomBinaryVectorCreator();
     
    184184
    185185    [StorableConstructor]
    186     private Knapsack(bool deserializing) : base() { }
     186    private KnapsackProblem(bool deserializing) : base() { }
    187187
    188188    public override IDeepCloneable Clone(Cloner cloner) {
    189       Knapsack clone = (Knapsack)base.Clone(cloner);
     189      KnapsackProblem clone = (KnapsackProblem)base.Clone(cloner);
    190190      clone.Initialize();
    191191      return clone;
Note: See TracChangeset for help on using the changeset viewer.