uddf 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,183 +6,6 @@ require "uddf/base/models"
6
6
  module UDDF
7
7
  module V323
8
8
  module Models
9
- class Manufacturer
10
- include HappyMapper
11
-
12
- tag "manufacturer"
13
-
14
- attribute :id, String
15
- has_one :address, Base::Models::Address
16
- has_many :alias_names, String, tag: "aliasname"
17
- has_one :contact, Base::Models::Contact
18
- has_one :name, String
19
- end
20
-
21
- class Link
22
- include HappyMapper
23
-
24
- tag "link"
25
-
26
- attribute :ref, String
27
- end
28
-
29
- class Generator
30
- include HappyMapper
31
-
32
- tag "generator"
33
-
34
- has_many :alias_names, String, tag: "aliasname"
35
- has_one :datetime, DateTime
36
- has_many :links, Link, tag: "link"
37
- has_one :name, String
38
- has_one :type, String
39
- has_one :version, String
40
- end
41
-
42
- class Notes
43
- include HappyMapper
44
-
45
- tag "notes"
46
-
47
- has_many :paras, String, tag: "para"
48
- has_many :links, Link, tag: "link"
49
- end
50
-
51
- class Price
52
- include HappyMapper
53
-
54
- tag "price"
55
-
56
- attribute :currency, String
57
- content :value, Float
58
- end
59
-
60
- class Tissue
61
- include HappyMapper
62
-
63
- tag "tissue"
64
-
65
- attribute :gas, String
66
- attribute :half_life, Float, tag: "halflife"
67
- attribute :number, Integer
68
- attribute :a, Float
69
- attribute :b, Float
70
- end
71
-
72
- class VPM
73
- include HappyMapper
74
-
75
- tag "vpm"
76
-
77
- attribute :id, String
78
- has_one :conservatism, Float
79
- has_one :gamma, Float
80
- has_one :gc, Float
81
- has_one :lambda, Float
82
- has_one :r0, Float
83
- has_many :tissues, Tissue, tag: "tissue"
84
- end
85
-
86
- class RGBM
87
- include HappyMapper
88
-
89
- tag "rgbm"
90
-
91
- attribute :id, String
92
- has_many :tissues, Tissue, tag: "tissue"
93
- end
94
-
95
- class Buehlmann
96
- include HappyMapper
97
-
98
- tag "buehlmann"
99
-
100
- attribute :id, String
101
- has_one :gradient_factor_high, Float, tag: "gradientfactorhigh"
102
- has_one :gradient_factor_low, Float, tag: "gradientfactorlow"
103
- has_many :tissues, Tissue, tag: "tissue"
104
- end
105
-
106
- class DecoModel
107
- include HappyMapper
108
-
109
- tag "decomodel"
110
-
111
- has_many :buehlmanns, Buehlmann, tag: "buehlmann"
112
- has_many :rgbms, RGBM, tag: "rbgm"
113
- has_many :vpms, VPM, tag: "vpm"
114
- end
115
-
116
- class Mix
117
- include HappyMapper
118
-
119
- tag "mix"
120
-
121
- attribute :id, String
122
- has_many :alias_names, String, tag: "aliasname"
123
- has_one :ar, Float
124
- has_one :equivalent_air_depth, Float, tag: "equivalentairdepth"
125
- has_one :h2, Float
126
- has_one :he, Float
127
- has_one :maximum_operation_depth, Float, tag: "maximumoperationdepth"
128
- has_one :maximum_po2, Float, tag: "maximumpo2"
129
- has_one :n2, Float
130
- has_one :name, String
131
- has_one :o2, Float
132
- has_one :price_per_litre, Price, tag: "priceperlitre"
133
- end
134
-
135
- class GasDefinitions
136
- include HappyMapper
137
-
138
- tag "gasdefinitions"
139
-
140
- has_many :mixes, Mix, tag: "mix"
141
- end
142
-
143
- class WayAltitude
144
- include HappyMapper
145
-
146
- tag "wayaltitude"
147
-
148
- attribute :way_time, Float, tag: "waytime"
149
- content :value, Float
150
- end
151
-
152
- class ExposureToAltitude
153
- include HappyMapper
154
-
155
- tag "exposuretoaltitude"
156
-
157
- has_one :altitude_of_exposure, Float, tag: "altitudeofexposure"
158
- has_one :date_of_flight, Base::Models::DateTimeField, tag: "dateofflight"
159
- has_one :surface_interval_before_altitude_exposure, Float, tag: "surfaceintervalbeforealtitudeexposure"
160
- has_one :total_length_of_exposure, Float, tag: "totallengthofexposure"
161
- has_one :transportation, String
162
- end
163
-
164
- class SurfaceIntervalBeforeDive
165
- include HappyMapper
166
-
167
- tag "surfaceintervalbeforedive"
168
-
169
- has_one :exposure_to_altitude, ExposureToAltitude, tag: "exposuretoaltitude"
170
- has_one :infinity, String
171
- has_one :passed_time, Float, tag: "passedtime"
172
- has_many :way_altitudes, WayAltitude, tag: "wayaltitude"
173
- end
174
-
175
- class SurfaceIntervalAfterDive
176
- include HappyMapper
177
-
178
- tag "surfaceintervalafterdive"
179
-
180
- has_one :exposure_to_altitude, ExposureToAltitude, tag: "exposuretoaltitude"
181
- has_one :infinity, String
182
- has_one :passed_time, Float, tag: "passedtime"
183
- has_many :way_altitudes, WayAltitude, tag: "wayaltitude"
184
- end
185
-
186
9
  class TankPressure
187
10
  include HappyMapper
188
11
 
@@ -280,6 +103,7 @@ module UDDF
280
103
  has_one :dive_time, Float, tag: "divetime"
281
104
  has_one :gradient_factor, GradientFactor, tag: "gradientfactor"
282
105
  has_one :heading, Float
106
+ has_one :heart_rate, Float, tag: "heartrate"
283
107
  has_many :measured_po2s, MeasuredPo2, tag: "measuredpo2"
284
108
  has_one :no_deco_time, Float, tag: "nodecotime"
285
109
  has_one :otu, Float
@@ -289,26 +113,10 @@ module UDDF
289
113
  has_one :switch_mix, SwitchMix, tag: "switchmix"
290
114
  has_many :tank_pressures, TankPressure, tag: "tankpressure"
291
115
  has_one :temperature, Float
