Delete comments
This commit is contained in:
parent
dc4a82ce8a
commit
0b3518f5a3
|
@ -20,34 +20,27 @@ class Vehicle:
|
|||
|
||||
@property
|
||||
def id(self):
|
||||
""":return: int"""
|
||||
return self._vehicle_id
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
""":return: str"""
|
||||
return self._name
|
||||
|
||||
@property
|
||||
def fuel_consumption_rate(self):
|
||||
""":return: float"""
|
||||
return self._fuel_consumption_rate
|
||||
|
||||
@property
|
||||
def fuel_consumption_unit(self):
|
||||
""":return: str"""
|
||||
return self._fuel_consumption_unit
|
||||
|
||||
@property
|
||||
def carbon_emission_factor(self):
|
||||
""":return: float"""
|
||||
return self._carbon_emission_factor
|
||||
|
||||
@property
|
||||
def carbon_emission_unit(self):
|
||||
""":return: str"""
|
||||
return self._carbon_emission_unit
|
||||
|
||||
def total_vehicle_emission(self):
|
||||
""":return: float"""
|
||||
return self._fuel_consumption_rate * self._carbon_emission_factor
|
||||
|
|
Loading…
Reference in New Issue
Block a user