Last change
on this file since 17454 was
17439,
checked in by dpiringe, 5 years ago
|
#3026:
- fixed a bug in HeuristicLab.JsonInterface.App -> now the Runner checks if the instantiated optimizer is an EngineAlgorithm, if true: Engine = SequentialEngine (engine can be configured in later versions)
- added a TabControl in ExportJsonDialog for parameters and results
- updated parameter tree view with checkboxes (and linked them with VM)
- renamed ActivatedResults to Results for templates
- fixed a bug with injection of operators in MultiCheckedOperatorConverter -> now operators of an ValueParameter get set correctly
- updated MultiCheckedOperatorConverter to extract/inject parameters of operators
- fixed bug with path for template -> removed usage of method Path.GetDirectoryName, returned wrong results
- splitted cache for JsonItemConverter into a cache for injection and extraction
- JsonTemplateInstantiator now uses first item in objects array instead of searching for an object with template name
|
File size:
793 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 Results = "Results";
|
---|
18 |
|
---|
19 | internal const string Template = @"{
|
---|
20 | '" + Metadata + @"': {
|
---|
21 | '" + TemplateName + @"':'',
|
---|
22 | '" + HLFileLocation + @"':''
|
---|
23 | },
|
---|
24 | '" + Parameters + @"': [],
|
---|
25 | '" + Results + @"': []
|
---|
26 | }";
|
---|
27 | }
|
---|
28 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.