Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Constants.cs @ 17435

Last change on this file since 17435 was 17435, checked in by dpiringe, 4 years ago

#3026:

  • set read-only to false for name input (in JsonItemBaseControl)
  • result items now can be selected/deselected in export dialog
  • removed metadata.problem property and renamed metadata.optimizer property to TemplateName in json template
  • fixed bug with wrong description for result items in AlgorithmConverter
  • refactored a lot of code in JCGenerator and added the need for a directory path (location for the template files)
  • fixed a null reference bug in JsonItemValidator (cannot try to iterate through possible null referenced collections)
File size: 820 bytes
RevLine 
[17287]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace HeuristicLab.JsonInterface {
[17353]8  /// <summary>
9  /// Constants for reading/writing templates.
10  /// </summary>
[17287]11  internal class Constants {
12
[17330]13    internal const string Metadata = "Metadata";
[17435]14    internal const string TemplateName = "TemplateName";
[17379]15    internal const string HLFileLocation = "HLFileLocation";
16    internal const string Parameters = "Parameters";
[17405]17    internal const string ActivatedResults = "ActivatedResults";
[17287]18
[17330]19    internal const string Template = @"{
[17379]20      '" + Metadata + @"': {
[17435]21        '" + TemplateName + @"':'',
[17379]22        '" + HLFileLocation + @"':''
[17287]23      },
[17405]24      '" + Parameters + @"': [],
25      '" + ActivatedResults + @"': []
[17287]26    }";
27  }
28}
Note: See TracBrowser for help on using the repository browser.