Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.ControllerService.Tests/mappings/scenario.xsd @ 8978

Last change on this file since 8978 was 8817, checked in by fschoepp, 12 years ago

#1888:

  • Added a parser for independent scenarios (using the model of the optimization backend)
  • Optimization scenario sample can be found in mappings folder of the web project.
  • Added IScenarioMapper interface which provides functionality to map from the optimization data model to a backend model (e.g. Heuristic Lab data model)
  • Implementations of IScenarioMapper have to be provided as C# code (strings) which will be compiled by using a CSharpCodeProvider. Once compiled, the implementations of the IScenarioMapper are being cached within the platform for further usage.
  • Fixed a bug in web template DecimalMatrix (using i instead of j)
  • Added missing thumprint of localhost certificate to the optimization web project (ServiceConfiguration.Local.cscfg / ServiceConfiguration.Cloud.cscfg)
  • Test project now provides following test cases: Mapping types using IronPython and mapping types using Otis
File size: 1.6 KB
Line 
1<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
2    xmlns="urn:scenario-schema"
3    elementFormDefault="qualified"
4    targetNamespace="urn:scenario-schema">
5
6 <xsd:element name="scenario" type="scenarioType"/>
7
8 <xsd:complexType name="scenarioType">
9  <xsd:sequence maxOccurs="1">   
10   <xsd:element name="name" type="xsd:string"/>
11   <xsd:element name="problemParameters" type="paramsType"/>
12   <xsd:element name="algorithmParameters" type="paramsType"/>
13  </xsd:sequence>
14  <xsd:attribute name="problemType" use="required"/>
15  <xsd:attribute name="algorithmType" use="required"/>
16  <xsd:attribute name="mapper" use="required"/>
17 </xsd:complexType>
18
19 <xsd:complexType name="paramsType">
20  <xsd:sequence>
21   <xsd:element name="param" type="parameterType" minOccurs="1" maxOccurs="unbounded"/>     
22  </xsd:sequence> 
23 </xsd:complexType>
24
25 <xsd:complexType name="parameterType">
26  <xsd:choice>
27   <xsd:element name="value" type="valueType" minOccurs="0" maxOccurs="unbounded"/>
28   <xsd:element name="choice" type="choiceType" minOccurs="0" maxOccurs="unbounded"/>     
29  </xsd:choice>
30  <xsd:attribute name="type" type="xsd:string" use="required"/>
31  <xsd:attribute name="name" type="xsd:string" use="required"/>
32  <xsd:attribute name="value" type="xsd:string"/>
33 </xsd:complexType>
34 
35 <xsd:complexType name="choiceType">   
36  <xsd:attribute name="name" type="xsd:string" use="required"/>
37  <xsd:attribute name="selected" type="xsd:string"/>
38 </xsd:complexType>
39 
40 <xsd:complexType name="valueType">
41  <xsd:attribute name="v1" type="xsd:string"/>
42  <xsd:attribute name="v2" type="xsd:string"/>
43 </xsd:complexType>
44
45</xsd:schema>
Note: See TracBrowser for help on using the repository browser.