Changeset 13218 for trunk/sources/HeuristicLab.Problems.Programmable
- Timestamp:
- 11/17/15 14:19:44 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Programmable/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProblemDefinitionScript.cs
r13212 r13218 31 31 public string Filename { get; set; } 32 32 33 protected override string CodeTemplate {34 get { return ScriptTemplates.CompiledMultiObjectiveProblemDefinition; }35 }36 37 33 private new IMultiObjectiveProblemDefinition CompiledProblemDefinition { 38 34 get { return (IMultiObjectiveProblemDefinition)base.CompiledProblemDefinition; } … … 41 37 [StorableConstructor] 42 38 private MultiObjectiveProblemDefinitionScript(bool deserializing) : base(deserializing) { } 43 private MultiObjectiveProblemDefinitionScript(MultiObjectiveProblemDefinitionScript original, Cloner cloner) 44 : base(original, cloner) { } 45 46 public MultiObjectiveProblemDefinitionScript() { 47 Code = CodeTemplate; 48 } 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) { -
trunk/sources/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs
r12012 r13218 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 } -
trunk/sources/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProblemDefinitionScript.cs
r12012 r13218 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) {
Note: See TracChangeset
for help on using the changeset viewer.