diff --git a/README.md b/README.md index 8b5ae3b21..fa50a3180 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # Starter Repo + This repo has everything you need to get started on the program, good luck! + + diff --git a/engine/application/usecase/create_car.py b/engine/application/usecase/create_car.py new file mode 100644 index 000000000..d3ee97e85 --- /dev/null +++ b/engine/application/usecase/create_car.py @@ -0,0 +1,3 @@ +from abc import ABC + +import domain.battery.entities \ No newline at end of file diff --git a/engine/application/usecase/implementation/create_carImplem.py b/engine/application/usecase/implementation/create_carImplem.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/__init__.py b/engine/domain/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/battery/entities/nubbin_battery.py b/engine/domain/battery/entities/nubbin_battery.py new file mode 100644 index 000000000..4282e7a54 --- /dev/null +++ b/engine/domain/battery/entities/nubbin_battery.py @@ -0,0 +1,7 @@ +import domain.car +from datetime import datetime + +class NubbinBattery(car): + def __init__(self, last_service_date, current_date): + self.last_service_date = last_service_date + self.current_date = current_date diff --git a/engine/domain/battery/entities/spindler_battery.py b/engine/domain/battery/entities/spindler_battery.py new file mode 100644 index 000000000..b0caeb529 --- /dev/null +++ b/engine/domain/battery/entities/spindler_battery.py @@ -0,0 +1,7 @@ +import domain.car +from datetime import datetime + +class SpindlerBattery(car): + def __init__(self, last_service_date, current_date): + self.last_service_date = last_service_date + self.current_date = current_date diff --git a/engine/domain/battery/facade/batteryFacade.py b/engine/domain/battery/facade/batteryFacade.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/car/entities/calliope.py b/engine/domain/car/entities/calliope.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/car/entities/glissade.py b/engine/domain/car/entities/glissade.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/car/entities/palindrome.py b/engine/domain/car/entities/palindrome.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/car/entities/rorschach.py b/engine/domain/car/entities/rorschach.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/car/entities/thovex.py b/engine/domain/car/entities/thovex.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/car/facade/serviceable.py b/engine/domain/car/facade/serviceable.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/car/factory/carFactory.py b/engine/domain/car/factory/carFactory.py new file mode 100644 index 000000000..c225f9363 --- /dev/null +++ b/engine/domain/car/factory/carFactory.py @@ -0,0 +1,40 @@ +from abc import ABC + +class Car(): + def __init__(self, battery, engine, car_type): + self.battery = battery + self.engine = engine + self.car_type = car_type + car_type = []**5 + + def create_car(self, battery, engine, car_type): + car_type = [calliope['',''], glissade['',''], palindrome['',''], rorschach['',''], thovex['','']] + if battery == 'spindler' and engine == 'capulet': + calliope = ['spindler', 'capulet'] + car_type[calliope] = calliope + + elif battery == 'spindler' and engine == 'willoughby': + glissade = Car('spindler', 'wiloughby') + car_type[glissade] = glissade + + elif battery == 'spindler' and engine == 'sternman': + palindrome = Car('spindler', 'sternman') + car_type[palindrome] = palindrome + + elif battery == 'nubbin' and engine == 'willoughby': + rorschach = Car('nubbin', 'willoughby') + car_type[rorschach] = rorschach + + elif battery == 'nubbin' and engine == 'capulet': + thovex = Car('nubbin', 'capulet') + car_type[thovex] = thovex + + return car_type + + + + + + + + diff --git a/engine/domain/car/repository/carRepository.py b/engine/domain/car/repository/carRepository.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/engine/entities/capulet_engine.py b/engine/domain/engine/entities/capulet_engine.py new file mode 100644 index 000000000..f8841b086 --- /dev/null +++ b/engine/domain/engine/entities/capulet_engine.py @@ -0,0 +1,5 @@ +import engine.domain.car +class CapuletEngine(): + def __init__(self, last_service_mileage, current_mileage): + self.last_service_mileage = last_service_mileage + self.current_mileage = current_mileage \ No newline at end of file diff --git a/engine/domain/engine/entities/sternman_engine.py b/engine/domain/engine/entities/sternman_engine.py new file mode 100644 index 000000000..ab8242afb --- /dev/null +++ b/engine/domain/engine/entities/sternman_engine.py @@ -0,0 +1,4 @@ +import engine.domain.car +class SternmanEngine(): + def __init__(self, warning_light_is_on): + self.warning_light_is_on = warning_light_is_on diff --git a/engine/domain/engine/entities/willoughby_engine.py b/engine/domain/engine/entities/willoughby_engine.py new file mode 100644 index 000000000..e69de29bb diff --git a/engine/domain/engine/facade/engineFacade.py b/engine/domain/engine/facade/engineFacade.py new file mode 100644 index 000000000..e69de29bb