Last change
on this file since 14777 was
14777,
checked in by pkimmesw, 7 years ago
|
#2665 simplifier, push solution results view, performance improvements, small bug fixes, ui fixes
|
File size:
873 bytes
|
Line | |
---|
1 | namespace HeuristicLab.BenchmarkSuite.ERC {
|
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
4 |
|
---|
5 | [StorableClass]
|
---|
6 | public class ErcOptionRange<T> : ErcOption<T>
|
---|
7 | where T : class, IDeepCloneable {
|
---|
8 | public ErcOptionRange(T start, T end, params T[] constants) : base(constants) {
|
---|
9 | Start = start;
|
---|
10 | End = end;
|
---|
11 | }
|
---|
12 |
|
---|
13 | [StorableConstructor]
|
---|
14 | public ErcOptionRange(bool deserializing) : base(deserializing) { }
|
---|
15 |
|
---|
16 | public ErcOptionRange(ErcOptionRange<T> origin, Cloner cloner) : base(origin, cloner) {
|
---|
17 | Start = cloner.Clone(origin.Start);
|
---|
18 | End = cloner.Clone(origin.End);
|
---|
19 | }
|
---|
20 |
|
---|
21 | public T Start { get; set; }
|
---|
22 | public T End { get; set; }
|
---|
23 |
|
---|
24 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
25 | return new ErcOptionRange<T>(this, cloner);
|
---|
26 | }
|
---|
27 | }
|
---|
28 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.