Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
5 |
|
---|
6 | namespace 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.