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("BoolConstant", "Represents a BoolConstant value.")]
|
---|
| 14 | public sealed class BoolConstant : 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 BoolConstant(bool deserializing) : base(deserializing) { }
|
---|
| 31 | private BoolConstant(BoolConstant original, Cloner cloner)
|
---|
| 32 | : base(original, cloner)
|
---|
| 33 | {
|
---|
| 34 | }
|
---|
| 35 | public BoolConstant()
|
---|
| 36 | : base("BoolConstant", "Represents a BoolConstant value.")
|
---|
| 37 | {
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | public override ISymbolicExpressionTreeNode CreateTreeNode()
|
---|
| 41 | {
|
---|
| 42 | return new BoolConstantTreeNode(this);
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | public override IDeepCloneable Clone(Cloner cloner)
|
---|
| 46 | {
|
---|
| 47 | return new BoolConstant(this, cloner);
|
---|
| 48 | }
|
---|
| 49 | }
|
---|
| 50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.