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)

Location:
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorCreator.cs

    r3043 r3048  
    3737      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    3838    }
    39     public ILookupParameter<BoolArrayData> BinaryVectorParameter {
    40       get { return (ILookupParameter<BoolArrayData>)Parameters["BinaryVector"]; }
     39    public ILookupParameter<BoolArray> BinaryVectorParameter {
     40      get { return (ILookupParameter<BoolArray>)Parameters["BinaryVector"]; }
    4141    }
    42     public IValueLookupParameter<IntData> LengthParameter {
    43       get { return (IValueLookupParameter<IntData>)Parameters["Length"]; }
     42    public IValueLookupParameter<IntValue> LengthParameter {
     43      get { return (IValueLookupParameter<IntValue>)Parameters["Length"]; }
    4444    }
    4545
     
    4747      : base() {
    4848      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators."));
    49       Parameters.Add(new LookupParameter<IntArrayData>("BinaryVector", "The vector which should be manipulated."));
    50       Parameters.Add(new ValueLookupParameter<IntData>("Length", "The length of the vector."));
     49      Parameters.Add(new LookupParameter<IntArray>("BinaryVector", "The vector which should be manipulated."));
     50      Parameters.Add(new ValueLookupParameter<IntValue>("Length", "The length of the vector."));
    5151    }
    5252
     
    5656    }
    5757
    58     protected abstract BoolArrayData Create(IRandom random, IntData length);
     58    protected abstract BoolArray Create(IRandom random, IntValue length);
    5959  }
    6060}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorCrossover.cs

    r3043 r3048  
    3737      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    3838    }
    39     public ILookupParameter<ItemArray<BoolArrayData>> ParentsParameter {
    40       get { return (SubScopesLookupParameter<BoolArrayData>)Parameters["Parents"]; }
     39    public ILookupParameter<ItemArray<BoolArray>> ParentsParameter {
     40      get { return (SubScopesLookupParameter<BoolArray>)Parameters["Parents"]; }
    4141    }
    42     public ILookupParameter<BoolArrayData> ChildParameter {
    43       get { return (ILookupParameter<BoolArrayData>)Parameters["Child"]; }
     42    public ILookupParameter<BoolArray> ChildParameter {
     43      get { return (ILookupParameter<BoolArray>)Parameters["Child"]; }
    4444    }
    4545
     
    4747      : base() {
    4848      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic crossover operators."));
    49       Parameters.Add(new SubScopesLookupParameter<IntArrayData>("Parents", "The parent vectors which should be crossed."));
    50       Parameters.Add(new LookupParameter<IntArrayData>("Child", "The child vector resulting from the crossover."));
     49      Parameters.Add(new SubScopesLookupParameter<IntArray>("Parents", "The parent vectors which should be crossed."));
     50      Parameters.Add(new LookupParameter<IntArray>("Child", "The child vector resulting from the crossover."));
    5151    }
    5252
     
    5656    }
    5757
    58     protected abstract BoolArrayData Cross(IRandom random, ItemArray<BoolArrayData> parents);
     58    protected abstract BoolArray Cross(IRandom random, ItemArray<BoolArray> parents);
    5959  }
    6060}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorManipulator.cs

    r3043 r3048  
    3737      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    3838    }
    39     public ILookupParameter<BoolArrayData> BinaryVectorParameter {
    40       get { return (ILookupParameter<BoolArrayData>)Parameters["BinaryVector"]; }
     39    public ILookupParameter<BoolArray> BinaryVectorParameter {
     40      get { return (ILookupParameter<BoolArray>)Parameters["BinaryVector"]; }
    4141    }
    4242
     
    4444      : base() {
    4545      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators."));
    46       Parameters.Add(new LookupParameter<IntArrayData>("BinaryVector", "The vector which should be manipulated."));
     46      Parameters.Add(new LookupParameter<IntArray>("BinaryVector", "The vector which should be manipulated."));
    4747    }
    4848
     
    5252    }
    5353
    54     protected abstract void Manipulate(IRandom random, BoolArrayData binaryVector);
     54    protected abstract void Manipulate(IRandom random, BoolArray binaryVector);
    5555  }
    5656}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/HeuristicLab.Encodings.BinaryVectors-3.3.csproj

    r3040 r3048  
    3232    <ErrorReport>prompt</ErrorReport>
    3333    <WarningLevel>4</WarningLevel>
     34  </PropertyGroup>
     35  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
     36    <DebugSymbols>true</DebugSymbols>
     37    <OutputPath>bin\x64\Debug\</OutputPath>
     38    <DefineConstants>DEBUG;TRACE</DefineConstants>
     39    <DebugType>full</DebugType>
     40    <PlatformTarget>x64</PlatformTarget>
     41    <ErrorReport>prompt</ErrorReport>
     42  </PropertyGroup>
     43  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
     44    <OutputPath>bin\x64\Release\</OutputPath>
     45    <DefineConstants>TRACE</DefineConstants>
     46    <Optimize>true</Optimize>
     47    <DebugType>pdbonly</DebugType>
     48    <PlatformTarget>x64</PlatformTarget>
     49    <ErrorReport>prompt</ErrorReport>
     50  </PropertyGroup>
     51  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
     52    <DebugSymbols>true</DebugSymbols>
     53    <OutputPath>bin\x86\Debug\</OutputPath>
     54    <DefineConstants>DEBUG;TRACE</DefineConstants>
     55    <DebugType>full</DebugType>
     56    <PlatformTarget>x86</PlatformTarget>
     57    <ErrorReport>prompt</ErrorReport>
     58  </PropertyGroup>
     59  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
     60    <OutputPath>bin\x86\Release\</OutputPath>
     61    <DefineConstants>TRACE</DefineConstants>
     62    <Optimize>true</Optimize>
     63    <DebugType>pdbonly</DebugType>
     64    <PlatformTarget>x86</PlatformTarget>
     65    <ErrorReport>prompt</ErrorReport>
    3466  </PropertyGroup>
    3567  <ItemGroup>
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorCreator.cs

    r3042 r3048  
    2929  /// </summary>
    3030  public interface IBinaryVectorCreator : IBinaryVectorOperator, ISolutionCreator {
    31     IValueLookupParameter<IntData> LengthParameter { get; }
    32     ILookupParameter<BoolArrayData> BinaryVectorParameter { get; }
     31    IValueLookupParameter<IntValue> LengthParameter { get; }
     32    ILookupParameter<BoolArray> BinaryVectorParameter { get; }
    3333  }
    3434}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorCrossover.cs

    r3040 r3048  
    2929  /// </summary>
    3030  public interface IBinaryVectorCrossover : IBinaryVectorOperator, ICrossover {
    31     ILookupParameter<ItemArray<BoolArrayData>> ParentsParameter { get; }
    32     ILookupParameter<BoolArrayData> ChildParameter { get; }
     31    ILookupParameter<ItemArray<BoolArray>> ParentsParameter { get; }
     32    ILookupParameter<BoolArray> ChildParameter { get; }
    3333  }
    3434}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorManipulator.cs

    r3042 r3048  
    2929  /// </summary>
    3030  public interface IBinaryVectorManipulator : IBinaryVectorOperator, IManipulator {
    31     ILookupParameter<BoolArrayData> BinaryVectorParameter { get; }
     31    ILookupParameter<BoolArray> BinaryVectorParameter { get; }
    3232  }
    3333}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Tests/Auxiliary.cs

    r3040 r3048  
    2525namespace HeuristicLab.Encodings.IntVector_33.Tests {
    2626  public static class Auxiliary {
    27     public static bool BoolVectorIsEqualByPosition(BoolArrayData p1, BoolArrayData p2) {
     27    public static bool BoolVectorIsEqualByPosition(BoolArray p1, BoolArray p2) {
    2828      bool equal = (p1.Length == p2.Length);
    2929      if (equal) {
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Tests/HeuristicLab.Encodings.BinaryVectors-3.3.Tests.csproj

    r3040 r3048  
    3030    <ErrorReport>prompt</ErrorReport>
    3131    <WarningLevel>4</WarningLevel>
     32  </PropertyGroup>
     33  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
     34    <DebugSymbols>true</DebugSymbols>
     35    <OutputPath>bin\x64\Debug\</OutputPath>
     36    <DefineConstants>DEBUG;TRACE</DefineConstants>
     37    <DebugType>full</DebugType>
     38    <PlatformTarget>x64</PlatformTarget>
     39    <ErrorReport>prompt</ErrorReport>
     40  </PropertyGroup>
     41  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
     42    <OutputPath>bin\x64\Release\</OutputPath>
     43    <DefineConstants>TRACE</DefineConstants>
     44    <Optimize>true</Optimize>
     45    <DebugType>pdbonly</DebugType>
     46    <PlatformTarget>x64</PlatformTarget>
     47    <ErrorReport>prompt</ErrorReport>
     48  </PropertyGroup>
     49  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
     50    <DebugSymbols>true</DebugSymbols>
     51    <OutputPath>bin\x86\Debug\</OutputPath>
     52    <DefineConstants>DEBUG;TRACE</DefineConstants>
     53    <DebugType>full</DebugType>
     54    <PlatformTarget>x86</PlatformTarget>
     55    <ErrorReport>prompt</ErrorReport>
     56  </PropertyGroup>
     57  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
     58    <OutputPath>bin\x86\Release\</OutputPath>
     59    <DefineConstants>TRACE</DefineConstants>
     60    <Optimize>true</Optimize>
     61    <DebugType>pdbonly</DebugType>
     62    <PlatformTarget>x86</PlatformTarget>
     63    <ErrorReport>prompt</ErrorReport>
    3264  </PropertyGroup>
    3365  <ItemGroup>
Note: See TracChangeset for help on using the changeset viewer.