Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13210


Ignore:
Timestamp:
11/17/15 13:48:30 (9 years ago)
Author:
gkronber
Message:

#2069: copied relevant files for robocode problem from branch to trunk

Location:
trunk/sources
Files:
29 added
4 edited

Legend:

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

    r12911 r13210  
    133133    <Compile Include="Plugin.cs" />
    134134    <Compile Include="Properties\AssemblyInfo.cs" />
     135    <Compile Include="Robocode\BattleRunnerDialog.cs">
     136      <SubType>Form</SubType>
     137    </Compile>
     138    <Compile Include="Robocode\BattleRunnerDialog.Designer.cs">
     139      <DependentUpon>BattleRunnerDialog.cs</DependentUpon>
     140    </Compile>
     141    <Compile Include="Robocode\CodeSymbolView.cs">
     142      <SubType>UserControl</SubType>
     143    </Compile>
     144    <Compile Include="Robocode\CodeSymbolView.Designer.cs">
     145      <DependentUpon>CodeSymbolView.cs</DependentUpon>
     146    </Compile>
     147    <Compile Include="Robocode\EnemyCollectionView.cs">
     148      <SubType>UserControl</SubType>
     149    </Compile>
     150    <Compile Include="Robocode\EnemyCollectionView.Designer.cs">
     151      <DependentUpon>EnemyCollectionView.cs</DependentUpon>
     152    </Compile>
     153    <Compile Include="Robocode\SolutionCodeView.cs">
     154      <SubType>UserControl</SubType>
     155    </Compile>
     156    <Compile Include="Robocode\SolutionCodeView.Designer.cs">
     157      <DependentUpon>SolutionCodeView.cs</DependentUpon>
     158    </Compile>
     159    <Compile Include="Robocode\SolutionProgramView.cs">
     160      <SubType>UserControl</SubType>
     161    </Compile>
     162    <Compile Include="Robocode\SolutionProgramView.Designer.cs">
     163      <DependentUpon>SolutionProgramView.cs</DependentUpon>
     164    </Compile>
    135165  </ItemGroup>
    136166  <ItemGroup>
     
    140170  </ItemGroup>
    141171  <ItemGroup>
     172    <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
     173      <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project>
     174      <Name>HeuristicLab.Collections-3.3</Name>
     175      <Private>False</Private>
     176    </ProjectReference>
     177    <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">
     178      <Project>{0e27a536-1c4a-4624-a65e-dc4f4f23e3e1}</Project>
     179      <Name>HeuristicLab.Common.Resources-3.3</Name>
     180      <Private>False</Private>
     181    </ProjectReference>
    142182    <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    143183      <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>
  • trunk/sources/HeuristicLab.Problems.GeneticProgramming.Views/3.3/Plugin.cs.frame

    r12915 r13210  
    2828  [Plugin("HeuristicLab.Problems.GeneticProgramming.Views","Provides views for for genetic programming problems such as the artificial ant problem.", "3.3.0.$WCREV$")]
    2929  [PluginFile("HeuristicLab.Problems.GeneticProgramming.Views-3.3.dll", PluginFileType.Assembly)]
     30  [PluginDependency("HeuristicLab.Common.Resources","3.3")]
     31  [PluginDependency("HeuristicLab.Collections","3.3")]
    3032  [PluginDependency("HeuristicLab.Core","3.3")]
    3133  [PluginDependency("HeuristicLab.Core.Views","3.3")]
  • trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3/HeuristicLab.Problems.GeneticProgramming-3.3.csproj

    r12938 r13210  
    104104    </Reference>
    105105    <Reference Include="System.Drawing" />
     106    <Reference Include="System.IO.Compression" />
     107    <Reference Include="System.IO.Compression.FileSystem" />
    106108  </ItemGroup>
    107109  <ItemGroup>
     
    117119    <Compile Include="Plugin.cs" />
    118120    <Compile Include="Properties\AssemblyInfo.cs" />
     121    <Compile Include="robocode\EnemyCollection.cs" />
     122    <Compile Include="robocode\Grammar.cs" />
     123    <Compile Include="robocode\Interpreter.cs" />
     124    <Compile Include="robocode\Problem.cs" />
     125    <Compile Include="robocode\Solution.cs" />
     126    <Compile Include="robocode\Symbols\BooleanTreeNode.cs" />
     127    <Compile Include="robocode\Symbols\BooleanValue.cs" />
     128    <Compile Include="robocode\Symbols\CodeSymbol.cs" />
     129    <Compile Include="robocode\Symbols\Number.cs" />
     130    <Compile Include="robocode\Symbols\NumberTreeNode.cs" />
     131    <Compile Include="robocode\Symbols\ShotPower.cs" />
     132    <Compile Include="robocode\Symbols\ShotPowerTreeNode.cs" />
    119133  </ItemGroup>
    120134  <ItemGroup>
     
    122136    <None Include="Plugin.cs.frame" />
    123137    <None Include="Properties\AssemblyInfo.cs.frame" />
     138    <None Include="robocode\BattleObserver.class">
     139      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     140    </None>
     141    <None Include="robocode\BattleRunner.class">
     142      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     143    </None>
     144    <None Include="robocode\robocode.zip">
     145      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     146    </None>
    124147  </ItemGroup>
    125148  <ItemGroup>
     
    211234      <Install>true</Install>
    212235    </BootstrapperPackage>
     236  </ItemGroup>
     237  <ItemGroup>
     238    <Content Include="robocode\BattleRunner.java" />
    213239  </ItemGroup>
    214240  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3/Plugin.cs.frame

    r12936 r13210  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Text;
     23using System.IO;
     24using System.IO.Compression;
     25using System.Linq;
    2526using HeuristicLab.PluginInfrastructure;
    2627
     
    2829  [Plugin("HeuristicLab.Problems.GeneticProgramming","Provides implementations for genetic programming problems such as the artificial ant problem.", "3.3.0.$WCREV$")]
    2930  [PluginFile("HeuristicLab.Problems.GeneticProgramming-3.3.dll", PluginFileType.Assembly)]
     31  [PluginFile("Robocode/robocode.zip", PluginFileType.Data)]
     32  [PluginFile("Robocode/BattleRunner.class", PluginFileType.Data)]
     33  [PluginFile("Robocode/BattleObserver.class", PluginFileType.Data)]
    3034  [PluginDependency("HeuristicLab.Collections", "3.3")]
    3135  [PluginDependency("HeuristicLab.Common", "3.3")]
     
    4145  [PluginDependency("HeuristicLab.Random", "3.3")]
    4246  public class HeuristicLabProblemsGeneticProgrammingPlugin : PluginBase {
     47    public override void OnLoad() {
     48        base.OnLoad();
     49        if (!Directory.EnumerateDirectories(AppDomain.CurrentDomain.BaseDirectory, Path.Combine("Robocode", "libs"), SearchOption.TopDirectoryOnly).Any()) {
     50          ZipFile.ExtractToDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Path.Combine("Robocode", "robocode.zip")), AppDomain.CurrentDomain.BaseDirectory);
     51        }
     52      }
    4353  }
    4454}
Note: See TracChangeset for help on using the changeset viewer.