RS:operator: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(|semcon={{startEndCon}}) |
(Updated example. Removed use of deprecated elements and human readable IDs. Linked to CO:vehicleOperator) |
||
(One intermediate revision by one other user not shown) | |||
Line 12: | Line 12: | ||
|childs = | |childs = | ||
{{RS:Tag|vehicleIdentification}} {{Intro|2.3}} | {{RS:Tag|vehicleIdentification}} {{Intro|2.3}} | ||
|minocc=0 | |||
|maxocc=∞ | |||
|ownAttributes = | |ownAttributes = | ||
* {{Attr|operatorClass}}: This is the class number or identification the operator has given to this vehicle. | * {{Attr|operatorClass}}: This is the class number or identification the operator has given to this vehicle. | ||
* {{Attr|operatorName}} {{Depr|2.2}}: This is the name of the operator at the time of using this vehicle. | * {{Attr|operatorName}} {{Depr|2.2}}: This is the name of the operator at the time of using this vehicle. | ||
* {{Attr|vehicleOperatorRef}} {{Intro|2.2}}: Reference to a common list of | * {{Attr|vehicleOperatorRef}} {{Intro|2.2}}: Reference to a common list of {{CO:Tag|vehicleOperator}}s. It shall be used in preference to {{Attr|operatorName}}. | ||
* {{Attr|startDate}}: This is the begin of validity period of operator data for this vehicle, i.e. the period when the vehicle was used by that operator.{{StartEndDoc}} | * {{Attr|startDate}}: This is the begin of validity period of operator data for this vehicle, i.e. the period when the vehicle was used by that operator.{{StartEndDoc}} | ||
* {{Attr|endDate}}: This is the end of validity period of operator data for this vehicle, i.e. the period when the vehicle was used by that operator.{{StartEndDoc}} | * {{Attr|endDate}}: This is the end of validity period of operator data for this vehicle, i.e. the period when the vehicle was used by that operator.{{StartEndDoc}} | ||
Line 29: | Line 30: | ||
|example = | |example = | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<vehicle id=' | <metadata> | ||
<organizationalUnits> | |||
<vehicleOperator id='vop_1' name='NSB'/> | |||
<vehicleOperator id='vop_2' name='DB'/> | |||
<vehicleManufacturer id='vm_3' name='Siemens Verkehrstechnik'/> | |||
</organizationalUnits> | |||
</metadata> | |||
<!-- ... --> | |||
<vehicle id='veh_123' axleSequence='Co'Co' de' numberDrivenAxles='6' length='20.960' speed='160' bruttoWeight='122' nettoAdhesionWeight='122'> | |||
<classification> | <classification> | ||
<manufacturer | <manufacturer vehicleManufacturerRef='vm_3' manufacturer-Type='ME26'/> | ||
<operator | <operator vehicleOperatorRef='vop_1' operatorClass='Di6'/> | ||
<operator | <operator vehicleOperatorRef='vop_2' operatorClass='251'/> | ||
</classification> | </classification> | ||
</vehicle> | </vehicle></syntaxhighlight> | ||
</syntaxhighlight> | |||
|backHome = RS:elements | |backHome = RS:elements | ||
}} | }} |
Latest revision as of 06:53, 26 November 2020
operator
Scheme description / Schemenbeschreibung
Position of operator in the XML-Tree / Position von operator im XML-Baum
- Parent: <classification>
- Children: <vehicleIdentification> (introduced with version 2.3)
Multiplicity / Anzahl
Semantics / Bedeutung
The element <operator> contains all data an vehicle operator typically uses for identification and management of its vehicles. It is possible to have several operators listed for one vehicle.
Das Element <operator> enthält alle Daten des Betreibers für die Identifizierung und Verwaltung. Es besteht die Möglichkeit, dem Fahrzeug mehrere Betreiber zuzordnen.
Please, be aware of the semantic constraint(s)!
Attributes of operator / Attribute von operator
- operatorClass: This is the class number or identification the operator has given to this vehicle.
- operatorName (deprecated with version 2.2): This is the name of the operator at the time of using this vehicle.
- vehicleOperatorRef (introduced with version 2.2): Reference to a common list of <vehicleOperator>s. It shall be used in preference to operatorName.
- startDate: This is the begin of validity period of operator data for this vehicle, i.e. the period when the vehicle was used by that operator. Please, recognize the semantic constraint.
- endDate: This is the end of validity period of operator data for this vehicle, i.e. the period when the vehicle was used by that operator. Please, recognize the semantic constraint.
Syntactic Constraints / Syntaktische Beschränkungen
- operatorClass: xs:string, mandatory
- operatorName: xs:string, optional
- vehicleOperatorRef: xs:IDREF, optional
- startDate: xs:date, optional; shall be lower or equal endDate if both are used.
- endDate: xs:date, optional; shall be higher or equal endDate if both are used.
With the startDate and endDate attributes the validity of the operator data is limited to the given time period. Thus the relation between the vehicle and operator can be unique for any particular date.
Semantic Constraints / Semantische Beschränkungen
|
Best practice & Examples / Empfohlene Anwendung & Beispiele
<metadata> <organizationalUnits> <vehicleOperator id='vop_1' name='NSB'/> <vehicleOperator id='vop_2' name='DB'/> <vehicleManufacturer id='vm_3' name='Siemens Verkehrstechnik'/> </organizationalUnits> </metadata> <!-- ... --> <vehicle id='veh_123' axleSequence='Co'Co' de' numberDrivenAxles='6' length='20.960' speed='160' bruttoWeight='122' nettoAdhesionWeight='122'> <classification> <manufacturer vehicleManufacturerRef='vm_3' manufacturer-Type='ME26'/> <operator vehicleOperatorRef='vop_1' operatorClass='Di6'/> <operator vehicleOperatorRef='vop_2' operatorClass='251'/> </classification> </vehicle>
Notes / Anmerkungen
Not yet described. / Noch nicht beschrieben.
Open issues / Offene Punkte/Pendenzen
Not yet described. / Noch nicht beschrieben.