Changeset 2195
- Timestamp:
- 07/28/09 15:43:24 (15 years ago)
- Location:
- branches/HeuristicLab.Modeling Database Backend/sources
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/DispatcherBase.cs
r2193 r2195 105 105 106 106 public IView CreateView() { 107 return new ProblemView(this);107 return new DispatcherView(this); 108 108 } 109 109 -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/ExecuterBase.cs
r2185 r2195 39 39 using System.Threading; 40 40 using HeuristicLab.Modeling; 41 using HeuristicLab.Modeling. SQLServerCompactBackend;41 using HeuristicLab.Modeling.Database; 42 42 43 43 namespace HeuristicLab.CEDMA.Server { … … 74 74 75 75 protected void SetResults(IScope src, IScope target) { 76 foreach ( IVariable v in src.Variables) {76 foreach (HeuristicLab.Core.IVariable v in src.Variables) { 77 77 target.AddVariable(v); 78 78 } … … 85 85 } 86 86 87 protected void StoreResults( IAlgorithm finishedAlgorithm) {87 protected void StoreResults(HeuristicLab.Modeling.IAlgorithm finishedAlgorithm) { 88 88 databaseService.Persist(finishedAlgorithm); 89 89 //Entity modelEntity = new Entity(Ontology.CedmaNameSpace + Guid.NewGuid()); -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/GridExecuter.cs
r2185 r2195 39 39 using System.Threading; 40 40 using HeuristicLab.Modeling; 41 using HeuristicLab.Modeling. SQLServerCompactBackend;41 using HeuristicLab.Modeling.Database; 42 42 43 43 namespace HeuristicLab.CEDMA.Server { 44 44 public class GridExecuter : ExecuterBase { 45 45 private JobManager jobManager; 46 private Dictionary<AsyncGridResult, IAlgorithm> activeAlgorithms;46 private Dictionary<AsyncGridResult, HeuristicLab.Modeling.IAlgorithm> activeAlgorithms; 47 47 48 48 private TimeSpan StartJobInterval { … … 59 59 60 60 public GridExecuter(IDispatcher dispatcher, IGridServer server, IModelingDatabase databaseService) 61 : base(dispatcher, store,databaseService) {61 : base(dispatcher, databaseService) { 62 62 this.jobManager = new JobManager(server); 63 activeAlgorithms = new Dictionary<AsyncGridResult, IAlgorithm>();63 activeAlgorithms = new Dictionary<AsyncGridResult, HeuristicLab.Modeling.IAlgorithm>(); 64 64 jobManager.Reset(); 65 65 } … … 73 73 Thread.Sleep(StartJobInterval); 74 74 // get an execution from the dispatcher and execute in grid via job-manager 75 IAlgorithm algorithm = Dispatcher.GetNextJob();75 HeuristicLab.Modeling.IAlgorithm algorithm = Dispatcher.GetNextJob(); 76 76 if (algorithm != null) { 77 77 AtomicOperation op = new AtomicOperation(algorithm.Engine.OperatorGraph.InitialOperator, algorithm.Engine.GlobalScope); … … 93 93 if (readyHandleIndex != WaitHandle.WaitTimeout) { 94 94 WaitHandle readyHandle = whArr[readyHandleIndex]; 95 IAlgorithm finishedAlgorithm = null;95 HeuristicLab.Modeling.IAlgorithm finishedAlgorithm = null; 96 96 AsyncGridResult finishedResult = null; 97 97 lock (activeAlgorithms) { … … 140 140 string[] retVal = new string[activeAlgorithms.Count]; 141 141 int i = 0; 142 foreach ( IAlgorithm a in activeAlgorithms.Values) {142 foreach (HeuristicLab.Modeling.IAlgorithm a in activeAlgorithms.Values) { 143 143 retVal[i++] = a.Name + " " + a.Dataset.GetVariableName(a.TargetVariable); 144 144 } -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/HeuristicLab.CEDMA.Server-3.3.csproj
r2194 r2195 91 91 </ItemGroup> 92 92 <ItemGroup> 93 <Compile Include="LearningTask.cs" /> 94 <Compile Include="Problem.cs" /> 93 95 <Compile Include="ProblemView.cs"> 94 96 <SubType>UserControl</SubType> … … 158 160 <Project>{545CE756-98D8-423B-AC2E-6E7D70926E5C}</Project> 159 161 <Name>HeuristicLab.Grid-3.2</Name> 162 </ProjectReference> 163 <ProjectReference Include="..\..\HeuristicLab.Modeling.Database.SQLServerCompact\3.2\HeuristicLab.Modeling.Database.SQLServerCompact-3.2.csproj"> 164 <Project>{EC1AA756-D612-4FA6-AA52-25CF4F8E3836}</Project> 165 <Name>HeuristicLab.Modeling.Database.SQLServerCompact-3.2</Name> 166 </ProjectReference> 167 <ProjectReference Include="..\..\HeuristicLab.Modeling.Database\3.2\HeuristicLab.Modeling.Database-3.2.csproj"> 168 <Project>{E84E5717-79F8-498F-A5E0-A055C4EC086B}</Project> 169 <Name>HeuristicLab.Modeling.Database-3.2</Name> 160 170 </ProjectReference> 161 171 <ProjectReference Include="..\..\HeuristicLab.Modeling\3.2\HeuristicLab.Modeling-3.2.csproj"> -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/Problem.cs
r2193 r2195 126 126 } 127 127 128 public overrideIView CreateView() {128 public IView CreateView() { 129 129 return new ProblemView(this); 130 130 } -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/ProblemView.cs
r2193 r2195 31 31 using HeuristicLab.DataAnalysis; 32 32 using System.Diagnostics; 33 using HeuristicLab.CEDMA.Core; 33 34 34 35 namespace HeuristicLab.CEDMA.Server { -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/Server.cs
r2194 r2195 34 34 using HeuristicLab.Core; 35 35 using HeuristicLab.Modeling.Database; 36 using HeuristicLab.Modeling.Database.S qlServerCompact;36 using HeuristicLab.Modeling.Database.SQLServerCompact; 37 37 38 38 namespace HeuristicLab.CEDMA.Server { … … 47 47 public IExecuter Executer { get { return executer; } } 48 48 private Problem problem; 49 public Problem Problem { get { return problem; } } 49 50 50 51 private string gridServiceUrl; -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/ServerApplication.cs
r2119 r2195 31 31 public override void Run() { 32 32 Server server = new Server(); 33 server.Start();34 33 Form mainForm = new Form(); 35 34 UserControl serverControl = (UserControl)server.CreateView(); -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/Model.cs
r2194 r2195 8 8 namespace HeuristicLab.Modeling.Database.SQLServerCompact { 9 9 [Table(Name = "Model")] 10 public class Model : IModel {10 public class Model : IModel { 11 11 public Model() { 12 12 targetVariable = default(EntityRef<Variable>); … … 92 92 if (value != null) { 93 93 targetVariableId = ((Variable)value).Id; 94 } 94 } 95 95 } 96 96 } -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.SQLServerCompact/3.2/Properties/AssemblyInfo.cs
r2194 r2195 34 34 // by using the '*' as shown below: 35 35 // [assembly: AssemblyVersion("1.0.*")] 36 [assembly: AssemblyVersion("3.2.0.218 2")]37 [assembly: AssemblyFileVersion("3.2.0.218 2")]38 [assembly: AssemblyBuildDate("2009/07/2 7 17:16:03")]36 [assembly: AssemblyVersion("3.2.0.2189")] 37 [assembly: AssemblyFileVersion("3.2.0.2189")] 38 [assembly: AssemblyBuildDate("2009/07/28 14:23:16")]
Note: See TracChangeset
for help on using the changeset viewer.