Free cookie consent management tool by TermsFeed Policy Generator

source: branches/sluengo/HeuristicLab.Problems.TradeRules/Symbols/AverageTrade.cs @ 16674

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