Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit aada907c authored by Franz KOBER josef's avatar Franz KOBER josef
Browse files

added ElectircMachine and BoostingLimitation

parent c74882de
Branches
Tags
No related merge requests found
......@@ -287,7 +287,7 @@
</xsl:if>
</xsl:template>
<!-- ElectricMotorTorqueLimits -->
<!-- ElectricMachineTorqueLimits -->
<xsl:template match="*[local-name()='ElectricMachine' and ./*[local-name()='Position']]">
<xsl:if test="count(preceding-sibling::*[local-name()='ElectricMachine']) = 0">
<xsl:for-each select="../*[local-name()='ElectricMachine']">
......@@ -299,7 +299,7 @@
</xsl:if>
</xsl:template>
<!-- AUX SteeringPump -->
<!-- For AUX Component SteeringPump -->
<xsl:template match="*[local-name()='SteeringPump']">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*"/>
......@@ -310,6 +310,27 @@
</xsl:element>
</xsl:template>
<!-- For ElectricMachine component at HEV-Px, HEV-S2, HEV-S3, HEV-S4, PEV-E2, PEV-E3 and PEV-E4 -->
<xsl:template match="*[local-name()='P2.5GearRatios']">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*"/>
<xsl:for-each select="*">
<xsl:sort data-type="number" select="@gear" order="ascending"/>
<xsl:apply-templates select="."/>
</xsl:for-each>
</xsl:element>
</xsl:template>
<!-- For Vehicle HEV IEPC-S and Vehicle HEV-Px -->
<xsl:template match="*[local-name()='BoostingLimitations']">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*"/>
<xsl:for-each select="*">
<xsl:sort data-type="number" select="@rotationalSpeed" order="ascending"/>
<xsl:apply-templates select="."/>
</xsl:for-each>
</xsl:element>
</xsl:template>
......
......@@ -93,6 +93,12 @@
</VoltageLevel>
</ElectricMachine>
</ElectricMotorTorqueLimits>
<BoostingLimitations xmlns:v2.10.2="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.10.2" xsi:type="v2.10.2:BoostingLimitationsType">
<Entry rotationalSpeed="0.10" boostingTorque="0.30"/>
<Entry rotationalSpeed="0.12" boostingTorque="0.40"/>
<Entry rotationalSpeed="1.30" boostingTorque="0.60"/>
<Entry rotationalSpeed="1.40" boostingTorque="0.60"/>
</BoostingLimitations>
<Components xsi:type="Components_HEV-IEPC-S_LorryType">
<Engine>
<v2.0:Data xsi:type="v1.0:EngineDataDeclarationType" id="ENG-gooZah3D" xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v1.0">
......
......@@ -94,6 +94,12 @@
</VoltageLevel>
</ElectricMachine>
</ElectricMotorTorqueLimits>
<BoostingLimitations xmlns:v2.10.2="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.10.2" xsi:type="v2.10.2:BoostingLimitationsType">
<Entry rotationalSpeed="0.12" boostingTorque="0.40"/>
<Entry rotationalSpeed="0.10" boostingTorque="0.30"/>
<Entry rotationalSpeed="1.40" boostingTorque="0.60"/>
<Entry rotationalSpeed="1.30" boostingTorque="0.60"/>
</BoostingLimitations>
<Components xsi:type="Components_HEV-IEPC-S_LorryType">
<Engine>
<v2.0:Data xsi:type="v1.0:EngineDataDeclarationType" id="ENG-gooZah3D" xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v1.0">
......
......@@ -17,8 +17,8 @@ namespace VectoHashingTest
Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory);
}
[TestCase("IpWiBzrQINrCc3ZqloHqhPROp7XLcAAfHlTf1IRxsGg=", SortedComponentPath + "HEV-S_heavyLorry_IEPC-S.xml")]
[TestCase("IpWiBzrQINrCc3ZqloHqhPROp7XLcAAfHlTf1IRxsGg=", UnsortedComponentPath + "HEV-S_heavyLorry_IEPC-S.xml")]
[TestCase("NBawT5DzeZHW9gIupRB8uNtII+JYLP/JxgiMKMaskpg=", SortedComponentPath + "HEV-S_heavyLorry_IEPC-S.xml")]
[TestCase("NBawT5DzeZHW9gIupRB8uNtII+JYLP/JxgiMKMaskpg=", UnsortedComponentPath + "HEV-S_heavyLorry_IEPC-S.xml")]
public void TestJobHashSort(string expectedJobHash, string filePath)
{
var loadedFile = VectoHash.Load(filePath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment