Changeset 5372 for branches/SuccessProgressAnalysis
- Timestamp:
- 01/25/11 14:10:06 (14 years ago)
- Location:
- branches/SuccessProgressAnalysis
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SuccessProgressAnalysis/HeuristicLab.Analysis/3.3/HeuristicLab.Analysis-3.3.csproj
r5163 r5372 12 12 <AssemblyName>HeuristicLab.Analysis-3.3</AssemblyName> 13 13 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 14 <TargetFrameworkProfile></TargetFrameworkProfile> 14 <TargetFrameworkProfile> 15 </TargetFrameworkProfile> 15 16 <FileAlignment>512</FileAlignment> 16 17 <SignAssembly>true</SignAssembly> … … 136 137 <Compile Include="HeuristicLabAnalysisPlugin.cs" /> 137 138 <Compile Include="Properties\AssemblyInfo.cs" /> 139 <Compile Include="SuccessProgressAnalysis\SuccessProgressAnalyzer.cs" /> 138 140 <Compile Include="ValueAnalysis\MinAverageMaxValueAnalyzer.cs" /> 139 141 <Compile Include="ValueAnalysis\MinAverageMaxValueCalculator.cs" /> -
branches/SuccessProgressAnalysis/HeuristicLab.Operators/3.3/StochasticMultiBranch.cs
r4722 r5372 49 49 get { return (ILookupParameter<IRandom>)Parameters["Random"]; } 50 50 } 51 public ValueLookupParameter<StringValue> ExecutedOperatorParameter { 52 get { return (ValueLookupParameter<StringValue>)Parameters["ExecutedOperator"]; } 53 } 51 54 52 55 public DoubleArray Probabilities { 53 56 get { return ProbabilitiesParameter.Value; } 54 57 set { ProbabilitiesParameter.Value = value; } 58 } 59 60 [StorableHook(HookType.AfterDeserialization)] 61 private void AfterDeserializationHook() { 62 #region Backwards Compatibility 63 if (!Parameters.ContainsKey("ExecutedOperator")) { 64 Parameters.Add(new ValueLookupParameter<StringValue>("ExecutedOperator", "The operator that was executed.")); 65 } 66 #endregion 55 67 } 56 68 … … 68 80 Parameters.Add(new ValueLookupParameter<DoubleArray>("Probabilities", "The array of relative probabilities for each operator.", new DoubleArray())); 69 81 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 82 Parameters.Add(new ValueLookupParameter<StringValue>("ExecutedOperator", "The operator that was executed.")); 70 83 } 71 84 … … 133 146 OperationCollection next = new OperationCollection(base.Apply()); 134 147 if (successor != null) { 148 ExecutedOperatorParameter.ActualValue = new StringValue(successor.GetType().Name); 149 135 150 if (CreateChildOperation) 136 151 next.Insert(0, ExecutionContext.CreateChildOperation(successor)); 137 152 else next.Insert(0, ExecutionContext.CreateOperation(successor)); 153 } else { 154 ExecutedOperatorParameter.ActualValue = new StringValue(""); 138 155 } 139 156 return next;
Note: See TracChangeset
for help on using the changeset viewer.