- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisModel.cs
r12012 r13656 21 21 22 22 using System; 23 using System.Drawing;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; … … 33 32 [StorableClass] 34 33 public abstract class SymbolicDataAnalysisModel : NamedItem, ISymbolicDataAnalysisModel { 35 public static new Image StaticItemImage { 36 get { return HeuristicLab.Common.Resources.VSImageLibrary.Function; } 37 } 34 38 35 39 36 #region properties … … 47 44 [Storable] 48 45 private ISymbolicExpressionTree symbolicExpressionTree; 49 public ISymbolicExpressionTree SymbolicExpressionTree { 46 public ISymbolicExpressionTree SymbolicExpressionTree 47 { 50 48 get { return symbolicExpressionTree; } 51 49 } … … 53 51 [Storable] 54 52 private ISymbolicDataAnalysisExpressionTreeInterpreter interpreter; 55 public ISymbolicDataAnalysisExpressionTreeInterpreter Interpreter { 53 public ISymbolicDataAnalysisExpressionTreeInterpreter Interpreter 54 { 56 55 get { return interpreter; } 57 56 } -
branches/WebJobManager/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r12422 r13656 21 21 22 22 using System; 23 using System.Drawing;24 23 using System.Linq; 25 24 using HeuristicLab.Common; 26 using HeuristicLab.Common.Resources;27 25 using HeuristicLab.Core; 28 26 using HeuristicLab.Data; … … 69 67 70 68 #region parameter properties 71 IParameter IDataAnalysisProblem.ProblemDataParameter { 69 IParameter IDataAnalysisProblem.ProblemDataParameter 70 { 72 71 get { return ProblemDataParameter; } 73 72 } 74 public IValueParameter<T> ProblemDataParameter { 73 public IValueParameter<T> ProblemDataParameter 74 { 75 75 get { return (IValueParameter<T>)Parameters[ProblemDataParameterName]; } 76 76 } 77 public IValueParameter<ISymbolicDataAnalysisGrammar> SymbolicExpressionTreeGrammarParameter { 77 public IValueParameter<ISymbolicDataAnalysisGrammar> SymbolicExpressionTreeGrammarParameter 78 { 78 79 get { return (IValueParameter<ISymbolicDataAnalysisGrammar>)Parameters[SymbolicExpressionTreeGrammarParameterName]; } 79 80 } 80 public IValueParameter<ISymbolicDataAnalysisExpressionTreeInterpreter> SymbolicExpressionTreeInterpreterParameter { 81 public IValueParameter<ISymbolicDataAnalysisExpressionTreeInterpreter> SymbolicExpressionTreeInterpreterParameter 82 { 81 83 get { return (IValueParameter<ISymbolicDataAnalysisExpressionTreeInterpreter>)Parameters[SymbolicExpressionTreeInterpreterParameterName]; } 82 84 } 83 public IFixedValueParameter<IntValue> MaximumSymbolicExpressionTreeDepthParameter { 85 public IFixedValueParameter<IntValue> MaximumSymbolicExpressionTreeDepthParameter 86 { 84 87 get { return (IFixedValueParameter<IntValue>)Parameters[MaximumSymbolicExpressionTreeDepthParameterName]; } 85 88 } 86 public IFixedValueParameter<IntValue> MaximumSymbolicExpressionTreeLengthParameter { 89 public IFixedValueParameter<IntValue> MaximumSymbolicExpressionTreeLengthParameter 90 { 87 91 get { return (IFixedValueParameter<IntValue>)Parameters[MaximumSymbolicExpressionTreeLengthParameterName]; } 88 92 } 89 public IFixedValueParameter<IntValue> MaximumFunctionDefinitionsParameter { 93 public IFixedValueParameter<IntValue> MaximumFunctionDefinitionsParameter 94 { 90 95 get { return (IFixedValueParameter<IntValue>)Parameters[MaximumFunctionDefinitionsParameterName]; } 91 96 } 92 public IFixedValueParameter<IntValue> MaximumFunctionArgumentsParameter { 97 public IFixedValueParameter<IntValue> MaximumFunctionArgumentsParameter 98 { 93 99 get { return (IFixedValueParameter<IntValue>)Parameters[MaximumFunctionArgumentsParameterName]; } 94 100 } 95 public IFixedValueParameter<PercentValue> RelativeNumberOfEvaluatedSamplesParameter { 101 public IFixedValueParameter<PercentValue> RelativeNumberOfEvaluatedSamplesParameter 102 { 96 103 get { return (IFixedValueParameter<PercentValue>)Parameters[RelativeNumberOfEvaluatedSamplesParameterName]; } 97 104 } 98 public IFixedValueParameter<IntRange> FitnessCalculationPartitionParameter { 105 public IFixedValueParameter<IntRange> FitnessCalculationPartitionParameter 106 { 99 107 get { return (IFixedValueParameter<IntRange>)Parameters[FitnessCalculationPartitionParameterName]; } 100 108 } 101 public IFixedValueParameter<IntRange> ValidationPartitionParameter { 109 public IFixedValueParameter<IntRange> ValidationPartitionParameter 110 { 102 111 get { return (IFixedValueParameter<IntRange>)Parameters[ValidationPartitionParameterName]; } 103 112 } 104 public IFixedValueParameter<BoolValue> ApplyLinearScalingParameter { 113 public IFixedValueParameter<BoolValue> ApplyLinearScalingParameter 114 { 105 115 get { return (IFixedValueParameter<BoolValue>)Parameters[ApplyLinearScalingParameterName]; } 106 116 } … … 109 119 #region properties 110 120 public string Filename { get; set; } 111 public static new Image StaticItemImage { get { return VSImageLibrary.Type; } } 112 113 IDataAnalysisProblemData IDataAnalysisProblem.ProblemData { 121 122 123 IDataAnalysisProblemData IDataAnalysisProblem.ProblemData 124 { 114 125 get { return ProblemData; } 115 126 } 116 public T ProblemData { 127 public T ProblemData 128 { 117 129 get { return ProblemDataParameter.Value; } 118 130 set { ProblemDataParameter.Value = value; } 119 131 } 120 132 121 public ISymbolicDataAnalysisGrammar SymbolicExpressionTreeGrammar { 133 public ISymbolicDataAnalysisGrammar SymbolicExpressionTreeGrammar 134 { 122 135 get { return SymbolicExpressionTreeGrammarParameter.Value; } 123 136 set { SymbolicExpressionTreeGrammarParameter.Value = value; } 124 137 } 125 public ISymbolicDataAnalysisExpressionTreeInterpreter SymbolicExpressionTreeInterpreter { 138 public ISymbolicDataAnalysisExpressionTreeInterpreter SymbolicExpressionTreeInterpreter 139 { 126 140 get { return SymbolicExpressionTreeInterpreterParameter.Value; } 127 141 set { SymbolicExpressionTreeInterpreterParameter.Value = value; } 128 142 } 129 143 130 public IntValue MaximumSymbolicExpressionTreeDepth { 144 public IntValue MaximumSymbolicExpressionTreeDepth 145 { 131 146 get { return MaximumSymbolicExpressionTreeDepthParameter.Value; } 132 147 } 133 public IntValue MaximumSymbolicExpressionTreeLength { 148 public IntValue MaximumSymbolicExpressionTreeLength 149 { 134 150 get { return MaximumSymbolicExpressionTreeLengthParameter.Value; } 135 151 } 136 public IntValue MaximumFunctionDefinitions { 152 public IntValue MaximumFunctionDefinitions 153 { 137 154 get { return MaximumFunctionDefinitionsParameter.Value; } 138 155 } 139 public IntValue MaximumFunctionArguments { 156 public IntValue MaximumFunctionArguments 157 { 140 158 get { return MaximumFunctionArgumentsParameter.Value; } 141 159 } 142 public PercentValue RelativeNumberOfEvaluatedSamples { 160 public PercentValue RelativeNumberOfEvaluatedSamples 161 { 143 162 get { return RelativeNumberOfEvaluatedSamplesParameter.Value; } 144 163 } 145 164 146 public IntRange FitnessCalculationPartition { 165 public IntRange FitnessCalculationPartition 166 { 147 167 get { return FitnessCalculationPartitionParameter.Value; } 148 168 } 149 public IntRange ValidationPartition { 169 public IntRange ValidationPartition 170 { 150 171 get { return ValidationPartitionParameter.Value; } 151 172 } 152 public BoolValue ApplyLinearScaling { 173 public BoolValue ApplyLinearScaling 174 { 153 175 get { return ApplyLinearScalingParameter.Value; } 154 176 }
Note: See TracChangeset
for help on using the changeset viewer.