Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/data/xsd/fcd_file.xsd
169668 views
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

    <xsd:include schemaLocation="types/base.xsd"/>

    <xsd:element name="fcd-export">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element minOccurs="0" maxOccurs="unbounded" ref="timestep"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="timestep">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element minOccurs="0" maxOccurs="unbounded" ref="vehicle"/>
                <xsd:element minOccurs="0" maxOccurs="unbounded" name="person" type="transportableType"/>
                <xsd:element minOccurs="0" maxOccurs="unbounded" name="container" type="transportableType"/>
            </xsd:sequence>
            <xsd:attribute name="time" use="required" type="nonNegativeFloatType"/>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="vehicle">
        <xsd:complexType>
            <xsd:attribute name="id" type="xsd:string" use="required"/>

            <xsd:attribute name="x" type="floatType" use="optional"/>
            <xsd:attribute name="y" type="floatType" use="optional"/>
            <xsd:attribute name="z" type="floatType" use="optional"/>
            <xsd:attribute name="angle" type="floatType" use="optional"/>
            <xsd:attribute name="type" type="xsd:string" use="optional"/>

            <xsd:attribute name="speed" type="nonNegativeFloatType" use="optional"/>
            <xsd:attribute name="pos" type="nonNegativeFloatType" use="optional"/>
            <xsd:attribute name="lane" type="xsd:string" use="optional"/>
            <xsd:attribute name="edge" type="xsd:string" use="optional"/>
            <xsd:attribute name="slope" type="floatType" use="optional"/>
            <xsd:attribute name="signals" type="xsd:int" use="optional"/>
            <xsd:attribute name="acceleration" type="floatType" use="optional"/>
            <xsd:attribute name="accelerationLat" type="floatType" use="optional"/>
            <xsd:attribute name="distance" type="floatType" use="optional"/>
            <xsd:attribute name="odometer" type="floatType" use="optional"/>
            <xsd:attribute name="posLat" type="floatType" use="optional"/>
            <xsd:attribute name="speedLat" type="floatType" use="optional"/>
            <xsd:attribute name="leaderID" type="xsd:string" use="optional"/>
            <xsd:attribute name="leaderSpeed" type="floatType" use="optional"/>
            <xsd:attribute name="leaderGap" type="floatType" use="optional"/>
            <xsd:attribute name="segment" type="xsd:int" use="optional"/>
            <xsd:attribute name="queue" type="xsd:int" use="optional"/>
            <xsd:attribute name="entryTime" type="timeType" use="optional"/>
            <xsd:attribute name="eventTime" type="timeType" use="optional"/>
            <xsd:attribute name="blockTime" type="timeTypeWithErrorValue" use="optional"/>
        </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="transportableType">
        <xsd:attribute name="id" type="xsd:string" use="required"/>

        <xsd:attribute name="x" type="floatType" use="optional"/>
        <xsd:attribute name="y" type="floatType" use="optional"/>
        <xsd:attribute name="z" type="floatType" use="optional"/>
        <xsd:attribute name="angle" type="floatType" use="optional"/>

        <xsd:attribute name="type" use="optional" type="xsd:string"/>

        <xsd:attribute name="speed" type="nonNegativeFloatType" use="optional"/>
        <xsd:attribute name="pos" type="nonNegativeFloatType" use="optional"/>
        <xsd:attribute name="edge" type="xsd:string" use="optional"/>
        <xsd:attribute name="slope" type="floatType" use="optional"/>
        <xsd:attribute name="vehicle" type="xsd:string" use="optional"/>
    </xsd:complexType>
</xsd:schema>