Last change
on this file since 17511 was
17477,
checked in by dpiringe, 5 years ago
|
#3026:
- refactored JsonTemplateInstantiator -> now returns a InstantiatorResult which contains the optimizer and an IEnumerable of IResultJsonItem
- code cleanup in JCGenerator
- relocated the serialization of json items into IJsonItem with method GenerateJObject (virtual base implementation in JsonItem)
- this allows custom serialization for json items (example: ValueLookupJsonItem)
- items of interface IIntervalRestrictedJsonItem have a custom implementation of GenerateJObject -> hides Minimum and Maximum if the values are the physically min/max of their type
- code cleanup in BaseConverter
|
File size:
324 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 | public interface IIntervalRestrictedJsonItem<T> : IJsonItem
|
---|
9 | where T : IComparable {
|
---|
10 | T Minimum { get; set; }
|
---|
11 | T Maximum { get; set; }
|
---|
12 | }
|
---|
13 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.