Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/30/09 19:41:58 (16 years ago)
Author:
gkronber
Message:

GP Refactoring #713

  • cleaned code
  • reintegrated GP.Boolean and GP.SantaFe
  • worked on serialization of function trees
Location:
branches/GP-Refactoring-713/sources/HeuristicLab.GP.SantaFe/3.3/Symbols
Files:
1 added
7 moved

Legend:

Unmodified
Added
Removed
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.SantaFe/3.3/Symbols/IfFoodAhead.cs

    r2211 r2216  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Core;
    27 using System.Xml;
    28 using HeuristicLab.Constraints;
    29 using HeuristicLab.DataAnalysis;
    30 using HeuristicLab.Random;
    31 
    3222namespace HeuristicLab.GP.SantaFe {
    33   public sealed class IfFoodAhead : FunctionBase {
    34 
    35     public override string Description {
    36       get { return ""; }
    37     }
    38 
    39     public IfFoodAhead()
    40       : base() {
    41       MinArity = 2; MaxArity = 2;
    42     }
     23  public sealed class IfFoodAhead : BinaryFunction {
    4324  }
    4425}
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.SantaFe/3.3/Symbols/Left.cs

    r2211 r2216  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Core;
    27 using System.Xml;
    28 using HeuristicLab.Constraints;
    29 using HeuristicLab.DataAnalysis;
    30 using HeuristicLab.Random;
    31 
    3222namespace HeuristicLab.GP.SantaFe {
    33   public sealed class Left : FunctionBase {
    34 
    35     public override string Description {
    36       get { return ""; }
    37     }
    38 
    39     public Left()
    40       : base() {
    41       MinArity = 0; MaxArity = 0;
    42     }
     23  public sealed class Left : Terminal {
    4324  }
    4425}
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.SantaFe/3.3/Symbols/Move.cs

    r2211 r2216  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Core;
    27 using System.Xml;
    28 using HeuristicLab.Constraints;
    29 using HeuristicLab.DataAnalysis;
    30 using HeuristicLab.Random;
    31 
    3222namespace HeuristicLab.GP.SantaFe {
    33   public sealed class Move : FunctionBase {
    34 
    35     public override string Description {
    36       get { return ""; }
    37     }
    38 
    39     public Move()
    40       : base() {
    41       MinArity = 0; MaxArity = 0;
    42     }
     23  public sealed class Move : Terminal {
    4324  }
    4425}
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.SantaFe/3.3/Symbols/Prog2.cs

    r2211 r2216  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Core;
    27 using System.Xml;
    28 using HeuristicLab.Constraints;
    29 using HeuristicLab.DataAnalysis;
    30 using HeuristicLab.Random;
    3122
    3223namespace HeuristicLab.GP.SantaFe {
    33   public sealed class Prog2 : FunctionBase {
    34 
    35     public override string Description {
    36       get { return ""; }
    37     }
    38 
    39     public Prog2()
    40       : base() {
    41       MinArity = 2; MaxArity = 2;
    42     }
     24  public sealed class Prog2 : BinaryFunction {
    4325  }
    4426}
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.SantaFe/3.3/Symbols/Prog3.cs

    r2211 r2216  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Core;
    27 using System.Xml;
    28 using HeuristicLab.Constraints;
    29 using HeuristicLab.DataAnalysis;
    30 using HeuristicLab.Random;
    31 
    3222namespace HeuristicLab.GP.SantaFe {
    3323  public sealed class Prog3 : FunctionBase {
    3424
    35     public override string Description {
    36       get { return ""; }
    37     }
    38 
    3925    public Prog3()
    4026      : base() {
    41       MinArity = 3; MaxArity = 3;
     27      MinSubTrees = 3; MaxSubTrees = 3;
    4228    }
    4329  }
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.SantaFe/3.3/Symbols/Right.cs

    r2211 r2216  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Core;
    27 using System.Xml;
    28 using HeuristicLab.Constraints;
    29 using HeuristicLab.DataAnalysis;
    30 using HeuristicLab.Random;
    31 
    3222namespace HeuristicLab.GP.SantaFe {
    33   public sealed class Right : FunctionBase {
    34     public override string Description {
    35       get { return ""; }
    36     }
    37 
    38     public Right()
    39       : base() {
    40       MinArity = 0; MaxArity = 0;
    41     }
     23  public sealed class Right : Terminal {
    4224  }
    4325}
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.SantaFe/3.3/Symbols/SymbolTable.cs

    r2211 r2216  
    2222using System;
    2323using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    2624using HeuristicLab.Core;
    27 using System.Xml;
     25using HeuristicLab.GP.Interfaces;
    2826
    2927namespace HeuristicLab.GP.SantaFe {
Note: See TracChangeset for help on using the changeset viewer.