Changeset 5688
- Timestamp:
- 03/15/11 14:35:05 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring
- Files:
-
- 9 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.4.csproj
r5513 r5688 109 109 </ItemGroup> 110 110 <ItemGroup> 111 <Compile Include="SymbolicExpression TreeGrammarView.cs">112 <SubType>UserControl</SubType> 113 </Compile> 114 <Compile Include="SymbolicExpression TreeGrammarView.Designer.cs">115 <DependentUpon>SymbolicExpression TreeGrammarView.cs</DependentUpon>111 <Compile Include="SymbolicExpressionGrammarView.cs"> 112 <SubType>UserControl</SubType> 113 </Compile> 114 <Compile Include="SymbolicExpressionGrammarView.Designer.cs"> 115 <DependentUpon>SymbolicExpressionGrammarView.cs</DependentUpon> 116 116 </Compile> 117 117 <Compile Include="SymbolView.cs"> -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarView.Designer.cs
r5685 r5688 21 21 22 22 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { 23 partial class SymbolicExpression TreeGrammarView {23 partial class SymbolicExpressionGrammarView { 24 24 /// <summary> 25 25 /// Required designer variable. … … 50 50 | System.Windows.Forms.AnchorStyles.Left) 51 51 | System.Windows.Forms.AnchorStyles.Right))); 52 this.checkedItemListView.Location = new System.Drawing.Point( 3, 3);52 this.checkedItemListView.Location = new System.Drawing.Point(0, 52); 53 53 this.checkedItemListView.Name = "itemListView"; 54 this.checkedItemListView.Size = new System.Drawing.Size( 274, 239);54 this.checkedItemListView.Size = new System.Drawing.Size(351, 190); 55 55 this.checkedItemListView.TabIndex = 0; 56 // 56 // 57 57 // DefaultSymbolicExpressionGrammarView 58 58 // … … 61 61 this.Controls.Add(this.checkedItemListView); 62 62 this.Name = "DefaultSymbolicExpressionGrammarView"; 63 this.Size = new System.Drawing.Size( 280, 245);63 this.Size = new System.Drawing.Size(351, 245); 64 64 this.ResumeLayout(false); 65 65 -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarView.cs
r5686 r5688 30 30 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { 31 31 [View("Symbolic Expression Grammar View")] 32 [Content(typeof(ISymbolicExpression TreeGrammar), true)]33 public partial class SymbolicExpression TreeGrammarView :ItemView {32 [Content(typeof(ISymbolicExpressionGrammar), true)] 33 public partial class SymbolicExpressionGrammarView : NamedItemView { 34 34 private CheckedItemList<ISymbol> symbols; 35 35 36 public new ISymbolicExpression TreeGrammar Content {37 get { return (ISymbolicExpression TreeGrammar)base.Content; }36 public new ISymbolicExpressionGrammar Content { 37 get { return (ISymbolicExpressionGrammar)base.Content; } 38 38 set { base.Content = value; } 39 39 } 40 40 41 public SymbolicExpression TreeGrammarView() {41 public SymbolicExpressionGrammarView() { 42 42 InitializeComponent(); 43 43 symbols = new CheckedItemList<ISymbol>(); -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammar.cs
r5686 r5688 100 100 } 101 101 102 public SymbolicExpressionGrammar( )103 : base( ) {102 public SymbolicExpressionGrammar(string name, string description) 103 : base(name, description) { 104 104 programRootSymbol = new ProgramRootSymbol(); 105 105 AddSymbol(programRootSymbol); -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammarBase.cs
r5686 r5688 47 47 protected Dictionary<Tuple<string, int>, List<string>> allowedChildSymbolsPerIndex; 48 48 49 public override bool CanChangeName { 50 get { return false; } 51 } 52 public override bool CanChangeDescription { 53 get { return false; } 54 } 55 49 56 [StorableConstructor] 50 57 protected SymbolicExpressionGrammarBase(bool deserializing) … … 72 79 } 73 80 74 protected SymbolicExpressionGrammarBase( )75 : base( ) {81 protected SymbolicExpressionGrammarBase(string name, string description) 82 : base(name, description) { 76 83 cachedMinExpressionLength = new Dictionary<string, int>(); 77 84 cachedMaxExpressionLength = new Dictionary<string, int>(); -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeGrammar.cs
r5686 r5688 41 41 private ISymbolicExpressionGrammar grammar; 42 42 public SymbolicExpressionTreeGrammar(ISymbolicExpressionGrammar grammar) 43 : base( ) {43 : base("SymbolicExpressionTreeGrammar", "A grammar that is used held by symbolic expression trees and allows extensions to the wraped grammar.") { 44 44 if (grammar == null) throw new ArgumentNullException(); 45 45 this.grammar = grammar; -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/Grammars.cs
r5686 r5688 97 97 protected SimpleArithmeticGrammar(SimpleArithmeticGrammar original, Cloner cloner) : base(original, cloner) { } 98 98 public SimpleArithmeticGrammar() 99 : base( ) {99 : base("Grammar for unit tests","") { 100 100 Initialize(); 101 101 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.ArtificialAnt/3.4/ArtificialAntExpressionGrammar.cs
r5686 r5688 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Common; 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 28 29 namespace HeuristicLab.Problems.ArtificialAnt { 29 30 [StorableClass] 31 [Item(Name = "ArtificialAntExpressionGrammar", Description = "The default grammar for an artificial ant problem.")] 30 32 public class ArtificialAntExpressionGrammar : SymbolicExpressionGrammar { 31 33 32 34 public ArtificialAntExpressionGrammar() 33 : base( ) {35 : base(ItemAttribute.GetName(typeof(ArtificialAntExpressionGrammar)), ItemAttribute.GetDescription(typeof(ArtificialAntExpressionGrammar))) { 34 36 Initialize(); 35 37 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/ArithmeticExpressionGrammar.cs
r5686 r5688 35 35 protected ArithmeticExpressionGrammar(ArithmeticExpressionGrammar original, Cloner cloner) : base(original, cloner) { } 36 36 public ArithmeticExpressionGrammar() 37 : base( ) {37 : base(ItemAttribute.GetName(typeof(ArithmeticExpressionGrammar)), ItemAttribute.GetDescription(typeof(ArithmeticExpressionGrammar))) { 38 38 Initialize(); 39 39 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/FullFunctionalExpressionGrammar.cs
r5686 r5688 35 35 protected FullFunctionalExpressionGrammar(FullFunctionalExpressionGrammar original, Cloner cloner) : base(original, cloner) { } 36 36 public FullFunctionalExpressionGrammar() 37 : base( ) {37 : base(ItemAttribute.GetName(typeof(FullFunctionalExpressionGrammar)), ItemAttribute.GetDescription(typeof(FullFunctionalExpressionGrammar))) { 38 38 Initialize(); 39 39 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentExpressionGrammar.cs
r5686 r5688 35 35 protected TypeCoherentExpressionGrammar(TypeCoherentExpressionGrammar original, Cloner cloner) : base(original, cloner) { } 36 36 public TypeCoherentExpressionGrammar() 37 : base( ) {37 : base(ItemAttribute.GetName(typeof(TypeCoherentExpressionGrammar)), ItemAttribute.GetDescription(typeof(TypeCoherentExpressionGrammar))) { 38 38 Initialize(); 39 39 }
Note: See TracChangeset
for help on using the changeset viewer.