292
- end
293
-
294
- class Medicine
295
- include HappyMapper
296
-
297
- tag "medicine"
298
-
299
- has_many :alias_names, String, tag: "aliasname"
300
- has_one :name, String
301
- has_one :notes, Notes
302
- has_one :periodically_taken, String, tag: "periodicallytaken"
303
- has_one :timespan_before_dive, Float, tag: "timespanbeforedive"
304
- end
305
-
306
- class MedicationBeforeDive
307
- include HappyMapper
308
-
309
- tag "medicationbeforedive"
310
-
311
- has_many :medicines, Medicine, tag: "medicine"
116
+ # Added in v3.2.2
117
+ has_one :body_temperature, Float, tag: "bodytemperature"
118
+ has_one :pulse_rate, Float, tag: "pulserate"
119
+ has_many :set_markers, String, tag: "setmarker"
312
120
  end
313
121
 
314
122
  class PlannedProfile
@@ -321,182 +129,39 @@ module UDDF
321
129
  has_many :waypoints, Waypoint, tag: "waypoint"
322
130
  end
323
131
 
324
- class Drink
325
- include HappyMapper
326
-
327
- tag "drink"
328
-
329
- has_many :alias_names, String, tag: "aliasname"
330
- has_one :name, String
331
- has_one :notes, Notes
332
- has_one :periodically_taken, String, tag: "periodicallytaken"
333
- has_one :timespan_before_dive, Float, tag: "timespanbeforedive"
334
- end
335
-
336
- class AlcoholBeforeDive
337
- include HappyMapper
338
-
339
- tag "alcoholbeforedive"
340
-
341
- has_many :drinks, Drink, tag: "drink"
342
- end
343
-
344
132
  class InformationBeforeDive
345
133
  include HappyMapper
346
134
 
347
135
  tag "informationbeforedive"
348
136
 
349
137
  has_one :air_temperature, Float, tag: "airtemperature"
350
- has_one :alcohol_before_dive, AlcoholBeforeDive, tag: "alcoholbeforedive"
138
+ has_one :alcohol_before_dive, Base::Models::AlcoholBeforeDive, tag: "alcoholbeforedive"
351
139
  has_one :altitude, Float
352
140
  has_one :apparatus, String
353
141
  has_one :datetime, DateTime
354
142
  has_one :dive_number, Integer, tag: "divenumber"
355
143
  has_one :dive_number_of_day, Integer, tag: "divenumberofday"
356
144
  has_one :internal_dive_number, Integer, tag: "internaldivenumber"
357
- has_many :links, Link, tag: "link"
358
- has_one :medication_before_dive, MedicationBeforeDive, tag: "medicationbeforedive"
145
+ has_many :links, Base::Models::Link, tag: "link"
146
+ has_one :medication_before_dive, Base::Models::MedicationBeforeDive, tag: "medicationbeforedive"
359
147
  has_one :no_suit, String, tag: "nosuit"
360
148
  has_one :planned_profile, PlannedProfile, tag: "plannedprofile"
361
149
  has_one :platform, String
362
- has_one :price, Price
150
+ has_one :price, Base::Models::Price
363
151
  has_one :purpose, String
364
152
  has_one :state_of_rest_before_dive, String, tag: "stateofrestbeforedive"
365
- has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
153
+ has_one :surface_interval_before_dive, Base::Models::SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
366
154
  has_one :surface_pressure, Float, tag: "surfacepressure"
367
155
  has_one :trip_membership, String, tag: "tripmembership"
368
156
  end
369
157
 
370
- class Rating
371
- include HappyMapper
372
-
373
- tag "rating"
374
-
375
- has_one :datetime, DateTime
376
- has_one :rating_value, Integer, tag: "ratingvalue"
377
- end
378
-
379
- class GlobalAlarmsGiven
380
- include HappyMapper
381
-
382
- tag "globalalarmsgiven"
383
-
384
- has_many :global_alarms, String, tag: "globalalarm"
385
- end
386
-
387
158
  class EquipmentUsed
388
159
  include HappyMapper
389
160
 
390
161
  tag "equipmentused"
391
162
 
392
163
  has_one :lead_quantity, Float, tag: "leadquantity"
393
- has_many :links, Link, tag: "link"
394
- end
395
-
396
- class AnySymptoms
397
- include HappyMapper
398
-
399
- tag "anysymptoms"
400
-
401
- has_one :notes, Notes
402
- end
403
-
404
- class Abundance
405
- include HappyMapper
406
-
407
- tag "abundance"
408
-
409
- attribute :quality, String
410
- attribute :occurrence, String
411
- content :value, Integer
412
- end
413
-
414
- class Species
415
- include HappyMapper
416
-
417
- tag "species"
418
-
419
- attribute :id, String
420
- has_one :abundance, Abundance
421
- has_one :age, Integer
422
- has_one :dominance, String
423
- has_one :life_stage, String, tag: "lifestage"
424
- has_one :notes, Notes
425
- has_one :scientific_name, String, tag: "scientificname"
426
- has_one :sex, String
427
- has_one :size, Float
428
- has_one :trivial_name, String, tag: "trivialname"
429
- end
430
-
431
- class WithSpecies
432
- include HappyMapper
433
-
434
- has_many :species, Species, tag: "species"
435
- end
436
-
437
- class Invertebrata
438
- include HappyMapper
439
-
440
- tag "invertebrata"
441
-
442
- has_one :ascidiacea, WithSpecies
443
- has_one :bryozoan, WithSpecies
444
- has_one :cnidaria, WithSpecies
445
- has_one :coelenterata, WithSpecies
446
- has_one :crustacea, WithSpecies
447
- has_one :ctenophora, WithSpecies
448
- has_one :echinodermata, WithSpecies
449
- has_one :invertebrata_various, WithSpecies, tag: "invertebratavarious"
450
- has_one :mollusca, WithSpecies
451
- has_one :phoronidea, WithSpecies
452
- has_one :plathelminthes, WithSpecies
453
- has_one :porifera, WithSpecies
454
- end
455
-
456
- class Vertebrata
457
- include HappyMapper
458
-
459
- tag "vertebrata"
460
-
461
- has_one :amphibia, WithSpecies
462
- has_one :chondrichthyes, WithSpecies
463
- has_one :mammalia, WithSpecies
464
- has_one :osteichthyes, WithSpecies
465
- has_one :reptilia, WithSpecies
466
- has_one :vertebrata_various, WithSpecies, tag: "vertebratavarious"
467
- end
468
-
469
- class Fauna
470
- include HappyMapper
471
-
472
- tag "fauna"
473
-
474
- has_one :invertebrata, Invertebrata
475
- has_one :notes, Notes
476
- has_one :vertebrata, Vertebrata
477
- end
478
-
479
- class Flora
480
- include HappyMapper
481
-
482
- tag "flora"
483
-
484
- has_one :chlorophyceae, WithSpecies
485
- has_one :flora_various, WithSpecies, tag: "floravarious"
486
- has_one :notes, Notes
487
- has_one :phaeophyceae, WithSpecies
488
- has_one :rhodophyceae, WithSpecies
489
- has_one :spermatophyta, WithSpecies
490
- end
491
-
492
- class Observations
493
- include HappyMapper
494
-
495
- tag "observations"
496
-
497
- has_one :fauna, Fauna
498
- has_one :flora, Flora
499
- has_one :notes, Notes
164
+ has_many :links, Base::Models::Link, tag: "link"
500
165
  end
