Changeset 9790 for branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Abandoned/Independent.cs
- Timestamp:
- 07/26/13 15:13:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Abandoned/Independent.cs
r9565 r9790 1 using HeuristicLab.Common; 2 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 3 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 4 21 5 namespace HeuristicLab.Problems.Robocode6 {7 /*[StorableClass]8 public class Independent : Symbol9 {10 public override int MinimumArity { get { return 0; } }11 public override int MaximumArity { get { return 0; } }12 22 13 [StorableConstructor] 14 private Independent(bool deserializing) : base(deserializing) { }15 private Independent(Independent original, Cloner cloner)16 : base(original, cloner)17 {18 23 namespace HeuristicLab.Problems.Robocode { 24 /*[StorableClass] 25 public class Independent : Symbol 26 { 27 public override int MinimumArity { get { return 0; } } 28 public override int MaximumArity { get { return 0; } } 19 29 20 public Independent() 21 : base("Independent", "A random fixed integer.") 22 { 23 } 30 [StorableConstructor] 31 private Independent(bool deserializing) : base(deserializing) { } 32 private Independent(Independent original, Cloner cloner) 33 : base(original, cloner) 34 { 35 } 24 36 25 public override ISymbolicExpressionTreeNode CreateTreeNode() 26 { 27 return new BooleanTreeNode(); 28 } 29 public override IDeepCloneable Clone(Cloner cloner) 30 { 31 return new Independent(this, cloner); 32 } 33 }*/ 37 public Independent() 38 : base("Independent", "A random fixed integer.") 39 { 40 } 41 42 public override ISymbolicExpressionTreeNode CreateTreeNode() 43 { 44 return new BooleanTreeNode(); 45 } 46 public override IDeepCloneable Clone(Cloner cloner) 47 { 48 return new Independent(this, cloner); 49 } 50 }*/ 34 51 }
Note: See TracChangeset
for help on using the changeset viewer.