- Timestamp:
- 09/21/18 09:50:12 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2931_OR-Tools_LP_MIP/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs
r15583 r16172 1 1 #region License Information 2 2 3 /* HeuristicLab 3 4 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) … … 18 19 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 20 */ 20 #endregion 21 22 #endregion License Information 21 23 22 24 using System; … … 30 32 31 33 namespace HeuristicLab.Problems.Programmable { 34 32 35 [Item("ProblemDefinitionScript", "Script that defines the parameter vector and evaluates the solution for a programmable problem.")] 33 36 [StorableClass] … … 37 40 [Storable] 38 41 private VariableStore variableStore; 42 39 43 public VariableStore VariableStore { 40 44 get { return variableStore; } … … 46 50 [StorableConstructor] 47 51 protected ProblemDefinitionScript(bool deserializing) : base(deserializing) { } 52 48 53 protected ProblemDefinitionScript(ProblemDefinitionScript original, Cloner cloner) 49 54 : base(original, cloner) { … … 51 56 codeChanged = original.codeChanged; 52 57 } 58 53 59 protected ProblemDefinitionScript() 54 60 : base() { 55 61 variableStore = new VariableStore(); 56 62 } 63 57 64 protected ProblemDefinitionScript(string code) 58 65 : base(code) { … … 66 73 private readonly object compileLock = new object(); 67 74 private volatile IProblemDefinition compiledProblemDefinition; 75 68 76 protected IProblemDefinition CompiledProblemDefinition { 69 77 get { … … 80 88 } 81 89 } 90 82 91 public dynamic Instance { 83 92 get { return compiledProblemDefinition; } … … 131 140 132 141 public event EventHandler ProblemDefinitionChanged; 142 133 143 protected virtual void OnProblemDefinitionChanged() { 134 144 var handler = ProblemDefinitionChanged;
Note: See TracChangeset
for help on using the changeset viewer.