501
166
 
502
167
  class InformationAfterDive
@@ -504,7 +169,7 @@ module UDDF
504
169
 
505
170
  tag "informationafterdive"
506
171
 
507
- has_one :any_symptoms, AnySymptoms, tag: "anysymptoms"
172
+ has_one :any_symptoms, Base::Models::AnySymptoms, tag: "anysymptoms"
508
173
  has_one :average_depth, Float, tag: "averagedepth"
509
174
  has_one :current, String
510
175
  has_one :desaturation_time, Float, tag: "desaturationtime"
@@ -513,18 +178,18 @@ module UDDF
513
178
  has_one :dive_table, String, tag: "divetable"
514
179
  has_one :equipment_malfunction, String, tag: "equipmentmalfunction"
515
180
  has_one :equipment_used, EquipmentUsed, tag: "equipmentused"
516
- has_one :global_alarms_given, GlobalAlarmsGiven, tag: "globalalarmsgiven"
181
+ has_one :global_alarms_given, Base::Models::GlobalAlarmsGiven, tag: "globalalarmsgiven"
517
182
  has_one :greatest_depth, Float, tag: "greatestdepth"
518
183
  has_one :highest_po2, Float, tag: "highestpo2"
519
184
  has_one :lowest_temperature, Float, tag: "lowesttemperature"
520
185
  has_one :no_flight_time, Float, tag: "noflighttime"
521
- has_one :notes, Notes
522
- has_one :observations, Observations
186
+ has_one :notes, Base::Models::Notes
187
+ has_one :observations, Base::Models::Observations
523
188
  has_one :pressure_drop, Float, tag: "pressuredrop"
524
189
  has_many :problems, String, tag: "problems"
525
190
  has_one :program, String
526
- has_many :ratings, Rating, tag: "rating"
527
- has_one :surface_interval_after_dive, SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
191
+ has_many :ratings, Base::Models::Rating, tag: "rating"
192
+ has_one :surface_interval_after_dive, Base::Models::SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
528
193
  has_one :thermal_comfort, String, tag: "thermalcomfort"
529
194
  has_one :visibility, Float
530
195
  has_one :workload, String
@@ -545,33 +210,12 @@ module UDDF
545
210
 
546
211
  attribute :id, String
547
212
  has_one :breathing_consumption_volume, Float, tag: "breathingconsumptionvolume"
548
- has_many :links, Link, tag: "link"
213
+ has_many :links, Base::Models::Link, tag: "link"
549
214
  has_one :tank_pressure_begin, Float, tag: "tankpressurebegin"
550
215
  has_one :tank_pressure_end, Float, tag: "tankpressureend"
551
216
  has_one :tank_volume, Float, tag: "tankvolume"
552
217
  end
553
218
 
554
- class Hargikas
555
- include HappyMapper
556
-
557
- tag "hargikas"
558
-
559
- has_one :ambient, Float
560
- has_many :tissues, Tissue, tag: "tissue"
561
- has_one :arterial_micro_bubble_level, Integer, tag: "arterialmicrobubbleLevel"
562
- has_one :intrapulmonary_right_left_shunt, Float, tag: "intrapulmonaryrightleftshunt"
563
- has_one :estimated_skin_cool_level, Integer, tag: "estimatedskincoolLevel"
564
- end
565
-
566
- class ApplicationData
567
- include HappyMapper
568
-
569
- tag "applicationdata"
570
-
571
- has_one :deco_trainer, String, tag: "decotrainer"
572
- has_one :hargikas, Hargikas
573
- end
574
-
575
219
  class Dive
576
220
  include HappyMapper
577
221
 
@@ -580,7 +224,7 @@ module UDDF
580
224
  attribute :id, String
581
225
  has_one :information_after_dive, InformationAfterDive, tag: "informationafterdive"
582
226
  has_one :information_before_dive, InformationBeforeDive, tag: "informationbeforedive"
583
- has_one :application_data, ApplicationData, tag: "applicationdata"
227
+ has_one :application_data, Base::Models::ApplicationDataV310, tag: "applicationdata"
584
228
  has_one :samples, Samples
585
229
  has_many :tank_data, TankData, tag: "tankdata"
586
230
  end
@@ -632,7 +276,7 @@ module UDDF
632
276
 
633
277
  tag "inputprofile"
634
278
 
635
- has_many :links, Link, tag: "link"
279
+ has_many :links, Base::Models::Link, tag: "link"
636
280
  has_many :waypoints, Waypoint, tag: "waypoint"
637
281
  end
638
282
 
@@ -653,17 +297,17 @@ module UDDF
653
297
 
654
298
  tag "profile"
655
299
 
656
- has_one :application_data, ApplicationData, tag: "applicationdata"
657
- has_one :deco_model, DecoModel, tag: "decomodel"
300
+ has_one :application_data, Base::Models::ApplicationDataV310, tag: "applicationdata"
301
+ has_one :deco_model, Base::Models::DecoModelV320, tag: "decomodel"
658
302
  has_one :deep_stop_time, Float, tag: "deepstoptime"
659
303
  has_one :density, Float
660
304
  has_one :input_profile, InputProfile, tag: "inputprofile"
661
- has_many :links, Link, tag: "link"
305
+ has_many :links, Base::Models::Link, tag: "link"
662
306
  has_one :maximum_ascending_rate, Float, tag: "maximumascendingrate"
663
307
  has_one :mix_change, MixChange, tag: "mixchange"
664
308
  has_one :output, Output
665
- has_one :surface_interval_after_dive, SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
666
- has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
309
+ has_one :surface_interval_after_dive, Base::Models::SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
310
+ has_one :surface_interval_before_dive, Base::Models::SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
667
311
  has_one :title, String
668
312
  end
669
313
 
@@ -729,9 +373,9 @@ module UDDF
729
373
  tag "bottomtimetable"
730
374
 
731
375
  attribute :id, String
732
- has_one :application_data, ApplicationData, tag: "applicationdata"
376
+ has_one :application_data, Base::Models::ApplicationDataV310, tag: "applicationdata"
733
377
  has_one :bottom_time_table_scope, BottomTimeTableScope, tag: "bottomtimetablescope"
734
- has_many :links, Link, tag: "link"
378
+ has_many :links, Base::Models::Link, tag: "link"
735
379
  has_one :output, Output
