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

Last change on this file since 17379 was 17379, checked in by dpiringe, 2 months ago

#3026:

  • removed classes:
    • CheckedItemListConverter: unnecessary
    • ItemCollectionConverter: unnecessary
    • PrimitiveConverter: not possible to implement because it needs to Extract/Inject from/into objects (but interfaces pretends IItem)
    • StorableConverter: unnecessary
    • ConfigurableConverter: unnecessary
  • removed graphviz code in Heuristiclab.ConfigStarter/Program.cs
  • updated Constants
  • some simple code refactors in BaseConverter
  • in JsonItem:
    • renamed Parameters -> Children
    • removed Properties: Operators, Type, Reference, IsConfigurable, IsParameterizedItem
    • removed unnecessary/old code
  • implemented a new way to get data from an object, which is a matrix, in ValueTypeMatrixConverter method: CopyMatrixData
    • converts the object into an array -> rows: from array.Length, cols: when the length is > 0 pick length of first array of index 0 (it is saved as an array of arrays)
  • created a binding flag const in ValueRangeConverter to prevent duplicates in code
File size: 785 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace HeuristicLab.JsonInterface {
8  /// <summary>
9  /// Constants for reading/writing templates.
10  /// </summary>
11  internal class Constants {
12
13    internal const string Metadata = "Metadata";
14    internal const string Algorithm = "Algorithm";
15    internal const string Problem = "Problem";
16    internal const string HLFileLocation = "HLFileLocation";
17    internal const string Parameters = "Parameters";
18
19    internal const string Template = @"{
20      '" + Metadata + @"': {
21        '" + Algorithm + @"':'',
22        '" + Problem + @"':'',
23        '" + HLFileLocation + @"':''
24      },
25      '" + Parameters + @"': []
26    }";
27  }
28}
Note: See TracBrowser for help on using the repository browser.