BasBrunink / tpdb_SandBox

1 stars 0 forks source link

[BE] Ride Resource #4

Open BasBrunink opened 1 month ago

BasBrunink commented 1 month ago

DoD:

Diagram

classDiagram
    class Ride {
        <<abstract>>
        - String name
        - String type
        - String description
        - Park park
        - Location location
        - List<RideReviews> reviews
        - InvolvedCompanies involvedCompanies
        - RideRestrictions restrictions
        - RideFacilities facilities
        - LocalDate openingDate
        - LocalDate closingDate
        - OperationalStatus operationalStatus
        - LuggageHandling luggageHandling
        - BuildingType buildingType
        - int capacity
        - int duration
        - String theme
        - String name
        - RideType  type
        - LocalDate opening
        - LocalDate closing
        - OperationalStatus operationalStatus
    }
    class Park {
        see Park Model
    }
    Park "1" -- "*" Ride : has

    class Location {
        - String street;
        - String city;
        - String state;
        - String postalCode;
        - String country;
        - double latitude;
        - double longitude;
    }

    Ride "1" -- "1" Location : has

    class WaterRide {
        - WaterRideType waterRideType
        - Vehicle vehicle
    }
    class FlatRide {

        - FlatRideType flatRideType;
    }
    class RollerCoaster {
        - RollerCoasterType rollerCoasterType
        - int length
        - int numberOfInversions
        - int height
        - int topSpeed
        - int topGforce
        - int numberOfTrains
        - int numberOfCarsPerTrain
        - int rowsPerCar
        - int seatsPerRow
        - int personsPerTrain
        - boolean bigBoySeats
        - RestraintType restraintType
        - List<ElementsOnRollerCoaster> elementsOnRollerCoasters
    }

    class TrackedRide {
        - TrackedRideType trackedRideType
        - Vehicle vehicle
        - int length
    }

    class TransportRide {
        - TransportRideType transportRideType
        - Vehicle vehicle
    }

    class DarkRide { 
      - DarkRideCategory
      - DarkRideType
      - Company Manufacturer
      - Company Designer
    }

    BaseModel <|-- Ride
    Ride <|-- DarkRide
    Ride <|-- WaterRide
    Ride <|-- FlatRide
    Ride <|-- RollerCoaster
    Ride <|-- TrackedRide
    Ride <|-- TransportRide
BasBrunink commented 1 month ago

Enums need to be fleshed out and we need to thing about all the main ride types

Use Coaster.cloud Europa park to fill a dummy dataset in BAckendApplication

BasBrunink commented 1 month ago

Up to DarkRide inserted