736
380
  has_one :title, String
737
381
  end
@@ -754,701 +398,159 @@ module UDDF
754
398
  has_one :calculate_table, CalculateTable, tag: "calculatetable"
755
399
  end
756
400
 
757
- class ImageData
401
+ class Maker
758
402
  include HappyMapper
759
403
 
760
- tag "imagedata"
404
+ tag "maker"
761
405
 
762
- has_one :aperture, Float
763
- has_one :datetime, DateTime
764
- has_one :exposure_compensation, Float, tag: "exposurecompensation"
765
- has_one :film_speed, Integer, tag: "filmspeed"
766
- has_one :focal_length, Float, tag: "focallength"
767
- has_one :focusing_distance, Float, tag: "focusingdistance"
768
- has_one :metering_method, String, tag: "meteringmethod"
769
- has_one :shutter_speed, Float, tag: "shutterspeed"
406
+ has_many :manufacturers, Base::Models::Manufacturer, tag: "manufacturer"
770
407
  end
771
408
 
772
- class Image
409
+ class Business
773
410
  include HappyMapper
774
411
 
775
- tag "image"
412
+ tag "business"
776
413
 
777
- attribute :id, String
778
- attribute :height, Integer
779
- attribute :width, Integer
780
- attribute :format, String
781
- has_one :image_data, ImageData, tag: "imagedata"
782
- has_one :object_name, String, tag: "objectname"
783
- has_one :title, String
414
+ has_one :shop, Base::Models::Shop
784
415
  end
785
416
 
786
- class Video
417
+ class EquipmentPart
787
418
  include HappyMapper
788
419
 
789
- tag "video"
420
+ tag "equipmentpart"
790
421
 
791
422
  attribute :id, String
792
- has_one :object_name, String, tag: "objectname"
793
- has_one :title, String
423
+ has_many :alias_names, String, tag: "aliasname"
424
+ has_many :links, Base::Models::Link, tag: "link"
425
+ has_one :manufacturer, Base::Models::Manufacturer
426
+ has_one :model, String
427
+ has_one :name, String
428
+ has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
429
+ has_one :notes, Base::Models::Notes
430
+ has_one :purchase, Base::Models::Purchase
431
+ has_one :serial_number, String, tag: "serialnumber"
432
+ has_one :service_interval, Integer, tag: "serviceinterval"
794
433
  end
795
434
 
796
- class Audio
435
+ class Lead < EquipmentPart
797
436
  include HappyMapper
798
437
 
799
- tag "audio"
438
+ tag "lead"
800
439
 
801
- attribute :id, String
802
- has_one :object_name, String, tag: "objectname"
803
- has_one :title, String
440
+ has_one :lead_quantity, Integer, tag: "leadquantity"
804
441
  end
805
442
 
806
- class MediaData
443
+ class Rebreather < EquipmentPart
807
444
  include HappyMapper
808
445
 
809
- tag "mediadata"
446
+ tag "rebreather"
810
447
 
811
- has_many :audio_files, Audio, tag: "audio"
812
- has_many :image_files, Image, tag: "image"
813
- has_many :video_files, Video, tag: "video"
448
+ has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
814
449
  end
815
450
 
816
- class Maker
451
+ class Suit < EquipmentPart
817
452
  include HappyMapper
818
453
 
819
- tag "maker"
454
+ tag "suit"
820
455
 
821
- has_many :manufacturers, Manufacturer, tag: "manufacturer"
456
+ has_one :suit_type, String, tag: "suittype"
822
457
  end
823
458
 
824
- class PriceDivePackage
459
+ class Tank < EquipmentPart
825
460
  include HappyMapper
826
461
 
827
- tag "pricedivepackage"
462
+ tag "tank"
828
463
 
829
- attribute :currency, String
830
- attribute :no_of_dives, Integer, tag: "noofdives"
831
- content :value, Float
464
+ has_one :tank_material, String, tag: "tankmaterial"
465
+ has_one :tank_volume, Float, tag: "tankvolume"
832
466
  end
833
467
 
834
- class RelatedDives
468
+ class Camera
835
469
  include HappyMapper
836
470
 
837
- tag "relateddives"
471
+ tag "camera"
838
472
 
839
- has_many :links, Link, tag: "link"
473
+ has_one :body, EquipmentPart
474
+ has_many :flashes, EquipmentPart, tag: "flash"
475
+ has_one :housing, EquipmentPart
476
+ has_one :lens, EquipmentPart
840
477
  end
841
478
 
842
- class ShipDimension
479
+ class EquipmentContent
843
480
  include HappyMapper
844
481
 
845
- tag "shipdimension"
846
-
847
- has_one :beam, Float
848
- has_one :displacement, Float
849
- has_one :draught, Float
850
- has_one :length, Float
851
- has_one :tonnage, Float
482
+ has_many :boots, EquipmentPart, tag: "boots"
483
+ has_many :buoyancy_control_devices, EquipmentPart, tag: "buoyancycontroldevice"
484
+ has_many :cameras, Camera, tag: "camera"
485
+ has_many :compasses, EquipmentPart, tag: "compass"
486
+ has_many :dive_computers, EquipmentPart, tag: "divecomputer"
487
+ has_many :fins, EquipmentPart, tag: "fins"
488
+ has_many :gloves, EquipmentPart, tag: "gloves"
489
+ has_many :knives, EquipmentPart, tag: "knife"
490
+ has_many :leads, Lead, tag: "lead"
491
+ has_many :lights, EquipmentPart, tag: "light"
492
+ has_many :masks, EquipmentPart, tag: "mask"
493
+ has_many :rebreathers, Rebreather, tag: "rebreather"
494
+ has_many :regulators, EquipmentPart, tag: "regulator"
495
+ has_many :scooters, EquipmentPart, tag: "scooter"
496
+ has_many :suits, Suit, tag: "suit"
497
+ has_many :tanks, Tank, tag: "tank"
498
+ has_many :various_pieces, EquipmentPart, tag: "variouspieces"
499
+ has_many :video_cameras, EquipmentPart, tag: "videocamera"
500
+ has_many :watches, EquipmentPart, tag: "watch"
852
501
  end
853
502
 
854
- class Vessel
503
+ class EquipmentConfiguration < EquipmentContent
855
504
  include HappyMapper
856
505
 
857
- tag "vessel"
506
+ tag "equipmentconfiguration"
858
507
 
859
- has_one :address, Base::Models::Address
860
508
  has_many :alias_names, String, tag: "aliasname"
861
- has_one :contact, Base::Models::Contact
862
- has_one :marina, String
509
+ has_many :links, Base::Models::Link, tag: "link"
863
510
  has_one :name, String
