Changeset 10113
- Timestamp:
- 11/07/13 12:57:40 (11 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching.Views/3.3/HeuristicLab.Analysis.SolutionCaching.Views-3.3.csproj
r10025 r10113 79 79 <Private>False</Private> 80 80 </Reference> 81 <Reference Include="HeuristicLab.Hive-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 82 <SpecificVersion>False</SpecificVersion> 83 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Hive-3.3.dll</HintPath> 84 <Private>False</Private> 85 </Reference> 81 86 <Reference Include="HeuristicLab.MainForm-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 82 87 <Private>False</Private> … … 130 135 </ItemGroup> 131 136 <ItemGroup> 137 <Compile Include="CreateRunCollectionModifierTasksMenuItem.cs" /> 132 138 <Compile Include="PermutationSolutionCacheView.cs"> 133 139 <SubType>UserControl</SubType> … … 135 141 <Compile Include="RealVectorSolutionCacheView.cs"> 136 142 <SubType>UserControl</SubType> 143 </Compile> 144 <Compile Include="RunCollectionModifierTasksConfigurator.cs"> 145 <SubType>Form</SubType> 146 </Compile> 147 <Compile Include="RunCollectionModifierTasksConfigurator.Designer.cs"> 148 <DependentUpon>RunCollectionModifierTasksConfigurator.cs</DependentUpon> 137 149 </Compile> 138 150 <Compile Include="SolutionCacheView.cs"> … … 166 178 </ItemGroup> 167 179 <ItemGroup> 180 <EmbeddedResource Include="RunCollectionModifierTasksConfigurator.resx"> 181 <DependentUpon>RunCollectionModifierTasksConfigurator.cs</DependentUpon> 182 </EmbeddedResource> 168 183 <EmbeddedResource Include="SolutionCacheView.resx"> 169 184 <DependentUpon>SolutionCacheView.cs</DependentUpon> -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/RunCollectionModifiers/RunCollectionModifierTask.cs
r10111 r10113 30 30 using HeuristicLab.Hive; 31 31 using HeuristicLab.Optimization; 32 using HeuristicLab.Parameters; 32 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 34 … … 35 36 [Item("RunCollectionModifierTask", "An item that runs RunCollectionModifiers on RunCollections with Hive support.")] 36 37 [StorableClass] 37 public class RunCollectionModifierTask : NamedItem, ITask {38 public class RunCollectionModifierTask : ParameterizedNamedItem, ITask { 38 39 public virtual bool IsParallelizable { 39 40 get { return false; } … … 71 72 } 72 73 73 [Storable] 74 protected ItemList<IRunCollectionModifier> runCollectionModifiers; 74 public ValueParameter<ItemList<IRunCollectionModifier>> RunCollectionModifiersParameter { 75 get { return (ValueParameter<ItemList<IRunCollectionModifier>>)Parameters["RunCollectionModifiers"]; } 76 } 75 77 public ItemList<IRunCollectionModifier> RunCollectionModifiers { 76 get { return runCollectionModifiers; }78 get { return RunCollectionModifiersParameter.Value; } 77 79 } 78 80 … … 100 102 #region Constructors and Cloning 101 103 public RunCollectionModifierTask() { 102 runCollectionModifiers = new ItemList<IRunCollectionModifier>();104 Parameters.Add(new ValueParameter<ItemList<IRunCollectionModifier>>("RunCollectionModifiers", "List of RunCollectionModifiers that are executed. ", new ItemList<IRunCollectionModifier>())); 103 105 executionStack = new Stack<IRunCollectionModifier>(); 106 runCollection = new RunCollection(); 104 107 log = new Log(); 105 108 } … … 110 113 executionTime = original.executionTime; 111 114 executionState = original.executionState; 112 runCollectionModifiers = (ItemList<IRunCollectionModifier>)original.RunCollectionModifiers.Clone(cloner);113 115 runCollection = (RunCollection)original.runCollection.Clone(cloner); 114 116 executionStack = new Stack<IRunCollectionModifier>(); … … 172 174 173 175 public virtual void AddRunCollectionModifiers(IRunCollectionModifier modifier) { 174 runCollectionModifiers.Add(modifier);176 RunCollectionModifiers.Add(modifier); 175 177 } 176 178
Note: See TracChangeset
for help on using the changeset viewer.