Free cookie consent management tool by TermsFeed Policy Generator

source: branches/sluengo/HeuristicLab.Problems.TradeRules/Symbols/Min.cs @ 13847

Last change on this file since 13847 was 9262, checked in by sluengo, 12 years ago
File size: 1.0 KB
RevLine 
[9262]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
6using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
7using HeuristicLab.Common;
8
9namespace HeuristicLab.Problems.TradeRules
10{
11    class Min : Symbol
12    {
13        private const int minimumArity = 1;
14        private const int maximumArity = 1;
15
16        public override int MinimumArity
17        {
18            get { return minimumArity; }
19        }
20        public override int MaximumArity
21        {
22            get { return maximumArity; }
23        }
24
25        [StorableConstructor]
26        private Min(bool deserializing) : base(deserializing) { }
27        private Min(Min original, Cloner cloner) : base(original, cloner) { }
28        public override IDeepCloneable Clone(Cloner cloner)
29        {
30            return new Min(this, cloner);
31        }
32        public Min() : base("Min", "Symbol that represents the Min value in a time") { }
33    }
34}
Note: See TracBrowser for help on using the repository browser.