Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PersistenceSpeedUp/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/LaggedSymbol.cs @ 6406

Last change on this file since 6406 was 5809, checked in by mkommend, 14 years ago

#1418: Reintegrated branch into trunk.

File size: 1.3 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
4using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5
6namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
7  [StorableClass]
8  [Item("LaggedSymbol", "Represents a symblol whose evaluation is shifted.")]
9  public abstract class LaggedSymbol : Symbol {
10    [Storable]
11    private int minLag;
12    public virtual int MinLag {
13      get { return minLag; }
14      set { minLag = value; }
15    }
16    [Storable]
17    private int maxLag;
18    public virtual int MaxLag {
19      get { return maxLag; }
20      set { maxLag = value; }
21    }
22
23    [StorableConstructor]
24    protected LaggedSymbol(bool deserializing) : base(deserializing) { }
25    protected LaggedSymbol(LaggedSymbol original, Cloner cloner)
26      : base(original, cloner) {
27      minLag = original.minLag;
28      maxLag = original.maxLag;
29    }
30    protected LaggedSymbol()
31      : base("LaggedSymbol", "Represents a symbol whose evaluation is shifted.") {
32      minLag = -1; maxLag = -1;
33    }
34    protected LaggedSymbol(string name, string description)
35      : base(name, description) {
36      minLag = -1; maxLag = -1;
37    }
38
39    public override ISymbolicExpressionTreeNode CreateTreeNode() {
40      return new LaggedTreeNode(this);
41    }
42  }
43}
Note: See TracBrowser for help on using the repository browser.