Changeset 10011 for branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Logical Expressions/LogicalValue.cs
- Timestamp:
- 10/01/13 12:08:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Logical Expressions/LogicalValue.cs
r9790 r10011 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 37 38 38 39 [StorableConstructor] 39 private LogicalValue(bool deserializing) : base(deserializing) { } 40 private LogicalValue(LogicalValue original, Cloner cloner) 41 : base(original, cloner) { 42 } 40 protected LogicalValue(bool deserializing) : base(deserializing) { } 41 protected LogicalValue(LogicalValue original, Cloner cloner) : base(original, cloner) { } 43 42 44 public LogicalValue() 45 : base("LogicalValue", "A LogicalValue.") { 46 this.Prefix = ""; 47 this.Suffix = ""; 48 } 43 public LogicalValue() : base("LogicalValue", "A logical value.") { } 49 44 50 45 public override ISymbolicExpressionTreeNode CreateTreeNode() { 51 52 46 return new BooleanTreeNode(); 53 47 } … … 57 51 } 58 52 59 public override string Interpret(ISymbolicExpressionTreeNode node, System.Collections.Generic.IEnumerable<ISymbolicExpressionTreeNode> children) {60 return " " + ((BooleanTreeNode)node).Value.ToString().ToLower() + " ";53 public override string Interpret(ISymbolicExpressionTreeNode node, IEnumerable<ISymbolicExpressionTreeNode> children) { 54 return ((BooleanTreeNode)node).Value.ToString().ToLower(); 61 55 } 62 56 }
Note: See TracChangeset
for help on using the changeset viewer.