Changeset 16277
- Timestamp:
- 11/05/18 18:52:05 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeNativeInterpreter.cs
r16276 r16277 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Data; 28 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 30 using HeuristicLab.Parameters; 29 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 32 … … 33 35 [Item("SymbolicDataAnalysisExpressionTreeNativeInterpreter", "An interpreter that wraps a native dll")] 34 36 public class SymbolicDataAnalysisExpressionTreeNativeInterpreter : ParameterizedNamedItem, ISymbolicDataAnalysisExpressionTreeInterpreter { 35 public int EvaluatedSolutions { get; set; } 37 private const string EvaluatedSolutionsParameterName = "EvaluatedSolutions"; 38 39 #region parameters 40 public IFixedValueParameter<IntValue> EvaluatedSolutionsParameter { 41 get { return (IFixedValueParameter<IntValue>)Parameters[EvaluatedSolutionsParameterName]; } 42 } 43 #endregion 44 45 #region properties 46 public int EvaluatedSolutions { 47 get { return EvaluatedSolutionsParameter.Value.Value; } 48 set { EvaluatedSolutionsParameter.Value.Value = value; } 49 } 50 #endregion 36 51 37 52 public void ClearState() { } 38 53 39 public SymbolicDataAnalysisExpressionTreeNativeInterpreter() { } 54 public SymbolicDataAnalysisExpressionTreeNativeInterpreter() { 55 Parameters.Add(new FixedValueParameter<IntValue>(EvaluatedSolutionsParameterName, "A counter for the total number of solutions the interpreter has evaluated", new IntValue(0))); 56 } 40 57 41 58 [StorableConstructor]
Note: See TracChangeset
for help on using the changeset viewer.