Last change
on this file since 18040 was
17843,
checked in by dpiringe, 4 years ago
|
#3026
- removed property ConvertableType from all converters
- removed the option to fixate or loosen the path of JsonItems (obsolete)
- added a abstract formatter SymbolicRegressionSolutionFormatterBase as base formatter for ISymbolicRegressionSolution
- unified the construction of exporter controls
- code cleanup
|
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 | /// A given priority, higher numbers are prior.
|
---|
| 24 | /// </summary>
|
---|
[17394] | 25 | int Priority { get; }
|
---|
[17828] | 26 |
|
---|
| 27 | /// <summary>
|
---|
| 28 | /// Checks if the given type can be converted.
|
---|
| 29 | /// </summary>
|
---|
| 30 | /// <param name="t"></param>
|
---|
| 31 | /// <returns></returns>
|
---|
| 32 | bool CanConvertType(Type t);
|
---|
[17263] | 33 | }
|
---|
| 34 | }
|
---|
[17266] | 35 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.