Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/15/15 16:39:12 (9 years ago)
Author:
gkronber
Message:

#2069: reviewing and minor changes

Location:
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Expressions/Numerical Operators
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Expressions/Numerical Operators/Addition.cs

    r13011 r13013  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Problems.GeneticProgramming.RoboCode {
     29namespace HeuristicLab.Problems.GeneticProgramming.Robocode {
    3030  [StorableClass]
    3131  public class Addition : CodeNode, INumericalOperator {
     
    5555    public override string Interpret(ISymbolicExpressionTreeNode node, IEnumerable<ISymbolicExpressionTreeNode> children) {
    5656      if (children.Count() < 2)
    57         throw new ArgumentException("Expected at leaset 2 children.", "children");
     57        throw new ArgumentException("Expected at least two children.", "children");
    5858
    5959      string result = string.Join(" + ", children.Select(c => ((CodeNode)c.Symbol).Interpret(c, c.Subtrees)));
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Expressions/Numerical Operators/Division.cs

    r13011 r13013  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Problems.GeneticProgramming.RoboCode {
     29namespace HeuristicLab.Problems.GeneticProgramming.Robocode {
    3030  [StorableClass]
    3131  public class Division : CodeNode, INumericalOperator {
     
    5555    public override string Interpret(ISymbolicExpressionTreeNode node, IEnumerable<ISymbolicExpressionTreeNode> children) {
    5656      if (children.Count() < 2)
    57         throw new ArgumentException("Expected at leaset 2 children.", "children");
     57        throw new ArgumentException("Expected at least two children.", "children");
    5858
    5959      string result = string.Join(" / ", children.Select(c => ((CodeNode)c.Symbol).Interpret(c, c.Subtrees)));
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Expressions/Numerical Operators/INumericalOperator.cs

    r13011 r13013  
    2020#endregion
    2121
    22 namespace HeuristicLab.Problems.GeneticProgramming.RoboCode {
     22namespace HeuristicLab.Problems.GeneticProgramming.Robocode {
    2323  public interface INumericalOperator { }
    2424}
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Expressions/Numerical Operators/Modulus.cs

    r13011 r13013  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Problems.GeneticProgramming.RoboCode {
     29namespace HeuristicLab.Problems.GeneticProgramming.Robocode {
    3030  [StorableClass]
    3131  public class Modulus : CodeNode, INumericalOperator {
     
    5555    public override string Interpret(ISymbolicExpressionTreeNode node, IEnumerable<ISymbolicExpressionTreeNode> children) {
    5656      if (children.Count() < 2)
    57         throw new ArgumentException("Expected at leaset 2 children.", "children");
     57        throw new ArgumentException("Expected at least two children.", "children");
    5858
    5959      string result = string.Join(" % ", children.Select(c => ((CodeNode)c.Symbol).Interpret(c, c.Subtrees)));
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Expressions/Numerical Operators/Multiplication.cs

    r13011 r13013  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Problems.GeneticProgramming.RoboCode {
     29namespace HeuristicLab.Problems.GeneticProgramming.Robocode {
    3030  [StorableClass]
    3131  public class Multiplication : CodeNode, INumericalOperator {
     
    5555    public override string Interpret(ISymbolicExpressionTreeNode node, IEnumerable<ISymbolicExpressionTreeNode> children) {
    5656      if (children.Count() < 2)
    57         throw new ArgumentException("Expected at leaset 2 children.", "children");
     57        throw new ArgumentException("Expected at least two children.", "children");
    5858
    5959      string result = string.Join(" * ", children.Select(c => ((CodeNode)c.Symbol).Interpret(c, c.Subtrees)));
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Expressions/Numerical Operators/Subtraction.cs

    r13011 r13013  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Problems.GeneticProgramming.RoboCode {
     29namespace HeuristicLab.Problems.GeneticProgramming.Robocode {
    3030  [StorableClass]
    3131  public class Subtraction : CodeNode, INumericalOperator {
     
    5555    public override string Interpret(ISymbolicExpressionTreeNode node, IEnumerable<ISymbolicExpressionTreeNode> children) {
    5656      if (children.Count() < 2)
    57         throw new ArgumentException("Expected at leaset 2 children.", "children");
     57        throw new ArgumentException("Expected at least two children.", "children");
    5858
    5959      string result = string.Join(" - ", children.Select(c => ((CodeNode)c.Symbol).Interpret(c, c.Subtrees)));
Note: See TracChangeset for help on using the changeset viewer.