Home » railML newsgroups » railML.infrastructure » [railML 2] IS:005 - ocp/@parentOcpRef Semantic Constraint
[railML 2] IS:005 - ocp/@parentOcpRef Semantic Constraint [message #3031] Mon, 25 July 2022 11:23 Go to previous message
Milan Wölke is currently offline  Milan Wölke
Messages: 139
Registered: April 2007
Senior Member
Hi all,

This post is to inform you about the approval of the semantic constraint IS:005 of the ocp by the timetable developer group as requested by the IS coordinator. It is a constraint that describes that if an ocp refers to a parent ocp via its attribute @parentOcpRef, then all the contents described in this "child" ocp overwrite those of the parent ocp. The timetable group discussed this and as a result approved this semantic.
This is the exact wording of the semantic constraint:

An <ocp> that refers to a parent <ocp> via an @parentOcpRef overwrites the attributes and elements of the parent <ocp> if explicitely defined. If an element is specified on an <ocp> that uses a @parentOcpRef any information provided with that element on a higher layer of the <ocp>-tree is overwritten. There is no merging of element-information from different levels. The same applies for attributes of <ocp>. For further information see example below.

With that we also tried to clarify some of the detail questions that arise when trying to implement this kind of semantics, i.e. what does it mean if a child ocp specified a propOperational/@trafficType while the parent defines the propOperational/@operationalType, are those two informations to be merged to describe the child or not. We agreed that information should not be merged in subelements of ocp between layers and also provided an example in the best practice section: https://wiki2.railml.org/wiki/IS:ocp#Overwriting_of_attribut es.2Felements_in_lower_levels_of_an_.3Cocp.3Es_hierarchy


Please let us know if you have concerns or want to suggest how to improve documentation.

Best regards, Milan


Milan Wölke – Timetable scheme coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
 
Read Message
Read Message
Previous Topic: [railML 3] Defining passing points for ATO data
Next Topic: [railML3] Suggestion for sub-use cases of use case "ETCS Track Net"
Goto Forum:
  


Current Time: Mon Apr 29 07:15:49 CEST 2024