NREL / routee-compass

An energy-aware routing engine
https://nrel.github.io/routee-compass/
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

VehicleParameters as an enum #207

Open nreinicke opened 4 months ago

nreinicke commented 4 months ago

PR #204 introduced the concept of the VehicleParameter.

@robfitzgerald points out that:

we may want to come back around to this module and relax the design of the VehicleParameters so that queries can provide a subset of the parameters, for example, when that information is not available for a vehicle. we could do this by turning VehicleParameters into an enum and deserializing a Vec from the user query. if that were the case, we could even avoid the mandatory O(n) sweep for each Vec because we could match by type only the relevant restrictions.