Rev | Line | |
---|
[9262] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using HeuristicLab.Common;
|
---|
| 6 | using HeuristicLab.Core;
|
---|
| 7 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
| 8 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
| 9 |
|
---|
| 10 | namespace HeuristicLab.Problems.TradeRules
|
---|
| 11 | {
|
---|
| 12 | [StorableClass]
|
---|
| 13 | [Item("ConstantInt", "Represents a ConstantInt value.")]
|
---|
| 14 | public sealed class ConstantInt : Symbol
|
---|
| 15 | {
|
---|
| 16 | private const int minimumArity = 0;
|
---|
| 17 | private const int maximumArity = 0;
|
---|
| 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 |
|
---|
| 29 | [StorableConstructor]
|
---|
| 30 | private ConstantInt(bool deserializing) : base(deserializing) { }
|
---|
| 31 | private ConstantInt(ConstantInt original, Cloner cloner)
|
---|
| 32 | : base(original, cloner)
|
---|
| 33 | {
|
---|
| 34 | }
|
---|
| 35 | public ConstantInt()
|
---|
| 36 | : base("ConstantInt", "Represents a ConstantInt value.")
|
---|
| 37 | {
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | public override ISymbolicExpressionTreeNode CreateTreeNode()
|
---|
| 41 | {
|
---|
| 42 | return new ConstantIntTreeNode(this);
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | public override IDeepCloneable Clone(Cloner cloner)
|
---|
| 46 | {
|
---|
| 47 | return new ConstantInt(this, cloner);
|
---|
| 48 | }
|
---|
| 49 | }
|
---|
| 50 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.