Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first commit #136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Starter Repo

This repo has everything you need to get started on the program, good luck!

<!-- model folder is the old implementation -->
3 changes: 3 additions & 0 deletions engine/application/usecase/create_car.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from abc import ABC

import domain.battery.entities
Empty file.
Empty file added engine/domain/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions engine/domain/battery/entities/nubbin_battery.py
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions engine/domain/battery/entities/spindler_battery.py
Original file line number Diff line number Diff line change
@@ -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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
40 changes: 40 additions & 0 deletions engine/domain/car/factory/carFactory.py
Original file line number Diff line number Diff line change
@@ -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








Empty file.
5 changes: 5 additions & 0 deletions engine/domain/engine/entities/capulet_engine.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions engine/domain/engine/entities/sternman_engine.py
Original file line number Diff line number Diff line change
@@ -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
Empty file.
Empty file.