Last change
on this file since 9166 was
9166,
checked in by fschoepp, 11 years ago
|
#1888:
- Model: OptimizationScenario may be a tree of algorithms (and problems)
- Model: Renamed InputParameters to ProblemParameters (as they are the parameters of a problem)
- Model: Added JobExecutionDetails which contain Repetitions + Group (resource to use)
- ScenarioParser parses the new XML scenario files
- Website + Model: You are now able to add/remove rows from a table (no JavaScript involved yet)
- Website + Controller: Added repetitions (enables batch jobs) and group (resource to use) to OaaS which will be used by the controller to schedule the job
- Website: Updated templates to use new model structure
- Website + Scenarios: Added the new algorithm Benchmark Algorithm
- Controller: Added a singleton to make the (Azure/Mockup)-DAL exchangeable
- Controller: Added mockup classes for DAL + IScenarioManager
- Website/Result Page: Line Diagrams will be added via JavaScript, crawling their data using AJAX
- Website: Most configuration parameters can be set in the ServiceDefinition directly
- Added a mockup for the Membership classes: These can be used if no network connection is available or if other parts of the app shall be tested
- Scenarios: Updated TSP mappings to new xsd
|
File size:
1.1 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace HeuristicLab.Services.Optimization.ControllerService.Interfaces {
|
---|
7 | public class StringEntry {
|
---|
8 | public string Key { get; set; }
|
---|
9 | public string Text { get; set; }
|
---|
10 | };
|
---|
11 |
|
---|
12 | public interface IScenarioDao {
|
---|
13 | bool Add(ScenarioEntity entity);
|
---|
14 | bool DeleteByName(string scenarioName);
|
---|
15 | ScenarioEntity FindByName(string scenarioName);
|
---|
16 | IEnumerable<ScenarioEntity> GetAllEntities();
|
---|
17 | }
|
---|
18 |
|
---|
19 | public interface IBlobDao {
|
---|
20 | bool Add(StringEntry entry);
|
---|
21 | bool DeleteByKey(string entryKey);
|
---|
22 | StringEntry FindByKey(string entryKey);
|
---|
23 | }
|
---|
24 |
|
---|
25 | public interface IDataAccessLayer {
|
---|
26 | IScenarioDao CreateScenarioDao();
|
---|
27 | IBlobDao CreateBlobDao();
|
---|
28 | }
|
---|
29 |
|
---|
30 | public static class DataAccessLayerProvider {
|
---|
31 | private static IDataAccessLayer layer = new Azure.AzureDataAccessLayer();
|
---|
32 | //private static IDataAccessLayer layer = new Mockup.MockupDataAccessLayer();
|
---|
33 |
|
---|
34 | public static IDataAccessLayer GetLayer() {
|
---|
35 | return layer;
|
---|
36 | }
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.