32 #ifndef MSDevice_Battery_h 33 #define MSDevice_Battery_h 117 MSDevice_Battery(
SUMOVehicle& holder,
const std::string&
id,
const SUMOReal actualBatteryCapacity,
const SUMOReal maximumBatteryCapacity,
const SUMOReal powerMax,
const SUMOReal mass,
const SUMOReal frontSurfaceArea,
const SUMOReal airDragCoefficient,
const SUMOReal internalMomentOfInertia,
const SUMOReal radialDragCoefficient,
const SUMOReal rollDragCoefficient,
const SUMOReal constantPowerIntake,
const SUMOReal propulsionEfficiency,
const SUMOReal recuperationEfficiency,
const SUMOReal lastAngle,
const SUMOReal lastEnergy);
SUMOReal getPropEnergy(SUMOVehicle &veh)
get propulsion energy
void setFrontSurfaceArea(const SUMOReal frontSurfaceArea)
Set vehicle's front surface Area.
SUMOReal myActualBatteryCapacity
Parameter, The actual vehicles's Battery Capacity in kWh [myActualBatteryCapacity <= myMaximumBatter...
SUMOReal getLastEnergy() const
Get vehicles's last Energy.
MSChargingStation * myActChargingStation
Parameter, Pointer to current charging station in which vehicle is placed by default is NULL...
void setLastEnergy(const SUMOReal lastEnergy)
Set vehicle's last Energy.
void setPowerMax(const SUMOReal new_Pmax)
Set maximum power when accelerating.
SUMOReal myFrontSurfaceArea
Parameter, Vehicle's front surface Area [myFrontSurfaceArea >= 0].
void setRollDragCoefficient(const SUMOReal rollDragCoefficient)
Set vehicle's roll friction coefficient.
SUMOReal getMaximumBatteryCapacity() const
Get the total vehicle's Battery Capacity in kWh.
void increaseVehicleStoppedTimer()
Increase myVehicleStopped.
SUMOReal getEnergyCharged() const
Get charged energy.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice *> &into)
Build devices for the given vehicle, if needed.
SUMOReal myChargingStartTime
Parameter, Moment, wich the vehicle has beging to charging none.
void setActualBatteryCapacity(const SUMOReal actualBatteryCapacity)
Set actual vehicle's Battery Capacity in kWh.
int myVehicleStopped
Parameter, How many timestep the vehicle is stopped.
SUMOReal myLastAngle
Parameter, Vehicle's last angle none.
SUMOReal getFrontSurfaceArea() const
Get vehicle's front surface Area.
Notification
Definition of a vehicle state.
SUMOReal getLastAngle() const
Get vehicles's last angle.
SUMOReal getActualBatteryCapacity() const
Get the actual vehicle's Battery Capacity in kWh.
std::string getChargingStationID() const
Get current Charging Station ID.
SUMOReal getRecuperationEfficiency() const
Get vehicles's Recuparation efficiency.
SUMOReal getPropulsionEfficiency() const
Get vehicles's Propulsion efficiency.
bool notifyMove(SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed)
Checks for waiting steps when the vehicle moves.
int getVehicleStopped() const
Get number of timestep that vehicle is stopped.
SUMOReal myAirDragCoefficient
Parameter, Vehicle's drag coefficient [myAirDragCoefficient >=0].
bool myChargingStopped
Parameter, Flag: Vehicles it's charging stopped by default is false.
SUMOReal getAirDragCoefficient() const
Get vehicle's drag coefficient.
SUMOReal myPropulsionEfficiency
Parameter, Vehicle's propulsion efficiency [1 >= myPropulsionEfficiency >= 0].
bool isChargingStopped() const
Get true if Vehicle is charging, false if not.
SUMOReal myPowerMax
Parameter, The Maximum Power when accelerating [myPowerMax >= 0].
SUMOReal getRollDragCoefficient() const
Get vehicles's roll friction coefficient.
SUMOReal myConsum
Parameter, Vehicle consum during a time step by default is 0.
void setRadialDragCoefficient(const SUMOReal radialDragCoefficient)
Set vehicle's radial friction coefficient.
void resetVehicleStoppedTimer()
Reset myVehicleStopped.
SUMOReal myLastEnergy
Parameter, Vehicle's last energy none.
void setPropulsionEfficiency(const SUMOReal propulsionEfficiency)
Set vehicle's Propulsion efficiency.
Representation of a vehicle.
void setMass(const SUMOReal mass)
Set vehicle's myMass.
SUMOReal getConstantPowerIntake() const
Get vehicles's constant power intake.
SUMOReal myMaximumBatteryCapacity
Parameter, The total vehicles's Battery Capacity in kWh [myMaximumBatteryCapacity >= 0]...
void setLastAngle(const SUMOReal lastAngle)
Set vehicle's last Angle.
void resetChargingStartTime()
Reset charging start time.
SUMOReal getInternalMomentOfInertia() const
Get vehicles's internal moment of inertia.
void setRecuperationEfficiency(const SUMOReal recuperationEfficiency)
Set vehicle's Recuparation efficiency.
MSDevice_Battery & operator=(const MSDevice_Battery &)
Invalidated assignment operator.
bool myChargingInTransit
Parameter, Flag: Vehicles it's charging in transit by default is false.
SUMOReal myRecuperationEfficiency
Parameter, Vehicle's recuparation efficiency [1 >= myRecuperationEfficiency >= 0].
void setInternalMomentOfInertia(const SUMOReal internalMomentOfInertia)
Set vehicle's internal moment of inertia.
SUMOReal myInternalMomentOfInertia
Parameter, Vehicle's internal moment of inertia [myInternalMomentOfInertia >= 0].
Abstract in-vehicle device.
Battery device for electric vehicles.
void increaseChargingStartTime()
Increase Charging Start time.
SUMOReal myConstantPowerIntake
Parameter, Vehicle's constant power intake [myConstantPowerIntake >= 0].
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_Example-options.
A storage for options typed value containers)
SUMOReal getConsum() const
Get consum.
void setMaximumBatteryCapacity(const SUMOReal maximumBatteryCapacity)
Set total vehicle's Battery Capacity in kWh.
bool notifyEnter(SUMOVehicle &veh, MSMoveReminder::Notification reason)
Saves departure info on insertion.
SUMOReal myRollDragCoefficient
Parameter, Vehicle's roll friction coefficient [myRollDragCoefficient >= 0].
SUMOReal myRadialDragCoefficient
Parameter, Vehicle's radial friction coefficient [myRadialDragCoefficient >=0].
SUMOReal getChargingStartTime() const
Get charging start time.
void generateOutput() const
Called on writing tripinfo output.
bool isChargingInTransit() const
Get true if Vehicle it's charging, false if not.
SUMOReal myMass
Parameter, Vehicle's myMass [myMass >= 0].
MSDevice_Battery(SUMOVehicle &holder, const std::string &id, const SUMOReal actualBatteryCapacity, const SUMOReal maximumBatteryCapacity, const SUMOReal powerMax, const SUMOReal mass, const SUMOReal frontSurfaceArea, const SUMOReal airDragCoefficient, const SUMOReal internalMomentOfInertia, const SUMOReal radialDragCoefficient, const SUMOReal rollDragCoefficient, const SUMOReal constantPowerIntake, const SUMOReal propulsionEfficiency, const SUMOReal recuperationEfficiency, const SUMOReal lastAngle, const SUMOReal lastEnergy)
Constructor.
SUMOReal getMaximumPower() const
Get the maximum power when accelerating.
void setConstantPowerIntake(const SUMOReal constantPowerIntake)
Set vehicle's constant power intake.
void setAirDragCoefficient(const SUMOReal new_C_Veh)
Set vehicle's drag coefficient.
SUMOReal getRadialDragCoefficient() const
Get vehicles's radial friction coefficient.
SUMOReal getMass() const
Get vehicle's mass.
SUMOReal myEnergyCharged
Parameter, Energy charged in each timestep.
~MSDevice_Battery()
Destructor.