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
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 |
|
---|
7 | namespace 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 TemplateName = "TemplateName";
|
---|
15 | internal const string HLFileLocation = "HLFileLocation";
|
---|
16 | internal const string Parameters = "Parameters";
|
---|
17 | internal const string ActivatedResults = "ActivatedResults";
|
---|
18 |
|
---|
19 | internal const string Template = @"{
|
---|
20 | '" + Metadata + @"': {
|
---|
21 | '" + TemplateName + @"':'',
|
---|
22 | '" + HLFileLocation + @"':''
|
---|
23 | },
|
---|
24 | '" + Parameters + @"': [],
|
---|
25 | '" + ActivatedResults + @"': []
|
---|
26 | }";
|
---|
27 | }
|
---|
28 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.