864
- has_one :notes, Notes
865
- has_many :ratings, Rating, tag: "rating"
866
- has_one :ship_dimension, ShipDimension, tag: "shipdimension"
867
- has_one :ship_type, String, tag: "shiptype"
511
+ has_one :notes, Base::Models::Notes
868
512
  end
869
513
 
870
- class Operator
514
+ class Equipment < EquipmentContent
871
515
  include HappyMapper
872
516
 
873
- tag "operator"
874
-
875
- has_many :alias_names, String, tag: "aliasname"
876
- has_one :address, Base::Models::Address
877
- has_one :contact, Base::Models::Contact
878
- has_one :name, String
879
- has_one :notes, Notes
880
- has_many :ratings, Rating, tag: "rating"
881
- end
882
-
883
- class DateOfTrip
884
- include HappyMapper
885
-
886
- tag "dateoftrip"
887
-
888
- attribute :start_date, DateTime, tag: "startdate"
889
- attribute :end_date, DateTime, tag: "enddate"
890
- end
891
-
892
- class Accommodation
893
- include HappyMapper
894
-
895
- tag "accommodation"
896
-
897
- has_one :address, Base::Models::Address
898
- has_many :alias_names, String, tag: "aliasname"
899
- has_one :category, String
900
- has_one :contact, Base::Models::Contact
901
- has_one :name, String
902
- has_one :notes, Notes
903
- has_many :ratings, Rating, tag: "rating"
904
- end
905
-
906
- class Geography
907
- include HappyMapper
908
-
909
- tag "geography"
910
-
911
- has_one :address, Base::Models::Address
912
- has_one :altitude, Float
913
- has_one :latitude, Float
914
- has_one :location, String
915
- has_one :longitude, Float
916
- has_one :time_zone, Float, tag: "timezone"
917
- end
918
-
919
- class TripPart
920
- include HappyMapper
921
-
922
- tag "trippart"
923
-
924
- attribute :type, String
925
- has_one :accommodation, Accommodation
926
- has_one :date_of_trip, DateOfTrip, tag: "dateoftrip"
927
- has_one :geography, Geography
928
- has_many :links, Link, tag: "link"
929
- has_one :name, String
930
- has_one :notes, Notes
931
- has_one :operator, Operator
932
- has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
933
- has_one :price_per_dive, Price, tag: "priceperdive"
934
- has_one :related_dives, RelatedDives, tag: "relateddives"
935
- has_one :vessel, Vessel
936
- end
937
-
938
- class Trip
939
- include HappyMapper
940
-
941
- tag "trip"
942
-
943
- attribute :id, String
944
- has_many :alias_names, String, tag: "aliasname"
945
- has_one :name, String
946
- has_many :ratings, Rating, tag: "rating"
947
- has_many :trip_parts, TripPart, tag: "trippart"
948
- end
949
-
950
- class DiveTrip
951
- include HappyMapper
952
-
953
- tag "divetrip"
954
-
955
- has_many :trips, Trip, tag: "trip"
956
- end
957
-
958
- class Ecology
959
- include HappyMapper
960
-
961
- tag "ecology"
962
-
963
- has_one :fauna, Fauna
964
- has_one :flora, Flora
965
- end
966
-
967
- class Built
968
- include HappyMapper
969
-
970
- tag "built"
971
-
972
- has_one :launching_date, Base::Models::DateTimeField, tag: "launchingdate"
973
- has_one :ship_yard, String, tag: "shipyard"
974
- end
975
-
976
- class Wreck
977
- include HappyMapper
978
-
979
- tag "wreck"
980
-
981
- has_many :alias_names, String, tag: "aliasname"
982
- has_one :built, Built
983
- has_one :name, String
984
- has_one :nationality, String
985
- has_one :ship_dimension, ShipDimension, tag: "shipdimension"
986
- has_one :ship_type, String, tag: "shiptype"
987
- has_one :sunk, Base::Models::DateTimeField
988
- end
989
-
990
- class Shore
991
- include HappyMapper
992
-
993
- tag "shore"
994
-
995
- attribute :id, String
996
- has_many :alias_names, String, tag: "aliasname"
997
- has_one :name, String
998
- has_one :notes, Notes
999
- end
1000
-
1001
- class River
1002
- include HappyMapper
1003
-
1004
- tag "river"
1005
-
1006
- attribute :id, String
1007
- has_many :alias_names, String, tag: "aliasname"
1008
- has_one :name, String
1009
- has_one :notes, Notes
1010
- end
1011
-
1012
- class Lake
1013
- include HappyMapper
1014
-
1015
- tag "lake"
1016
-
1017
- attribute :id, String
1018
- has_many :alias_names, String, tag: "aliasname"
1019
- has_one :name, String
1020
- has_one :notes, Notes
1021
- end
1022
-
1023
- class Indoor
1024
- include HappyMapper
1025
-
1026
- tag "indoor"
1027
-
1028
- has_one :address, Base::Models::Address
1029
- has_many :alias_names, String, tag: "aliasname"
1030
- has_one :contact, Base::Models::Contact
1031
- has_one :name, String
1032
- has_one :notes, Notes
1033
- end
1034
-
1035
- class Cave
1036
- include HappyMapper
1037
-
1038
- tag "cave"
1039
-
1040
- attribute :id, String
1041
- has_many :alias_names, String, tag: "aliasname"
1042
- has_one :name, String
1043
- has_one :notes, Notes
1044
- end
1045
-
1046
- class SiteData
1047
- include HappyMapper
1048
-
1049
- tag "sidedata"
1050
-
1051
- has_one :area_length, Float, tag: "arealength"
1052
- has_one :area_width, Float, tag: "areawidth"
1053
- has_one :average_visibility, Float, tag: "averagevisibility"
1054
- has_one :bottom, String
1055
- has_one :cave, Cave
1056
- has_one :density, Float
1057
- has_one :difficulty, Integer
1058
- has_one :global_light_intensity, String, tag: "globallightintensity"
1059
- has_one :indoor, Indoor
1060
- has_one :maximum_depth, Float, tag: "maximumdepth"
1061
- has_one :maximum_visibility, Float, tag: "maximumvisibility"
1062
- has_one :minimum_depth, Float, tag: "minimumdepth"
1063
- has_one :minimum_visibility, Float, tag: "minimumvisibility"
1064
- has_one :river, River
1065
- has_one :shore, Shore
1066
- has_one :terrain, String
1067
- has_one :wreck, Wreck
1068
- end
1069
-
1070
- class Site
1071
- include HappyMapper
1072
-
1073
- tag "site"
1074
-
1075
- attribute :id, String
1076
- has_many :alias_names, String, tag: "aliasname"
1077
- has_one :ecology, Ecology
1078
- has_one :environment, String
1079
- has_one :geography, Geography
1080
- has_many :links, Link, tag: "link"
1081
- has_one :name, String
1082
- has_one :notes, Notes
1083
- has_many :ratings, Rating, tag: "rating"
1084
- has_one :side_data, SiteData, tag: "sitedata"
1085
- end
1086
-
1087
- class Guide
1088
- include HappyMapper
1089
-
1090
- tag "guide"
1091
-
1092
- has_many :links, Link, tag: "link"
1093
- end
1094
-
1095
- class DiveBase
1096
- include HappyMapper
1097
-
1098
- tag "divebase"
1099
-
1100
- attribute :id, String
1101
- has_one :address, Base::Models::Address
1102
- has_many :alias_names, String, tag: "aliasname"
1103
- has_one :contact, Base::Models::Contact
1104
- has_many :guides, Guide, tag: "guide"
1105
- has_many :links, Link, tag: "link"
1106
- has_one :name, String
1107
- has_one :notes, Notes
1108
- has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
1109
- has_one :price_per_dive, Price, tag: "priceperdive"
1110
- has_many :ratings, Rating, tag: "rating"
1111
- end
1112
-
1113
- class DiveSite
1114
- include HappyMapper
1115
-
1116
- tag "divesite"
1117
-
1118
- has_many :dive_bases, DiveBase, tag: "divebase"
1119
- has_many :sites, Site, tag: "site"
1120
- end
1121
-
1122
- class Shop
1123
- include HappyMapper
1124
-
1125
- tag "shop"
1126
-
1127
- has_many :alias_names, String, tag: "aliasname"
1128
- has_one :address, Base::Models::Address
1129
- has_one :contact, Base::Models::Contact
1130
- has_one :name, String
1131
- has_one :notes, Notes
1132
- end
1133
-
1134
- class Business
1135
- include HappyMapper
1136
-
1137
- tag "business"
1138
-
1139
- has_one :shop, Shop
1140
- end
1141
-
1142
- class Membership
1143
- include HappyMapper
1144
-
1145
- tag "membership"
1146
-
1147
- attribute :organisation, String
1148
- attribute :member_id, String, tag: "memberid"
1149
- end
1150
-
1151
- class NumberOfDives
1152
- include HappyMapper
1153
-
1154
- tag "numberofdives"
1155
-
1156
- has_one :start_date, DateTime, tag: "startdate"
1157
- has_one :end_date, DateTime, tag: "enddate"
1158
- has_one :dives, Integer
1159
- end
1160
-
1161
- class Personal
1162
- include HappyMapper
1163
-
1164
- tag "personal"
1165
-
1166
- has_one :birth_date, Base::Models::DateTimeField, tag: "birthdate"
1167
- has_one :birth_name, String, tag: "birthname"
1168
- has_one :blood_group, String, tag: "bloodgroup"
1169
- has_one :first_name, String, tag: "firstname"
1170
- has_one :height, Float
1171
- has_one :honorific, String
1172
- has_one :last_name, String, tag: "lastname"
1173
- has_one :membership, Membership
1174
- has_one :middle_name, String, tag: "middlename"
1175
- has_one :number_of_dives, NumberOfDives, tag: "numberofdives"
1176
- has_one :sex, String
1177
- has_one :smoking, String
1178
- has_one :weight, Float
1179
- end
1180
-
1181
- class Instructor
1182
- include HappyMapper
1183
-
1184
- tag "instructor"
1185
-
1186
- has_one :address, Base::Models::Address
1187
- has_one :contact, Base::Models::Contact
1188
- has_one :personal, Personal
1189
- end
1190
-
1191
- class Certification
1192
- include HappyMapper
1193
-
1194
- tag "certification"
1195
-
1196
- has_one :certificate_number, String, tag: "certificatenumber"
1197
- has_one :instructor, Instructor
1198
- has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
1199
- has_one :level, String
1200
- has_one :link, Link
1201
- has_one :organization, String
1202
- has_one :specialty, String
1203
- has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
1204
- end
1205
-
1206
- class Education
1207
- include HappyMapper
1208
-
1209
- tag "education"
1210
-
1211
- has_many :certifications, Certification, tag: "certification"
1212
- end
1213
-
1214
- class Insurance
1215
- include HappyMapper
1216
-
1217
- tag "insurance"
1218
-
1219
- has_many :alias_names, String, tag: "aliasname"
1220
- has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
1221
- has_one :name, String
1222
- has_one :notes, Notes
1223
- has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
1224
- end
1225
-
1226
- class DiveInsurances
1227
- include HappyMapper
1228
-
1229
- tag "diveinsurances"
1230
-
1231
- has_many :insurances, Insurance, tag: "insurance"
1232
- end
1233
-
1234
- class Permit
1235
- include HappyMapper
1236
-
1237
- tag "permit"
1238
-
1239
- has_many :alias_names, String, tag: "aliasname"
1240
- has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
1241
- has_one :name, String
1242
- has_one :notes, Notes
1243
- has_one :region, String
1244
- has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
1245
- end
1246
-
1247
- class DivePermissions
1248
- include HappyMapper
1249
-
1250
- tag "divepermissions"
1251
-
1252
- has_many :permits, Permit, tag: "permit"
1253
- end
1254
-
1255
- class Purchase
1256
- include HappyMapper
1257
-
1258
- tag "purchase"
1259
-
1260
- has_one :datetime, DateTime
1261
- has_one :link, Link
1262
- has_one :price, Price
1263
- has_one :shop, Shop
1264
- end
1265
-
1266
- class EquipmentPart
1267
- include HappyMapper
1268
-
1269
- tag "equipmentpart"
1270
-
1271
- attribute :id, String
1272
- has_many :alias_names, String, tag: "aliasname"
1273
- has_many :links, Link, tag: "link"
1274
- has_one :manufacturer, Manufacturer
1275
- has_one :model, String
1276
- has_one :name, String
1277
- has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
1278
- has_one :notes, Notes
1279
- has_one :purchase, Purchase
1280
- has_one :serial_number, String, tag: "serialnumber"
1281
- has_one :service_interval, Integer, tag: "serviceinterval"
1282
- end
1283
-
1284
- class Lead < EquipmentPart
1285
- include HappyMapper
1286
-
1287
- tag "lead"
1288
-
1289
- has_one :lead_quantity, Integer, tag: "leadquantity"
1290
- end
1291
-
1292
- class Rebreather < EquipmentPart
1293
- include HappyMapper
1294
-
1295
- tag "rebreather"
1296
-
1297
- has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
1298
- end
1299
-
1300
- class Suit < EquipmentPart
1301
- include HappyMapper
1302
-
1303
- tag "suit"
1304
-
1305
- has_one :suit_type, String, tag: "suittype"
1306
- end
1307
-
1308
- class Tank < EquipmentPart
1309
- include HappyMapper
1310
-
1311
- tag "tank"
1312
-
1313
- has_one :tank_material, String, tag: "tankmaterial"
1314
- has_one :tank_volume, Float, tag: "tankvolume"
1315
- end
1316
-
1317
- class Camera
1318
- include HappyMapper
1319
-
1320
- tag "camera"
1321
-
1322
- has_one :body, EquipmentPart
1323
- has_many :flashes, EquipmentPart, tag: "flash"
1324
- has_one :housing, EquipmentPart
1325
- has_one :lens, EquipmentPart
1326
- end
1327
-
1328
- class EquipmentContent
1329
- include HappyMapper
1330
-
1331
- has_many :boots, EquipmentPart, tag: "boots"
1332
- has_many :buoyancy_control_devices, EquipmentPart, tag: "buoyancycontroldevice"
1333
- has_many :cameras, Camera, tag: "camera"
1334
- has_many :compasses, EquipmentPart, tag: "compass"
1335
- has_many :dive_computers, EquipmentPart, tag: "divecomputer"
1336
- has_many :fins, EquipmentPart, tag: "fins"
1337
- has_many :gloves, EquipmentPart, tag: "gloves"
1338
- has_many :knives, EquipmentPart, tag: "knife"
1339
- has_many :leads, Lead, tag: "lead"
1340
- has_many :lights, EquipmentPart, tag: "light"
1341
- has_many :masks, EquipmentPart, tag: "mask"
1342
- has_many :rebreathers, Rebreather, tag: "rebreather"
1343
- has_many :regulators, EquipmentPart, tag: "regulator"
1344
- has_many :scooters, EquipmentPart, tag: "scooter"
1345
- has_many :suits, Suit, tag: "suit"
1346
- has_many :tanks, Tank, tag: "tank"
1347
- has_many :various_pieces, EquipmentPart, tag: "variouspieces"
1348
- has_many :video_cameras, EquipmentPart, tag: "videocamera"
1349
- has_many :watches, EquipmentPart, tag: "watch"
1350
- end
1351
-
1352
- class EquipmentConfiguration < EquipmentContent
1353
- include HappyMapper
1354
-
1355
- tag "equipmentconfiguration"
1356
-
1357
- has_many :alias_names, String, tag: "aliasname"
1358
- has_many :links, Link, tag: "link"
1359
- has_one :name, String
1360
- has_one :notes, Notes
1361
- end
1362
-
1363
- class Equipment < EquipmentContent
1364
- include HappyMapper
1365
-
1366
- tag "equipment"
517
+ tag "equipment"
1367
518
 
