SHARE
TWEET

Untitled

a guest Sep 19th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum Make {
  2.   FORD
  3.   TOYOTA
  4.   HONDA
  5.   VOLKSWAGEN
  6.   BMW
  7. }
  8.  
  9. enum AutonomyLevel {
  10.   NONE
  11.   DRIVER_ASSISTANCE
  12.   PARTIAL_ASSISTANCE
  13.   CONDITIONAL_ASSISTANCE
  14.   HIGH_AUTOMATION
  15.   FULL_AUTOMATION
  16. }
  17.  
  18. enum Country {
  19.   JAPAN
  20.   SOUTH_KOREA
  21.   USA
  22.   GERMANY
  23.   UK
  24.   CHINA
  25.   RUSSIA
  26.   INDIA
  27.   SPAIN
  28.   BRAZIL
  29.   MEXICO
  30.   FRANCE
  31.   IRAN
  32.   CZECH_REPUBLIC
  33.   TURKEY
  34.   SLOVAKIA
  35.   INDONESIA
  36.   THAILAND
  37.   CANADA
  38.   ITALY
  39.   MALAYSIA
  40. }
  41.  
  42. enum AutomobileType {
  43.   CAR
  44.   MOTORBIKE
  45.   BUS
  46.   TRUCK
  47. }
  48.  
  49. type Automobile {
  50.   type: AutomobileType
  51.   registration: String
  52.   vin: String
  53.   make: Make
  54.   model: String
  55.   yearOfManufacture: Int
  56.   countryOfManufacture: Country
  57.   autonomyLevel: AutonomyLevel
  58. }
  59.  
  60. enum RailVehicleType {
  61.   TRAIN
  62.   TRAM
  63. }
  64.  
  65. type RailVehicle {
  66.   type: RailVehicleType
  67. }
  68.  
  69. enum HumanPoweredVehicleType {
  70.   BICYCLE
  71.   TRICYCLE
  72.   VELOMOBILE
  73.   SKATEBOARD
  74.   SCOOTER
  75.   RICKSHAW
  76.   WHEELCHAIR
  77. }
  78.  
  79. type HumanPoweredVehicle {
  80.   type: HumanPoweredVehicleType
  81. }
  82.  
  83. union Vehicle = Automobile | RailVehicle | HumanPoweredVehicle
  84.  
  85. type Event {
  86.   type: String
  87.   time: Int
  88.   latitude: Float
  89.   longitude: Float
  90.   severity: Int
  91.   damagedVehicles: [Vehicle]
  92.   otherVehicles: [Vehicle]
  93.   crashSpeed: Int
  94. }
  95.  
  96. input Timerange {
  97.   start: Int
  98.   end: Int
  99. }
  100.  
  101. input EventInput {
  102.   type: String
  103.   time: Int
  104.   latitude: Float
  105.   longitude: Float
  106.   severity: Int
  107.   crashSpeed: Int
  108. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top