Last change
on this file since 17368 was
17353,
checked in by dpiringe, 5 years ago
|
#3026:
- relocated GetMaxValue and GetMinValue from ValueTypeValueConverter into BaseConverter
- fixed a bug in ConstrainedValueParameterConverter (from GetType().Name to ToString())
- printing now PrettyNames for types
- added comments
- added StorableConverter.cs (not finished, maybe not a good converter)
- added ValueRangeConverter.cs for DoubleRange and IntRange
- added ParameterConverter.cs for default parameter conversion
|
File size:
831 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 Algorithm = "Algorithm";
|
---|
15 | internal const string Problem = "Problem";
|
---|
16 | internal const string Objects = "Objects";
|
---|
17 | internal const string Types = "Types";
|
---|
18 | internal const string StaticParameters = "StaticParameters";
|
---|
19 | internal const string FreeParameters = "FreeParameters";
|
---|
20 |
|
---|
21 | internal const string Template = @"{
|
---|
22 | 'Metadata': {
|
---|
23 | 'Algorithm':'',
|
---|
24 | 'Problem':''
|
---|
25 | },
|
---|
26 | 'Objects': [],
|
---|
27 | 'Types': {}
|
---|
28 | }";
|
---|
29 | }
|
---|
30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.