Last change
on this file since 17473 was
17473,
checked in by dpiringe, 4 years ago
|
#3026:
- refactored inheritance structure of json items, now the default JsonItem is an abstract class without properties Value and Range -> splitted up into new interfaces
- updated view models for new json item structure
- updated SingleLineArrayJsonWriter
|
File size:
790 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 class DoubleJsonItem : IntervalRestrictedValueJsonItem<double> { }
|
---|
9 | public class DoubleArrayJsonItem : IntervalRestrictedArrayJsonItem<double> { }
|
---|
10 | public class DoubleRangeJsonItem : RangedJsonItem<double> { }
|
---|
11 |
|
---|
12 | public class DoubleMatrixJsonItem : IntervalRestrictedMatrixJsonItem<double> {
|
---|
13 | /*
|
---|
14 | protected override bool IsInRange() {
|
---|
15 | for (int c = 0; c < Value.Length; ++c) {
|
---|
16 | for (int r = 0; r < Value[c].Length; ++r) {
|
---|
17 | if (Value[c][r] < Range.First() && Range.Last() < Value[c][r])
|
---|
18 | return false;
|
---|
19 | }
|
---|
20 | }
|
---|
21 | return true;
|
---|
22 | }
|
---|
23 | */
|
---|
24 | }
|
---|
25 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.