Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/13 15:50:53 (11 years ago)
Author:
fschoepp
Message:

#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:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Web/Models/OptimizationModels.cs

    r9062 r9166  
    77
    88namespace HeuristicLab.Services.Optimization.Web.Models {
     9  public class ScheduleJobModel {
     10    public int Repetitions { get; set; }
     11    public string Name { get; set; }
     12    public string Group { get; set; }
     13  }
    914
    1015  public class OptimizationModel {
     
    4146          realValue += value.AttemptedValue;
    4247        }
    43         var param = (from par in scenario.InputParameters.Items where par.Value.Name == realKey select par).FirstOrDefault();
     48        var param = (from par in scenario.FirstAlgorithm.Problem.Parameters.Items where par.Value.Name == realKey select par).FirstOrDefault();
    4449        if (param != null && !param.Value.TrySetFromString(realValue)) {
    4550          bindingContext.ModelState.AddModelError(bindingContext.ModelName, new Exception(string.Format("Unable to parse {0} into destination type {1}", value, param.Type)));
    4651        }
    4752      }
    48       return scenario.InputParameters;
     53      return scenario.FirstAlgorithm.Problem.Parameters;
    4954    }
    5055  }
     
    5560      foreach (var key in controllerContext.RequestContext.HttpContext.Request.Form.AllKeys) {
    5661        var value = bindingContext.ValueProvider.GetValue(key);
    57         var param = (from par in scenario.AlgorithmParameters.Items where par.Value.Name == key select par).FirstOrDefault();
     62        var param = (from par in scenario.FirstAlgorithm.Parameters.Items where par.Value.Name == key select par).FirstOrDefault();
    5863        if (param != null && !param.Value.TrySetFromString(value.AttemptedValue)) {
    5964          bindingContext.ModelState.AddModelError(bindingContext.ModelName, new Exception(string.Format("Unable to parse {0} into destination type {1}", value, param.Type)));
    6065        }
    6166      }
    62       return scenario.AlgorithmParameters;
     67      return scenario.FirstAlgorithm.Parameters;
    6368    }
    6469  }
Note: See TracChangeset for help on using the changeset viewer.