1368
519
  has_many :compressors, EquipmentPart, tag: "compressor"
1369
520
  has_one :equipment_configuration, EquipmentConfiguration, tag: "equipmentconfiguration"
1370
521
  end
1371
522
 
1372
- class Doctor
1373
- include HappyMapper
1374
-
1375
- tag "doctor"
1376
-
1377
- attribute :id, String
1378
- has_one :address, Base::Models::Address
1379
- has_one :contact, Base::Models::Contact
1380
- has_one :personal, Personal
1381
- end
1382
-
1383
- class Examination
1384
- include HappyMapper
1385
-
1386
- tag "examination"
1387
-
1388
- has_one :datetime, DateTime
1389
- has_one :doctor, Doctor
1390
- has_one :examination_result, String, tag: "examinationresult"
1391
- has_many :links, Link, tag: "link"
1392
- has_one :notes, Notes
1393
- has_one :total_lung_capacity, Float, tag: "totallungcapacity"
1394
- has_one :vital_capacity, Float, tag: "vitalcapacity"
1395
- end
1396
-
1397
- class Medical
1398
- include HappyMapper
1399
-
1400
- tag "medical"
1401
-
1402
- has_one :examination, Examination
1403
- end
1404
-
1405
523
  class BuddyOwnerShared
1406
524
  include HappyMapper
