Last change
on this file since 17712 was
17519,
checked in by dpiringe, 5 years ago
|
#3026:
- added error output for failed runner initialization
- reorganised some final view models
- TargetedJsonItemType (in JsonItemVMBase) now automatically returns the type of the defined JsonItem
- code cleanup
- refactored RegressionProblemDataConverter
- added lots of comments
- added new view for StringArrayJsonItem
- added new UI component for concrete restricted items and used it in JsonItemConcreteItemArrayControl and JsonItemValidValuesControl
|
File size:
1.1 KB
|
Rev | Line | |
---|
[17263] | 1 | using System;
|
---|
| 2 | using HeuristicLab.Core;
|
---|
| 3 |
|
---|
[17284] | 4 | namespace HeuristicLab.JsonInterface {
|
---|
[17281] | 5 | public interface IJsonItemConverter {
|
---|
[17280] | 6 | /// <summary>
|
---|
[17353] | 7 | /// Injects the saved infos from the JsonItem into the IItem.
|
---|
| 8 | /// (Sets the necessary values.)
|
---|
| 9 | /// </summary>
|
---|
| 10 | /// <param name="item">The IItem which get the data injected.</param>
|
---|
| 11 | /// <param name="data">The JsonItem with the saved values.</param>
|
---|
[17406] | 12 | void Inject(IItem item, IJsonItem data, IJsonItemConverter root);
|
---|
[17353] | 13 |
|
---|
| 14 | /// <summary>
|
---|
[17283] | 15 | /// Extracts all infos out of an IItem to create a JsonItem.
|
---|
[17280] | 16 | /// (For template generation.)
|
---|
| 17 | /// </summary>
|
---|
| 18 | /// <param name="value">The IItem to extract infos.</param>
|
---|
[17283] | 19 | /// <returns>JsonItem with infos to reinitialise the IItem.</returns>
|
---|
[17406] | 20 | IJsonItem Extract(IItem value, IJsonItemConverter root);
|
---|
[17394] | 21 |
|
---|
[17519] | 22 | /// <summary>
|
---|
| 23 | /// The targeted type for the converter.
|
---|
| 24 | /// </summary>
|
---|
[17394] | 25 | Type ConvertableType { get; }
|
---|
[17519] | 26 |
|
---|
| 27 | /// <summary>
|
---|
| 28 | /// A given priority, higher numbers are prior.
|
---|
| 29 | /// </summary>
|
---|
[17394] | 30 | int Priority { get; }
|
---|
[17263] | 31 | }
|
---|
| 32 | }
|
---|
[17266] | 33 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.