Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/10 17:06:45 (14 years ago)
Author:
swinkler
Message:

Worked on symbolic expression tree formatters: Added interface, founded new project for formatters. (#1270)

Location:
branches/SmalltalkExport/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • branches/SmalltalkExport/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.csproj

    r4804 r4820  
    160160    <Compile Include="Compiler\Instruction.cs" />
    161161    <Compile Include="Compiler\SymbolicExpressionTreeCompiler.cs" />
     162    <Compile Include="Interfaces\ISymbolicExpressionTreeStringFormatter.cs" />
    162163    <Compile Include="Creators\SymbolicExpressionTreeCreator.cs" />
    163164    <Compile Include="Crossovers\CrossoverPoint.cs" />
     
    227228    </BootstrapperPackage>
    228229  </ItemGroup>
    229   <ItemGroup>
    230     <WCFMetadata Include="Service References\" />
    231   </ItemGroup>
    232230  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    233231  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • branches/SmalltalkExport/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/HeuristicLabEncodingsSymbolicExpressionTreeEncodingPlugin.cs

    r4803 r4820  
    2626
    2727namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    28   [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.3.1.0")]
     28  [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.3.1.4804")]
    2929  [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.dll", PluginFileType.Assembly)]
    3030  [PluginDependency("HeuristicLab.Analysis", "3.3.1.0")]
  • branches/SmalltalkExport/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Properties/AssemblyInfo.cs

    r4803 r4820  
    4545
    4646[assembly: AssemblyVersion("3.3.0.0")]
    47 [assembly: AssemblyFileVersion("3.3.1.0")]
     47[assembly: AssemblyFileVersion("3.3.1.4804")]
  • branches/SmalltalkExport/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeStringFormatter.cs

    r4803 r4820  
    2121
    2222using System.Text;
     23using HeuristicLab.Core;
     24using HeuristicLab.Common;
     25using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2326
    2427namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    25  
    26   public class SymbolicExpressionTreeStringFormatter {
    27    
     28
     29  [Item("SymbolicExpressionTreeStringFormatter", "The default string formatter for symbolic expression trees.")]
     30  [StorableClass]
     31  public class SymbolicExpressionTreeStringFormatter : NamedItem, ISymbolicExpressionTreeStringFormatter {
     32
    2833    public bool Indent { get; set; }
    29    
     34
     35    [StorableConstructor]
     36    protected SymbolicExpressionTreeStringFormatter(bool deserializing) : base(deserializing) { }
     37    protected SymbolicExpressionTreeStringFormatter(SymbolicExpressionTreeStringFormatter original, Cloner cloner) : base(original, cloner) { }
    3038    public SymbolicExpressionTreeStringFormatter()
    3139      : base() {
     
    5967      return strBuilder.ToString();
    6068    }
     69
     70    public override IDeepCloneable Clone(Cloner cloner) {
     71      return new SymbolicExpressionTreeStringFormatter(this, cloner);
     72    }
     73
    6174  }
     75
    6276}
Note: See TracChangeset for help on using the changeset viewer.