Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 1095c5e7 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

Merge pull request #399 in VECTO/vecto-sim from...

Merge pull request #399 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:feature/VECTO-481-integrate-new-xml-schema to develop

* commit '66880ef1':
  fix last bugs
parents b559de8c 66880ef1
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -132,7 +132,7 @@ namespace TUGraz.VectoCore.OutputData.XML
var id = string.Format("ENG-{0}", data.Model.RemoveWhitespace()); var id = string.Format("ENG-{0}", data.Model.RemoveWhitespace());
var fld = EngineFullLoadCurve.Create(data.FullLoadCurve, true); var fld = EngineFullLoadCurve.Create(data.FullLoadCurve, true);
return new XElement(tns + XMLNames.Component_Engine, return new XElement(tns + XMLNames.Component_Engine,
new XAttribute(XMLNames.Component_CertificationNumber, string.Format("ENG-{0}", data.Model)), new XAttribute(XMLNames.Component_CertificationNumber_Attr, string.Format("ENG-{0}", data.Model)),
new XElement(tns + XMLNames.ComponentDataWrapper, new XElement(tns + XMLNames.ComponentDataWrapper,
new XAttribute(XMLNames.Component_ID_Attr, id), new XAttribute(XMLNames.Component_ID_Attr, id),
GetDefaultComponentElements(string.Format("ENG-{0}", data.Model), data.Model), GetDefaultComponentElements(string.Format("ENG-{0}", data.Model), data.Model),
...@@ -178,7 +178,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -178,7 +178,7 @@ namespace TUGraz.VectoCore.OutputData.XML
} }
var id = string.Format("GBX-{0}", gbxData.Model.RemoveWhitespace()); var id = string.Format("GBX-{0}", gbxData.Model.RemoveWhitespace());
return new XElement(tns + XMLNames.Component_Gearbox, return new XElement(tns + XMLNames.Component_Gearbox,
new XAttribute(XMLNames.Component_CertificationNumber, string.Format("GBX-{0}", gbxData.Model)), new XAttribute(XMLNames.Component_CertificationNumber_Attr, string.Format("GBX-{0}", gbxData.Model)),
new XElement(tns + XMLNames.ComponentDataWrapper, new XElement(tns + XMLNames.ComponentDataWrapper,
new XAttribute(XMLNames.Component_ID_Attr, id), new XAttribute(XMLNames.Component_ID_Attr, id),
GetDefaultComponentElements(string.Format("GBX-{0}", gbxData.Model), gbxData.Model), GetDefaultComponentElements(string.Format("GBX-{0}", gbxData.Model), gbxData.Model),
...@@ -199,7 +199,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -199,7 +199,7 @@ namespace TUGraz.VectoCore.OutputData.XML
} }
var id = string.Format("TC-{0}", data.Model.RemoveWhitespace()); var id = string.Format("TC-{0}", data.Model.RemoveWhitespace());
return new XElement(tns + XMLNames.Component_TorqueConverter, return new XElement(tns + XMLNames.Component_TorqueConverter,
new XAttribute(XMLNames.Component_CertificationNumber, id), new XAttribute(XMLNames.Component_CertificationNumber_Attr, id),
new XElement(tns + XMLNames.ComponentDataWrapper, new XElement(tns + XMLNames.ComponentDataWrapper,
new XAttribute(XMLNames.Component_ID_Attr, id), new XAttribute(XMLNames.Component_ID_Attr, id),
GetDefaultComponentElements(data.TechnicalReportId, data.Model), GetDefaultComponentElements(data.TechnicalReportId, data.Model),
...@@ -218,7 +218,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -218,7 +218,7 @@ namespace TUGraz.VectoCore.OutputData.XML
{ {
var id = string.Format("ANGL-{0}", data.Model.RemoveWhitespace()); var id = string.Format("ANGL-{0}", data.Model.RemoveWhitespace());
return new XElement(tns + XMLNames.Component_Angledrive, return new XElement(tns + XMLNames.Component_Angledrive,
new XAttribute(XMLNames.Component_CertificationNumber, "ANGL-" + data.Model), new XAttribute(XMLNames.Component_CertificationNumber_Attr, "ANGL-" + data.Model),
new XElement(tns + XMLNames.ComponentDataWrapper, new XElement(tns + XMLNames.ComponentDataWrapper,
new XAttribute(XMLNames.Component_ID_Attr, id), new XAttribute(XMLNames.Component_ID_Attr, id),
GetDefaultComponentElements(data.TechnicalReportId, data.Model), GetDefaultComponentElements(data.TechnicalReportId, data.Model),
...@@ -233,7 +233,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -233,7 +233,7 @@ namespace TUGraz.VectoCore.OutputData.XML
{ {
var id = string.Format("RET-{0}", data.Model.RemoveWhitespace()); var id = string.Format("RET-{0}", data.Model.RemoveWhitespace());
return new XElement(tns + XMLNames.Component_Retarder, return new XElement(tns + XMLNames.Component_Retarder,
new XAttribute(XMLNames.Component_CertificationNumber, "RET-none"), new XAttribute(XMLNames.Component_CertificationNumber_Attr, "RET-none"),
new XElement(tns + XMLNames.ComponentDataWrapper, new XElement(tns + XMLNames.ComponentDataWrapper,
new XAttribute(XMLNames.Component_ID_Attr, id), new XAttribute(XMLNames.Component_ID_Attr, id),
GetDefaultComponentElements(data.TechnicalReportId, data.Model), GetDefaultComponentElements(data.TechnicalReportId, data.Model),
...@@ -250,7 +250,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -250,7 +250,7 @@ namespace TUGraz.VectoCore.OutputData.XML
{ {
var typeId = string.Format("AXLGEAR-{0:0.000}", data.Ratio); var typeId = string.Format("AXLGEAR-{0:0.000}", data.Ratio);
return new XElement(tns + XMLNames.Component_Axlegear, return new XElement(tns + XMLNames.Component_Axlegear,
new XAttribute(XMLNames.Component_CertificationNumber, string.Format("AXL-{0}", data.Model)), new XAttribute(XMLNames.Component_CertificationNumber_Attr, string.Format("AXL-{0}", data.Model)),
new XElement(tns + XMLNames.ComponentDataWrapper, new XElement(tns + XMLNames.ComponentDataWrapper,
new XAttribute(XMLNames.Component_ID_Attr, typeId), new XAttribute(XMLNames.Component_ID_Attr, typeId),
GetDefaultComponentElements(typeId, "N.A."), GetDefaultComponentElements(typeId, "N.A."),
...@@ -292,7 +292,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -292,7 +292,7 @@ namespace TUGraz.VectoCore.OutputData.XML
{ {
var id = string.Format("TYRE-{0}", axle.Wheels).RemoveWhitespace().Replace("/", "_"); var id = string.Format("TYRE-{0}", axle.Wheels).RemoveWhitespace().Replace("/", "_");
return new XElement(tns + "Tyre", return new XElement(tns + "Tyre",
new XAttribute(XMLNames.Component_CertificationNumber, id), new XAttribute(XMLNames.Component_CertificationNumber_Attr, id),
new XElement(tns + XMLNames.ComponentDataWrapper, new XElement(tns + XMLNames.ComponentDataWrapper,
new XAttribute(XMLNames.Component_ID_Attr, id), new XAttribute(XMLNames.Component_ID_Attr, id),
GetDefaultComponentElements(string.Format("TYRE-{0}", axle.Wheels), axle.Wheels), GetDefaultComponentElements(string.Format("TYRE-{0}", axle.Wheels), axle.Wheels),
...@@ -327,7 +327,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -327,7 +327,7 @@ namespace TUGraz.VectoCore.OutputData.XML
{ {
var id = string.Format("Airdrag-{0}", data.Model); var id = string.Format("Airdrag-{0}", data.Model);
return new XElement(tns + XMLNames.Component_AirDrag, return new XElement(tns + XMLNames.Component_AirDrag,
new XAttribute(XMLNames.Component_CertificationNumber, string.Format("AD-{0}", data.Model)), new XAttribute(XMLNames.Component_CertificationNumber_Attr, string.Format("AD-{0}", data.Model)),
new XElement(tns + XMLNames.ComponentDataWrapper, new XElement(tns + XMLNames.ComponentDataWrapper,
new XAttribute(XMLNames.Component_ID_Attr, id), new XAttribute(XMLNames.Component_ID_Attr, id),
GetDefaultComponentElements(data.Model, "N.A."), GetDefaultComponentElements(data.Model, "N.A."),
......
...@@ -457,11 +457,11 @@ namespace TUGraz.VectoCore.Resources { ...@@ -457,11 +457,11 @@ namespace TUGraz.VectoCore.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to CertificationNumber. /// Looks up a localized string similar to certificationNumber.
/// </summary> /// </summary>
public static string Component_CertificationNumber { public static string Component_CertificationNumber_Attr {
get { get {
return ResourceManager.GetString("Component_CertificationNumber", resourceCulture); return ResourceManager.GetString("Component_CertificationNumber_Attr", resourceCulture);
} }
} }
......
...@@ -555,8 +555,8 @@ ...@@ -555,8 +555,8 @@
<data name="Component_Model" xml:space="preserve"> <data name="Component_Model" xml:space="preserve">
<value>Model</value> <value>Model</value>
</data> </data>
<data name="Component_CertificationNumber" xml:space="preserve"> <data name="Component_CertificationNumber_Attr" xml:space="preserve">
<value>CertificationNumber</value> <value>certificationNumber</value>
</data> </data>
<data name="Angledrive_LossMap_Entry" xml:space="preserve"> <data name="Angledrive_LossMap_Entry" xml:space="preserve">
<value>Entry</value> <value>Entry</value>
......
...@@ -128,6 +128,10 @@ ...@@ -128,6 +128,10 @@
</Signature> </Signature>
<TorqueConverter> <TorqueConverter>
<Data> <Data>
<Manufacturer>Generic Torqueconverter Manufacturer</Manufacturer>
<Model>Generic Torqueconverter</Model>
<Creator>Markus Quaritsch, TUG ITI</Creator>
<Date>2017-01-11T11:00:00Z</Date>
<ReferenceRPM>1000</ReferenceRPM> <ReferenceRPM>1000</ReferenceRPM>
<Characteristics> <Characteristics>
<Resource type="csv" file="tc_data.vtcc"/> <Resource type="csv" file="tc_data.vtcc"/>
......
...@@ -2552,6 +2552,10 @@ ...@@ -2552,6 +2552,10 @@
</Signature> </Signature>
<TorqueConverter> <TorqueConverter>
<Data> <Data>
<Manufacturer>Generic Torqueconverter Manufacturer</Manufacturer>
<Model>Generic Torqueconverter</Model>
<Creator>Markus Quaritsch, TUG ITI</Creator>
<Date>2017-01-11T11:00:00Z</Date>
<ReferenceRPM>1000</ReferenceRPM> <ReferenceRPM>1000</ReferenceRPM>
<Characteristics> <Characteristics>
<Entry speedRatio="0.0000" inputTorqueRef="300.00" torqueRatio="1.80"/> <Entry speedRatio="0.0000" inputTorqueRef="300.00" torqueRatio="1.80"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment