Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Core;
|
---|
4 | using HeuristicLab.Data;
|
---|
5 | using System.Collections.Generic;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Problems.MetaOptimization {
|
---|
8 | public interface IRange : IItem, IStringConvertibleValue {
|
---|
9 | object LowerBound { get; set; }
|
---|
10 | object UpperBound { get; set; }
|
---|
11 | object StepSize { get; set; }
|
---|
12 |
|
---|
13 | event EventHandler LowerBoundChanged;
|
---|
14 | event EventHandler UpperBoundChanged;
|
---|
15 | event EventHandler StepSizeChanged;
|
---|
16 |
|
---|
17 | IItem GetRandomValue(IRandom random);
|
---|
18 |
|
---|
19 | IEnumerable<IItem> GetCombinations();
|
---|
20 |
|
---|
21 | double CalculateSimilarity(IItem a, IItem b);
|
---|
22 | }
|
---|
23 |
|
---|
24 | public interface IRange<T> : IRange, IItem where T : class {
|
---|
25 | new T LowerBound { get; set; }
|
---|
26 | new T UpperBound { get; set; }
|
---|
27 | new T StepSize { get; set; }
|
---|
28 | new T GetRandomValue(IRandom random);
|
---|
29 | new IEnumerable<T> GetCombinations();
|
---|
30 | }
|
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.