Home » railML newsgroups » railML.infrastructure » How to mark the end of a speed restriction?
Re: How to mark the end of a speed restriction? [message #1229 is a reply to message #1228] Fri, 20 June 2014 07:15 Go to previous messageGo to previous message
Christian Rahmig is currently offline  Christian Rahmig
Messages: 151
Registered: January 2011
Senior Member
Dear Susanne,

Am 12.06.2014 23:32, schrieb Susanne Wunsch:
> [...]
>
> Why not to enhance this type with an xs:union and restricted xs:string
> for the xs:enumeration value "end"? It would be the same way, as already
> done with "rail:tOtherEnumerationValue".

Thank you very much for your input. And this is how I implemented:
I introduced a new simple data type "tVMax", which may contain a speed
value in kmph as well as the string value "end":

<xs:simpleType name="tVMax">
<xs:union>
<xs:simpleType>
<xs:restriction base="rail:tSpeedKmPerHour" />
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="end" />
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>

The speedChange's attribute @vMax uses this data type.

I hope this solution solves the problem with the undefined maximum speed
at the end of a temporary speed restriction zone and I appreciate your
comments about it...

Best regards

--
Christian Rahmig
railML.infrastructure coordinator
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [railML3] Booster transformers in RailML
Next Topic: Requirements for RTCI-a (Infrastructure) UC
Goto Forum:
  


Current Time: Thu May 09 04:23:19 CEST 2024