- Timestamp:
- 07/08/16 14:40:02 (8 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProblemDefinitionScript.cs
r12012 r14029 28 28 [Item("Multi-objective Problem Definition Script", "Script that defines the parameter vector and evaluates the solution for a programmable problem.")] 29 29 [StorableClass] 30 public class MultiObjectiveProblemDefinitionScript : ProblemDefinitionScript, IMultiObjectiveProblemDefinition, IStorableContent {30 public sealed class MultiObjectiveProblemDefinitionScript : ProblemDefinitionScript, IMultiObjectiveProblemDefinition, IStorableContent { 31 31 public string Filename { get; set; } 32 33 protected override string CodeTemplate {34 get { return ScriptTemplates.CompiledMultiObjectiveProblemDefinition; }35 }36 32 37 33 private new IMultiObjectiveProblemDefinition CompiledProblemDefinition { … … 40 36 41 37 [StorableConstructor] 42 protected MultiObjectiveProblemDefinitionScript(bool deserializing) : base(deserializing) { } 43 protected MultiObjectiveProblemDefinitionScript(MultiObjectiveProblemDefinitionScript original, Cloner cloner) 44 : base(original, cloner) { } 45 46 public MultiObjectiveProblemDefinitionScript() { 47 Code = CodeTemplate; 48 } 38 private MultiObjectiveProblemDefinitionScript(bool deserializing) : base(deserializing) { } 39 private MultiObjectiveProblemDefinitionScript(MultiObjectiveProblemDefinitionScript original, Cloner cloner) : base(original, cloner) { } 40 public MultiObjectiveProblemDefinitionScript() : base(ScriptTemplates.CompiledMultiObjectiveProblemDefinition) { } 49 41 50 42 public override IDeepCloneable Clone(Cloner cloner) { -
branches/crossvalidation-2434/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs
r12616 r14029 71 71 private void RegisterEvents() { 72 72 ProblemScript.ProblemDefinitionChanged += (o, e) => OnProblemDefinitionChanged(); 73 ProblemScript.NameChanged += (o, e) => OnProblemScriptNameChanged(); 73 74 } 74 75 … … 80 81 OnOperatorsChanged(); 81 82 OnReset(); 83 } 84 protected override void OnNameChanged() { 85 base.OnNameChanged(); 86 ProblemScript.Name = Name; 87 } 88 private void OnProblemScriptNameChanged() { 89 Name = ProblemScript.Name; 82 90 } 83 91 -
branches/crossvalidation-2434/HeuristicLab.Problems.Programmable/3.3/Plugin.cs.frame
r12753 r14029 23 23 24 24 namespace HeuristicLab.Problems.Programmable { 25 [Plugin("HeuristicLab.Problems.Programmable", "Programmable problem for defining custom representation and evaluation function.", "3.3.1 2.$WCREV$")]25 [Plugin("HeuristicLab.Problems.Programmable", "Programmable problem for defining custom representation and evaluation function.", "3.3.13.$WCREV$")] 26 26 [PluginFile("HeuristicLab.Problems.Programmable-3.3.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Analysis", "3.3")] -
branches/crossvalidation-2434/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs
r12012 r14029 53 53 protected ProblemDefinitionScript() 54 54 : base() { 55 variableStore = new VariableStore(); 56 } 57 protected ProblemDefinitionScript(string code) 58 : base(code) { 55 59 variableStore = new VariableStore(); 56 60 } -
branches/crossvalidation-2434/HeuristicLab.Problems.Programmable/3.3/Properties/AssemblyInfo.cs.frame
r12753 r14029 54 54 // [assembly: AssemblyVersion("1.0.*")] 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3.1 2.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.13.$WCREV$")] -
branches/crossvalidation-2434/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProblemDefinitionScript.cs
r12012 r14029 32 32 public string Filename { get; set; } 33 33 34 protected override string CodeTemplate {35 get { return ScriptTemplates.CompiledSingleObjectiveProblemDefinition; }36 }37 38 34 private new ISingleObjectiveProblemDefinition CompiledProblemDefinition { 39 35 get { return (ISingleObjectiveProblemDefinition)base.CompiledProblemDefinition; } … … 43 39 private SingleObjectiveProblemDefinitionScript(bool deserializing) : base(deserializing) { } 44 40 private SingleObjectiveProblemDefinitionScript(SingleObjectiveProblemDefinitionScript original, Cloner cloner) : base(original, cloner) { } 45 public SingleObjectiveProblemDefinitionScript() 46 : base() { 47 Code = CodeTemplate; 48 } 41 public SingleObjectiveProblemDefinitionScript() : base(ScriptTemplates.CompiledSingleObjectiveProblemDefinition) { } 49 42 50 43 public override IDeepCloneable Clone(Cloner cloner) { -
branches/crossvalidation-2434/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs
r12616 r14029 74 74 private void RegisterEvents() { 75 75 ProblemScript.ProblemDefinitionChanged += (o, e) => OnProblemDefinitionChanged(); 76 ProblemScript.NameChanged += (o, e) => OnProblemScriptNameChanged(); 76 77 } 77 78 … … 83 84 OnOperatorsChanged(); 84 85 OnReset(); 86 } 87 protected override void OnNameChanged() { 88 base.OnNameChanged(); 89 ProblemScript.Name = Name; 90 } 91 private void OnProblemScriptNameChanged() { 92 Name = ProblemScript.Name; 85 93 } 86 94
Note: See TracChangeset
for help on using the changeset viewer.