yuliangruan / scca-car-classer

This project codifies the SCCA vehicle classification rules and allows for easy verification of a vehicle configuration to abide to the its running class.
GNU General Public License v3.0
0 stars 0 forks source link

create a model of "Vehicle" that holds a user's vehicle attributes #1

Open yuliangruan opened 7 years ago

yuliangruan commented 7 years ago

WHEN I have an object of type Vehicle THEN I will have these attributes: 1) model year 2) make (e.g. Acura, BMW, Ford) 3) model (e.g. Integra, 328i, Mustang) 4) trim level (e.g. GS/GSR/TypeR, i/ic/is/ix, base/GT/Cobra) 5) hp 6) curb weight 7) seats (2 seater or 4 seater) 8) modifications list

WHEN I have a instance of a Vehicle, THEN its make attribute will be a value that comes from the prepopulated Makes data

WHEN I have an instance of a Vehicle THEN its model attribute will be a value that comes from the prepopulated MakeModels data based on the year and make attributes

WHEN I have an instance of a Vehicle THEN its trim attribute will be a value that comes from the prepopulated MakeModelTrims data based on the year and make and model attributes

WHEN I have an instance of a Vehicle's THEN its hp, curb weight, hp, curb weight, seats attributes will be a value that comes from the prepopulated MakeModelAttributes data based on year, make, model and trim values

yuliangruan commented 7 years ago

we should make data models for Make and Model and perhaps try to prepopulate trim levels, hp, weight, seats. we can probably find that data online and make an initial static copy and update as necessary.

yuliangruan commented 7 years ago

modification list definitely needs be selected from precreated list of the rulebook allowed mods