Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/ResultCollectionProcessors/RunCollectionSRSolutionPythonFormatter.cs @ 18055

Last change on this file since 18055 was 18055, checked in by dpiringe, 3 years ago

#3026

  • added StorableTypeAttribute and StorableConstructorAttribute to all JsonItems
  • added a new JsonItem ListJsonItem + Interfaces IListJsonItem
  • renamed SymRegPythonProcessor to RunCollectionSRSolutionPythonFormatter
  • removed Interface IResultCollectionProcessor -> using the interface IRunCollectionModifier now (has aleady implementations)
  • renamed all related variables/fields/properties with a connection to ResultCollectionProcessor
  • added new implementations for IRunCollectionModifier
File size: 1.1 KB
RevLine 
[18055]1using HeuristicLab.Common;
[18046]2using HeuristicLab.Problems.DataAnalysis.Symbolic;
3using HEAL.Attic;
[18055]4using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
5using HeuristicLab.Core;
[18046]6
7namespace HeuristicLab.JsonInterface {
[18055]8  [Item(Name = "RunCollection SymbolicRegressionSolution Python Formatter")]
[18046]9  [StorableType("844F2887-B7A0-4BD4-89B8-F9155C65D214")]
[18055]10  public class RunCollectionSRSolutionPythonFormatter : RunCollectionSRSolutionFormatter {
11    protected override ISymbolicExpressionTreeStringFormatter Formatter =>
12      new SymbolicDataAnalysisExpressionPythonFormatter();
[18046]13
[18050]14    #region Constructors & Cloning
[18046]15    [StorableConstructor]
[18055]16    protected RunCollectionSRSolutionPythonFormatter(StorableConstructorFlag _) : base(_) { }
17    public RunCollectionSRSolutionPythonFormatter() { Suffix = "Python"; }
18    public RunCollectionSRSolutionPythonFormatter(RunCollectionSRSolutionPythonFormatter original, Cloner cloner) : base(original, cloner) { }
[18050]19
20    public override IDeepCloneable Clone(Cloner cloner) {
[18055]21      return new RunCollectionSRSolutionPythonFormatter(this, cloner);
[18046]22    }
[18050]23    #endregion
[18046]24  }
25}
Note: See TracBrowser for help on using the repository browser.