1407
525
 
1408
526
  attribute :id, String
1409
527
  has_one :address, Base::Models::Address
1410
528
  has_one :contact, Base::Models::Contact
1411
- has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
1412
- has_one :dive_permissions, DivePermissions, tag: "divepermissions"
529
+ has_one :dive_insurances, Base::Models::DiveInsurances, tag: "diveinsurances"
530
+ has_one :dive_permissions, Base::Models::DivePermissions, tag: "divepermissions"
1413
531
  has_one :equipment, Equipment
1414
- has_one :medical, Medical
1415
- has_one :notes, Notes
1416
- has_one :personal, Personal
532
+ has_one :medical, Base::Models::Medical
533
+ has_one :notes, Base::Models::Notes
534
+ has_one :personal, Base::Models::Personal
1417
535
  end
1418
536
 
1419
- class Buddy
537
+ class Buddy < BuddyOwnerShared
1420
538
  include HappyMapper
1421
539
 
1422
540
  tag "buddy"
1423
541
 
1424
542
  attribute :id, String
1425
- has_one :address, Base::Models::Address
1426
- has_one :contact, Base::Models::Contact
1427
- has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
1428
- has_one :dive_permissions, DivePermissions, tag: "divepermissions"
1429
- has_one :equipment, Equipment
1430
- has_one :medical, Medical
1431
- has_one :notes, Notes
1432
- has_one :personal, Personal
1433
- has_one :certification, Certification
543
+ has_one :certification, Base::Models::CertificationV322
1434
544
  has_one :student, String
1435
545
  end
1436
546
 
1437
- class Owner
547
+ class Owner < BuddyOwnerShared
1438
548
  include HappyMapper
1439
549
 
1440
550
  tag "owner"
1441
551
 
1442
552
  attribute :id, String
1443
- has_one :address, Base::Models::Address
1444
- has_one :contact, Base::Models::Contact
1445
- has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
1446
- has_one :dive_permissions, DivePermissions, tag: "divepermissions"
1447
- has_one :equipment, Equipment
1448
- has_one :medical, Medical
1449
- has_one :notes, Notes
1450
- has_one :personal, Personal
1451
- has_one :education, Education
553
+ has_one :education, Base::Models::EducationV322
1452
554
  end
1453
555
 
1454
556
  class Diver
@@ -1460,133 +562,6 @@ module UDDF
1460
562
  has_one :owner, Owner
1461
563
  end
1462
564
 
