Changeset 3824
- Timestamp:
- 05/17/10 15:55:45 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 10 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.3.csproj
r3797 r3824 82 82 </ItemGroup> 83 83 <ItemGroup> 84 <Compile Include="DefaultSymbolicExpressionGrammarView.cs"> 85 <SubType>UserControl</SubType> 86 </Compile> 87 <Compile Include="DefaultSymbolicExpressionGrammarView.Designer.cs"> 88 <DependentUpon>DefaultSymbolicExpressionGrammarView.cs</DependentUpon> 89 </Compile> 90 <Compile Include="SymbolView.cs"> 91 <SubType>UserControl</SubType> 92 </Compile> 93 <Compile Include="SymbolView.Designer.cs"> 94 <DependentUpon>SymbolView.cs</DependentUpon> 95 </Compile> 84 96 <Compile Include="GraphicalSymbolicExpressionTreeView.cs"> 85 97 <SubType>UserControl</SubType> … … 105 117 </ItemGroup> 106 118 <ItemGroup> 119 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj"> 120 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> 121 <Name>HeuristicLab.Collections-3.3</Name> 122 </ProjectReference> 107 123 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj"> 108 124 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project> … … 139 155 <None Include="Properties\AssemblyInfo.frame" /> 140 156 </ItemGroup> 157 <ItemGroup> 158 <EmbeddedResource Include="DefaultSymbolicExpressionGrammarView.resx"> 159 <DependentUpon>DefaultSymbolicExpressionGrammarView.cs</DependentUpon> 160 </EmbeddedResource> 161 <EmbeddedResource Include="SymbolView.resx"> 162 <DependentUpon>SymbolView.cs</DependentUpon> 163 </EmbeddedResource> 164 </ItemGroup> 141 165 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 142 166 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/HeuristicLabEncodingsSymbolicExpressionTreeEncodingViewsPlugin.cs.frame
r3437 r3824 28 28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views", "3.3.0.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.Collections", "3.3.0.0")] 30 31 [PluginDependency("HeuristicLab.Common", "3.3.0.0")] 31 32 [PluginDependency("HeuristicLab.Core", "3.3.0.0")] -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.csproj
r3817 r3824 128 128 <Compile Include="Symbols\Argument.cs" /> 129 129 <Compile Include="Symbols\ArgumentTreeNode.cs" /> 130 <Compile Include="Symbols\ReadOnlySymbol.cs" /> 130 131 <Compile Include="Symbols\StartSymbol.cs" /> 131 132 <Compile Include="Symbols\InvokeFunction.cs" /> -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Argument.cs
r3484 r3824 29 29 [StorableClass] 30 30 [Item("Argument", "Symbol that represents a function argument.")] 31 public sealed class Argument : Symbol { 32 public override bool CanChangeName { 33 get { 34 return false; 35 } 36 } 31 public sealed class Argument : ReadOnlySymbol { 37 32 [Storable] 38 33 private int argumentIndex; -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Defun.cs
r3462 r3824 29 29 [StorableClass] 30 30 [Item("Defun", "Symbol that represents a function defining node.")] 31 public sealed class Defun : Symbol { 32 public override bool CanChangeName { 33 get { 34 return false; 35 } 36 } 37 31 public sealed class Defun : ReadOnlySymbol { 38 32 public override SymbolicExpressionTreeNode CreateTreeNode() { 39 33 return new DefunTreeNode(this); -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/InvokeFunction.cs
r3484 r3824 30 30 [StorableClass] 31 31 [Item("InvokeFunction", "Symbol that the invokation of another function.")] 32 public sealed class InvokeFunction : Symbol {32 public sealed class InvokeFunction : ReadOnlySymbol { 33 33 public override bool CanChangeName { 34 34 get { -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/ProgramRootSymbol.cs
r3462 r3824 26 26 [StorableClass] 27 27 [Item("ProgramRootSymbol", "Special symbol that represents the program root node of a symbolic expression tree.")] 28 public sealed class ProgramRootSymbol : Symbol { 29 public override bool CanChangeName { 30 get { 31 return false; 32 } 33 } 34 28 public sealed class ProgramRootSymbol : ReadOnlySymbol { 35 29 public override SymbolicExpressionTreeNode CreateTreeNode() { 36 30 return new SymbolicExpressionTreeTopLevelNode(this); -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/StartSymbol.cs
r3462 r3824 26 26 [StorableClass] 27 27 [Item("StartSymbol", "Special symbol that represents the starting node of the result producing branch of a symbolic expression tree.")] 28 public sealed class StartSymbol : Symbol { 29 public override bool CanChangeName { 30 get { 31 return false; 32 } 33 } 28 public sealed class StartSymbol : ReadOnlySymbol { 34 29 35 30 public override SymbolicExpressionTreeNode CreateTreeNode() { -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Symbol.cs
r3742 r3824 41 41 set { 42 42 if (value < 0.0) throw new ArgumentException("InitialFrequency must be positive"); 43 initialFrequency = value; 43 if (value != initialFrequency) { 44 initialFrequency = value; 45 OnChanged(EventArgs.Empty); 46 } 44 47 } 48 } 49 public override bool CanChangeName { 50 get { return false; } 45 51 } 46 52 #endregion … … 58 64 59 65 public override IDeepCloneable Clone(Cloner cloner) { 60 Symbol clone = (Symbol) 66 Symbol clone = (Symbol)base.Clone(cloner); 61 67 clone.initialFrequency = initialFrequency; 62 68 return clone; 63 69 } 70 71 #region events 72 public event EventHandler Changed; 73 protected void OnChanged(EventArgs e) { 74 EventHandler handlers = Changed; 75 if (handlers != null) 76 handlers(this, e); 77 } 78 #endregion 64 79 } 65 80 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/HeuristicLab.Problems.DataAnalysis.Views-3.3.csproj
r3755 r3824 124 124 <DependentUpon>SymbolicExpressionModelView.cs</DependentUpon> 125 125 </Compile> 126 <Compile Include="Symbolic\Symbols\ConstantView.cs"> 127 <SubType>UserControl</SubType> 128 </Compile> 129 <Compile Include="Symbolic\Symbols\ConstantView.Designer.cs"> 130 <DependentUpon>ConstantView.cs</DependentUpon> 131 </Compile> 132 <Compile Include="Symbolic\Symbols\VariableView.cs"> 133 <SubType>UserControl</SubType> 134 </Compile> 135 <Compile Include="Symbolic\Symbols\VariableView.Designer.cs"> 136 <DependentUpon>VariableView.cs</DependentUpon> 137 </Compile> 126 138 </ItemGroup> 127 139 <ItemGroup> … … 206 218 <EmbeddedResource Include="Symbolic\SymbolicExpressionModelView.resx"> 207 219 <DependentUpon>SymbolicExpressionModelView.cs</DependentUpon> 220 </EmbeddedResource> 221 <EmbeddedResource Include="Symbolic\Symbols\ConstantView.resx"> 222 <DependentUpon>ConstantView.cs</DependentUpon> 223 </EmbeddedResource> 224 <EmbeddedResource Include="Symbolic\Symbols\VariableView.resx"> 225 <DependentUpon>VariableView.cs</DependentUpon> 208 226 </EmbeddedResource> 209 227 </ItemGroup> -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs
r3512 r3824 38 38 public double MinValue { 39 39 get { return minValue; } 40 set { minValue = value; } 40 set { 41 if (value != minValue) { 42 minValue = value; 43 OnChanged(EventArgs.Empty); 44 } 45 } 41 46 } 42 47 [Storable] … … 44 49 public double MaxValue { 45 50 get { return maxValue; } 46 set { maxValue = value; } 51 set { 52 if (value != maxValue) { 53 maxValue = value; 54 OnChanged(EventArgs.Empty); 55 } 56 } 47 57 } 48 58 [Storable] … … 50 60 public double ManipulatorNu { 51 61 get { return manipulatorNu; } 52 set { manipulatorNu = value; } 62 set { 63 if (value != manipulatorNu) { 64 manipulatorNu = value; 65 OnChanged(EventArgs.Empty); 66 } 67 } 53 68 } 54 69 [Storable] … … 58 73 set { 59 74 if (value < 0) throw new ArgumentException(); 60 manipulatorSigma = value; 75 if (value != manipulatorSigma) { 76 manipulatorSigma = value; 77 OnChanged(EventArgs.Empty); 78 } 61 79 } 62 80 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Variable.cs
r3541 r3824 40 40 public double WeightNu { 41 41 get { return weightNu; } 42 set { weightNu = value; } 42 set { 43 if (value != weightNu) { 44 weightNu = value; 45 OnChanged(EventArgs.Empty); 46 } 47 } 43 48 } 44 49 [Storable] … … 48 53 set { 49 54 if (weightSigma < 0.0) throw new ArgumentException("Negative sigma is not allowed."); 50 weightSigma = value; 55 if (value != weightSigma) { 56 weightSigma = value; 57 OnChanged(EventArgs.Empty); 58 } 51 59 } 52 60 } … … 55 63 public double WeightManipulatorNu { 56 64 get { return weightManipulatorNu; } 57 set { weightManipulatorNu = value; } 65 set { 66 if (value != weightManipulatorNu) { 67 weightManipulatorNu = value; 68 OnChanged(EventArgs.Empty); 69 } 70 } 58 71 } 59 72 [Storable] … … 63 76 set { 64 77 if (weightManipulatorSigma < 0.0) throw new ArgumentException("Negative sigma is not allowed."); 65 weightManipulatorSigma = value; 78 if (value != weightManipulatorSigma) { 79 weightManipulatorSigma = value; 80 OnChanged(EventArgs.Empty); 81 } 66 82 } 67 83 } … … 74 90 variableNames.Clear(); 75 91 variableNames.AddRange(value); 92 OnChanged(EventArgs.Empty); 76 93 } 77 94 }
Note: See TracChangeset
for help on using the changeset viewer.