Changeset 2304
- Timestamp:
- 08/21/09 12:32:42 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/Problem.cs
r2229 r2304 56 56 public Dataset Dataset { 57 57 get { return (Dataset)PersistenceManager.RestoreFromGZip(this.Data); } 58 set { this.Data = PersistenceManager.SaveToGZip(value); }58 private set { this.Data = PersistenceManager.SaveToGZip(value); } 59 59 } 60 60 } -
trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DatabaseService.cs
r2303 r2304 145 145 } 146 146 147 public Problem GetOrCreateProblem(Dataset dataset) {148 Problem problem;147 public IProblem GetOrCreateProblem(Dataset dataset) { 148 IProblem problem; 149 149 if (ctx.Problems.Count() == 0) 150 problem = PersistProblem(dataset);150 problem = PersistProblem(dataset); 151 151 else 152 152 problem = ctx.Problems.Single(); … … 156 156 } 157 157 158 p rivateProblem PersistProblem(Dataset dataset) {158 public IProblem PersistProblem(Dataset dataset) { 159 159 Problem problem; 160 160 using (ModelingDataContext ctx = new ModelingDataContext(connection)) { … … 272 272 } 273 273 #endregion 274 275 #region Problem276 public IProblem GetProblem() {277 if (ctx.Problems.Count() == 0)278 return null;279 return ctx.Problems.Single();280 }281 #endregion282 274 } 283 275 } -
trunk/sources/HeuristicLab.Modeling.Database/3.2/HeuristicLab.Modeling.Database-3.2.csproj
r2285 r2304 101 101 <Name>HeuristicLab.Core-3.2</Name> 102 102 </ProjectReference> 103 <ProjectReference Include="..\..\HeuristicLab.DataAnalysis\3.2\HeuristicLab.DataAnalysis-3.2.csproj"> 104 <Project>{7DD3A97A-56E9-462F-90E2-A351FE7AF5C2}</Project> 105 <Name>HeuristicLab.DataAnalysis-3.2</Name> 106 </ProjectReference> 103 107 <ProjectReference Include="..\..\HeuristicLab.Modeling\3.2\HeuristicLab.Modeling-3.2.csproj"> 104 108 <Project>{80F7FADA-549D-4151-8856-79B620A50DBA}</Project> -
trunk/sources/HeuristicLab.Modeling.Database/3.2/IModelingDatabase.cs
r2301 r2304 24 24 using System.Linq; 25 25 using System.Text; 26 using HeuristicLab.DataAnalysis; 26 27 27 28 namespace HeuristicLab.Modeling.Database { … … 29 30 void Persist(HeuristicLab.Modeling.IAnalyzerModel model, string algorithmName, string algorithmDescription); 30 31 void Persist(HeuristicLab.Modeling.IAlgorithm algorithm); 32 IProblem PersistProblem(Dataset dataset); 33 31 34 IEnumerable<IModel> GetAllModels(); 32 35 IEnumerable<IResult> GetAllResults(); 33 36 IEnumerable<IResult> GetAllResultsForInputVariables(); 34 37 IEnumerable<IAlgorithm> GetAllAlgorithms(); 35 IEnumerable<IModelResult> GetModelResults(IModel model); 38 39 Dataset GetDataset(); 36 40 byte[] GetModelData(IModel model); 37 41 IPredictor GetModelPredictor(IModel model); 42 IEnumerable<IModelResult> GetModelResults(IModel model); 38 43 IEnumerable<IInputVariableResult> GetInputVariableResults(IModel model); 39 IProblem GetProblem();40 44 41 45 void Connect(); -
trunk/sources/HeuristicLab.Modeling.Database/3.2/IProblem.cs
r2223 r2304 24 24 using System.Linq; 25 25 using System.Text; 26 using HeuristicLab.DataAnalysis; 26 27 27 28 namespace HeuristicLab.Modeling.Database { 28 29 public interface IProblem { 29 30 byte[] Data { get; } 31 Dataset Dataset { get; } 30 32 } 31 33 }
Note: See TracChangeset
for help on using the changeset viewer.