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);
bool isChargingStopped() const
Get true if Vehicle is charging, false if not.
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...
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.
SUMOReal getFrontSurfaceArea() const
Get vehicle's front surface Area.
SUMOReal getConsum() const
Get consum.
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.
void increaseVehicleStoppedTimer()
Increase myVehicleStopped.
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.
Notification
Definition of a vehicle state.
SUMOReal getRadialDragCoefficient() const
Get vehicles's radial friction coefficient.
int getVehicleStopped() const
Get number of timestep that vehicle is stopped.
bool notifyMove(SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed)
Checks for waiting steps when the vehicle moves.
SUMOReal getRollDragCoefficient() const
Get vehicles's roll friction coefficient.
SUMOReal getAirDragCoefficient() const
Get vehicle's drag coefficient.
SUMOReal myAirDragCoefficient
Parameter, Vehicle's drag coefficient [myAirDragCoefficient >=0].
bool myChargingStopped
Parameter, Flag: Vehicles it's charging stopped by default is false.
SUMOReal getMaximumPower() const
Get the maximum power when accelerating.
SUMOReal myPropulsionEfficiency
Parameter, Vehicle's propulsion efficiency [1 >= myPropulsionEfficiency >= 0].
SUMOReal myPowerMax
Parameter, The Maximum Power when accelerating [myPowerMax >= 0].
SUMOReal getEnergyCharged() const
Get charged energy.
SUMOReal myConsum
Parameter, Vehicle consum during a time step by default is 0.
std::string getChargingStationID() const
Get current Charging Station ID.
void setRadialDragCoefficient(const SUMOReal radialDragCoefficient)
Set vehicle's radial friction coefficient.
SUMOReal getConstantPowerIntake() const
Get vehicles's constant power intake.
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 myMaximumBatteryCapacity
Parameter, The total vehicles's Battery Capacity in kWh [myMaximumBatteryCapacity >= 0]...
void setLastAngle(const SUMOReal lastAngle)
Set vehicle's last Angle.
SUMOReal getLastAngle() const
Get vehicles's last angle.
void resetChargingStartTime()
Reset charging start time.
SUMOReal getActualBatteryCapacity() const
Get the actual vehicle's Battery Capacity in kWh.
void setRecuperationEfficiency(const SUMOReal recuperationEfficiency)
Set vehicle's Recuparation efficiency.
SUMOReal getPropulsionEfficiency() const
Get vehicles's Propulsion efficiency.
bool isChargingInTransit() const
Get true if Vehicle it's charging, false if not.
MSDevice_Battery & operator=(const MSDevice_Battery &)
Invalidated assignment operator.
SUMOReal getChargingStartTime() const
Get charging start time.
bool myChargingInTransit
Parameter, Flag: Vehicles it's charging in transit by default is false.
SUMOReal myRecuperationEfficiency
Parameter, Vehicle's recuparation efficiency [1 >= myRecuperationEfficiency >= 0].
SUMOReal getRecuperationEfficiency() const
Get vehicles's Recuparation efficiency.
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.
SUMOReal getLastEnergy() const
Get vehicles's last Energy.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.
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)
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 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 getMaximumBatteryCapacity() const
Get the total vehicle's Battery Capacity in kWh.
void setConstantPowerIntake(const SUMOReal constantPowerIntake)
Set vehicle's constant power intake.
void setAirDragCoefficient(const SUMOReal new_C_Veh)
Set vehicle's drag coefficient.
void generateOutput() const
Called on writing tripinfo output.
SUMOReal getInternalMomentOfInertia() const
Get vehicles's internal moment of inertia.
SUMOReal myEnergyCharged
Parameter, Energy charged in each timestep.
SUMOReal getMass() const
Get vehicle's mass.
~MSDevice_Battery()
Destructor.