Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Interfaces/IJsonItemConverter.cs @ 17519

Last change on this file since 17519 was 17519, checked in by dpiringe, 4 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
Line 
1using System;
2using HeuristicLab.Core;
3
4namespace HeuristicLab.JsonInterface {
5  public interface IJsonItemConverter {
6    /// <summary>
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>
12    void Inject(IItem item, IJsonItem data, IJsonItemConverter root);
13
14    /// <summary>
15    /// Extracts all infos out of an IItem to create a JsonItem.
16    /// (For template generation.)
17    /// </summary>
18    /// <param name="value">The IItem to extract infos.</param>
19    /// <returns>JsonItem with infos to reinitialise the IItem.</returns>
20    IJsonItem Extract(IItem value, IJsonItemConverter root);
21
22    /// <summary>
23    /// The targeted type for the converter.
24    /// </summary>
25    Type ConvertableType { get; }
26
27    /// <summary>
28    /// A given priority, higher numbers are prior.
29    /// </summary>
30    int Priority { get; }
31  }
32}
33
Note: See TracBrowser for help on using the repository browser.