1463
- class DCAlarm
1464
- include HappyMapper
1465
-
1466
- tag "dcalarm"
1467
-
1468
- has_one :acknowledge, String
1469
- has_one :alarm_type, Integer, tag: "alarmtype"
1470
- has_one :period, Float
1471
- end
1472
-
1473
- class SetDCDiveDepthAlarm
1474
- include HappyMapper
1475
-
1476
- tag "setdcdivedethalarm"
1477
-
1478
- has_one :dc_alarm, DCAlarm, tag: "dcalarm"
1479
- has_one :dc_alarm_depth, Float, tag: "dcalarmdepth"
1480
- end
1481
-
1482
- class SetDCDivePo2Alarm
1483
- include HappyMapper
1484
-
1485
- tag "setdcdivepo2alarm"
1486
-
1487
- has_one :dc_alarm, DCAlarm, tag: "dcalarm"
1488
- has_one :maximum_po2, Float, tag: "maximumpo2"
1489
- end
1490
-
1491
- class SetDCDiveSiteData
1492
- include HappyMapper
1493
-
1494
- tag "setdcdivesitedata"
1495
-
1496
- attribute :dive_site, String, tag: "divesite"
1497
- end
1498
-
1499
- class SetDCDiveTimeAlarm
1500
- include HappyMapper
1501
-
1502
- tag "setdcdivetimealarm"
1503
-
1504
- has_one :dc_alarm, DCAlarm, tag: "dcalarm"
1505
- has_one :timespan, Float
1506
- end
1507
-
1508
- class SetDCEndNDTAlarm
1509
- include HappyMapper
1510
-
1511
- tag "setdcendndtalarm"
1512
-
1513
- has_one :dc_alarm, DCAlarm, tag: "dcalarm"
1514
- end
1515
-
1516
- class SetDCDecoModel
1517
- include HappyMapper
1518
-
1519
- tag "setdcdecomodel"
1520
-
1521
- has_many :alias_names, String, tag: "aliasname"
1522
- has_one :application_data, ApplicationData, tag: "applicationdata"
1523
- has_one :name, String
1524
- end
1525
-
1526
- class SetDCBuddyData
1527
- include HappyMapper
1528
-
1529
- tag "setdcbuddydata"
1530
-
1531
- attribute :buddy, String
1532
- end
1533
-
1534
- class SetDCData
1535
- include HappyMapper
1536
-
1537
- tag "setdcdata"
1538
-
1539
- has_one :set_dc_alarm_time, DateTime, tag: "setdcalarmtime"
1540
- has_one :set_dc_altitude, Float, tag: "setdcaltitude"
1541
- has_one :set_dc_buddy_data, SetDCBuddyData, tag: "setdcbuddydata"
1542
- has_one :set_dc_date_time, DateTime, tag: "setdcdatetime"
1543
- has_one :set_dc_deco_model, SetDCDecoModel, tag: "setdcdecomodel"
1544
- has_one :set_dc_dive_depth_alarm, SetDCDiveDepthAlarm, tag: "setdcdivedethalarm"
1545
- has_one :set_dc_dive_po2_alarm, SetDCDivePo2Alarm, tag: "setdcdivepo2alarm"
1546
- has_many :set_dc_dive_site_data, SetDCDiveSiteData, tag: "setdcdivesitedata"
1547
- has_one :set_dc_dive_time_alarm, SetDCDiveTimeAlarm, tag: "setdcdivetimealarm"
1548
- has_one :set_dc_end_ndt_alarm, SetDCEndNDTAlarm, tag: "setdcendndtalarm"
1549
- has_one :set_dc_gas_definitions_data, String, tag: "setdcgasdefinitionsdata"
1550
- has_one :set_dc_owner_data, String, tag: "setdcownerdata"
1551
- has_one :set_dc_password, String, tag: "setdcpassword"
1552
- has_one :set_dc_generator_data, String, tag: "setdcgeneratordata"
1553
- end
1554
-
1555
- class GetDCData
1556
- include HappyMapper
1557
-
1558
- tag "getdcdata"
1559
-
1560
- has_one :get_dc_all_data, String, tag: "getdcalldata"
1561
- has_one :get_dc_generator_data, String, tag: "getdcgeneratordata"
1562
- has_one :get_dc_owner_data, String, tag: "getdcownerdata"
1563
- has_one :get_dc_buddy_data, String, tag: "getdcbuddydata"
1564
- has_one :get_dc_gas_definitions_data, String, tag: "getdcgasdefinitionsdata"
1565
- has_one :get_dc_dive_site_data, String, tag: "getdcdivesitedata"
1566
- has_one :get_dc_dive_trip_data, String, tag: "getdcdivetripdata"
1567
- has_one :get_dc_profile_data, String, tag: "getdcprofiledata"
1568
- end
1569
-
1570
- class DiveComputerDump
1571
- include HappyMapper
1572
-
1573
- tag "divecomputerdump"
1574
-
1575
- has_one :datetime, DateTime
1576
- has_one :dc_dump, String, tag: "dcdump"
1577
- has_one :link, Link
1578
- end
1579
-
1580
- class DiveComputerControl
1581
- include HappyMapper
1582
-
1583
- tag "divecomputercontrol"
1584
-
1585
- has_many :dive_computer_dumps, DiveComputerDump, tag: "divecomputerdump"
1586
- has_one :get_dc_data, GetDCData, tag: "getdcdata"
1587
- has_one :set_dc_data, SetDCData, tag: "setdcdata"
1588
- end
1589
-
1590
565
  class Uddf
1591
566
  include HappyMapper
1592
567
 
@@ -1594,15 +569,15 @@ module UDDF
1594
569
 
1595
570
  attribute :version, String
1596
571
  has_one :business, Business
1597
- has_one :deco_model, DecoModel, tag: "decomodel"
1598
- has_one :dive_computer_control, DiveComputerControl, tag: "divecomputercontrol"
572
+ has_one :deco_model, Base::Models::DecoModelV320, tag: "decomodel"
573
+ has_one :dive_computer_control, Base::Models::DiveComputerControlV310, tag: "divecomputercontrol"
1599
574
  has_one :diver, Diver
1600
- has_one :dive_site, DiveSite, tag: "divesite"
1601
- has_one :dive_trip, DiveTrip, tag: "divetrip"
1602
- has_one :gas_definitions, GasDefinitions, tag: "gasdefinitions"
1603
- has_one :generator, Generator
575
+ has_one :dive_site, Base::Models::DiveSite, tag: "divesite"
576
+ has_one :dive_trip, Base::Models::DiveTrip, tag: "divetrip"
577
+ has_one :gas_definitions, Base::Models::GasDefinitions, tag: "gasdefinitions"
578
+ has_one :generator, Base::Models::Generator
1604
579
  has_one :maker, Maker
1605
- has_one :media_data, MediaData, tag: "mediadata"
580
+ has_one :media_data, Base::Models::MediaData, tag: "mediadata"
1606
581
  has_one :profile_data, ProfileData, tag: "profiledata"
1607
582
  has_one :table_generation, TableGeneration, tag: "tablegeneration"
1608
583
  end