![]() |
SUMO - Simulation of Urban MObility
|
Battery device for electric vehicles. More...
#include <MSDevice_Battery.h>
Public Types | |
enum | Notification { NOTIFICATION_DEPARTED, NOTIFICATION_JUNCTION, NOTIFICATION_SEGMENT, NOTIFICATION_LANE_CHANGE, NOTIFICATION_TELEPORT, NOTIFICATION_PARKING, NOTIFICATION_ARRIVED, NOTIFICATION_VAPORIZED, NOTIFICATION_TELEPORT_ARRIVED, NOTIFICATION_PARKING_REROUTE } |
Definition of a vehicle state. More... | |
Public Member Functions | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
const std::string | deviceName () const |
return the name for this type of device More... | |
virtual void | generateOutput () const |
Called on writing tripinfo output. More... | |
double | getActualBatteryCapacity () const |
Get the actual vehicle's Battery Capacity in kWh. More... | |
double | getChargingStartTime () const |
Get charging start time. More... | |
std::string | getChargingStationID () const |
Get current Charging Station ID. More... | |
double | getConsum () const |
Get consum. More... | |
const std::string & | getDescription () const |
double | getEnergyCharged () const |
Get charged energy. More... | |
SUMOVehicle & | getHolder () const |
Returns the vehicle that holds this device. More... | |
const std::string & | getID () const |
Returns the id. More... | |
const MSLane * | getLane () const |
Returns the lane the reminder works on. More... | |
double | getMaximumBatteryCapacity () const |
Get the total vehicle's Battery Capacity in kWh. More... | |
double | getMaximumPower () const |
Get the maximum power when accelerating. More... | |
std::string | getParameter (const std::string &key) const |
try to retrieve the given parameter from this device. Throw exception for unsupported key More... | |
double | getStoppingTreshold () const |
Get stopping treshold. More... | |
int | getVehicleStopped () const |
Get number of timestep that vehicle is stopped. More... | |
void | increaseChargingStartTime () |
Increase Charging Start time. More... | |
void | increaseVehicleStoppedTimer () |
Increase myVehicleStopped. More... | |
bool | isChargingInTransit () const |
Get true if Vehicle it's charging, false if not. More... | |
bool | isChargingStopped () const |
Get true if Vehicle is charging, false if not. More... | |
virtual void | loadState (const SUMOSAXAttributes &attrs) |
Loads the state of the device from the given description. More... | |
virtual void | notifyMoveInternal (const SUMOVehicle &veh, const double frontOnLane, const double timeOnLane, const double meanSpeedFrontOnLane, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane) |
Internal notification about the vehicle moves. More... | |
void | resetChargingStartTime () |
Reset charging start time. More... | |
void | resetVehicleStoppedTimer () |
Reset myVehicleStopped. More... | |
virtual void | saveState (OutputDevice &out) const |
Saves the state of the device. More... | |
void | setActualBatteryCapacity (const double actualBatteryCapacity) |
Set actual vehicle's Battery Capacity in kWh. More... | |
void | setDescription (const std::string &description) |
void | setID (const std::string &newID) |
resets the id More... | |
void | setMaximumBatteryCapacity (const double maximumBatteryCapacity) |
Set total vehicle's Battery Capacity in kWh. More... | |
void | setParameter (const std::string &key, const std::string &value) |
try to set the given parameter for this device. Throw exception for unsupported key More... | |
void | setPowerMax (const double new_Pmax) |
Set maximum power when accelerating. More... | |
void | setStoppingTreshold (const double stoppingTreshold) |
Set vehicle's stopping treshold. More... | |
~MSDevice_Battery () | |
Destructor. More... | |
Methods called on vehicle movement / state change, overwriting MSDevice | |
bool | notifyMove (SUMOVehicle &veh, double oldPos, double newPos, double newSpeed) |
Checks for waiting steps when the vehicle moves. More... | |
Interface methods, to be derived by subclasses | |
virtual bool | notifyEnter (SUMOVehicle &veh, Notification reason, const MSLane *enteredLane) |
Checks whether the reminder is activated by a vehicle entering the lane. More... | |
virtual bool | notifyLeave (SUMOVehicle &veh, double lastPos, Notification reason, const MSLane *enteredLane=0) |
Called if the vehicle leaves the reminder's lane. More... | |
void | updateDetector (SUMOVehicle &veh, double entryPos, double leavePos, SUMOTime entryTime, SUMOTime currentTime, SUMOTime leaveTime, bool cleanUp) |
Static Public Member Functions | |
static void | buildVehicleDevices (SUMOVehicle &v, std::vector< MSDevice *> &into) |
Build devices for the given vehicle, if needed. More... | |
static bool | checkOptions (OptionsCont &oc) |
check device-specific options More... | |
static MTRand * | getEquipmentRNG () |
template<class T > | |
static std::string | getIDSecure (const T *obj, const std::string &fallBack="NULL") |
get an identifier for Named-like object which may be Null More... | |
static void | insertOptions (OptionsCont &oc) |
Inserts MSDevice_Example-options. More... | |
Protected Member Functions | |
void | removeFromVehicleUpdateValues (SUMOVehicle &veh) |
Static Protected Member Functions | |
Helper methods for device assignment | |
static void | insertDefaultAssignmentOptions (const std::string &deviceName, const std::string &optionsTopic, OptionsCont &oc) |
Adds common command options that allow to assign devices to vehicles. More... | |
static bool | equippedByDefaultAssignmentOptions (const OptionsCont &oc, const std::string &deviceName, SUMOVehicle &v) |
Determines whether a vehicle should get a certain device. More... | |
Protected Attributes | |
MSChargingStation * | myActChargingStation |
Parameter, Pointer to current charging station in which vehicle is placed (by default is NULL) More... | |
double | myActualBatteryCapacity |
Parameter, The actual vehicles's Battery Capacity in kWh, [myActualBatteryCapacity <= myMaximumBatteryCapacity]. More... | |
bool | myChargingInTransit |
Parameter, Flag: Vehicles it's charging in transit (by default is false) More... | |
double | myChargingStartTime |
Parameter, Moment, wich the vehicle has beging to charging. More... | |
bool | myChargingStopped |
Parameter, Flag: Vehicles it's charging stopped (by default is false) More... | |
double | myConsum |
Parameter, Vehicle consum during a time step (by default is 0.) More... | |
std::string | myDescription |
a description of this moveReminder More... | |
double | myEnergyCharged |
Parameter, Energy charged in each timestep. More... | |
SUMOVehicle & | myHolder |
The vehicle that stores the device. More... | |
std::string | myID |
The name of the object. More... | |
MSLane *const | myLane |
Lane on which the reminder works. More... | |
double | myLastAngle |
Parameter, Vehicle's last angle. More... | |
double | myMaximumBatteryCapacity |
Parameter, The total vehicles's Battery Capacity in kWh, [myMaximumBatteryCapacity >= 0]. More... | |
std::map< int, double > | myParam |
Parameter collection. More... | |
double | myPowerMax |
Parameter, The Maximum Power when accelerating, [myPowerMax >= 0]. More... | |
double | myStoppingTreshold |
Parameter, stopping vehicle treshold [myStoppingTreshold >= 0]. More... | |
int | myVehicleStopped |
Parameter, How many timestep the vehicle is stopped. More... | |
Private Member Functions | |
void | checkParam (const SumoXMLAttr paramKey, const double lower=0., const double upper=std::numeric_limits< double >::infinity()) |
MSDevice_Battery (SUMOVehicle &holder, const std::string &id, const double actualBatteryCapacity, const double maximumBatteryCapacity, const double powerMax, const double stoppingTreshold, const std::map< int, double > ¶m) | |
Constructor. More... | |
MSDevice_Battery (const MSDevice_Battery &) | |
Invalidated copy constructor. More... | |
MSDevice_Battery & | operator= (const MSDevice_Battery &) |
Invalidated assignment operator. More... | |
Battery device for electric vehicles.
Definition at line 54 of file MSDevice_Battery.h.
|
inherited |
Definition of a vehicle state.
Definition at line 96 of file MSMoveReminder.h.
MSDevice_Battery::~MSDevice_Battery | ( | ) |
Destructor.
Definition at line 267 of file MSDevice_Battery.cpp.
|
private |
Constructor.
[in] | holder | The vehicle that holds this device |
[in] | id | The ID of the device |
[in] | period | The period with which a new route shall be searched |
[in] | preInsertionPeriod | The route search period before insertion |
Definition at line 214 of file MSDevice_Battery.cpp.
References checkParam(), Named::getID(), myActualBatteryCapacity, myMaximumBatteryCapacity, myPowerMax, myStoppingTreshold, SUMO_ATTR_ACTUALBATTERYCAPACITY, SUMO_ATTR_AIRDRAGCOEFFICIENT, SUMO_ATTR_CONSTANTPOWERINTAKE, SUMO_ATTR_FRONTSURFACEAREA, SUMO_ATTR_INTERNALMOMENTOFINERTIA, SUMO_ATTR_MAXIMUMBATTERYCAPACITY, SUMO_ATTR_MAXIMUMPOWER, SUMO_ATTR_PROPULSIONEFFICIENCY, SUMO_ATTR_RADIALDRAGCOEFFICIENT, SUMO_ATTR_RECUPERATIONEFFICIENCY, SUMO_ATTR_ROLLDRAGCOEFFICIENT, SUMO_ATTR_STOPPINGTRESHOLD, SUMO_ATTR_VEHICLEMASS, toString(), and WRITE_WARNING.
Referenced by buildVehicleDevices(), and deviceName().
|
private |
Invalidated copy constructor.
|
inlineinherited |
Adds this object to the given container.
Definition at line 129 of file Named.h.
References Named::StoringVisitor::add().
|
static |
Build devices for the given vehicle, if needed.
The options are read and evaluated whether a example-device shall be built for the given vehicle.
The built device is stored in the given vector.
[in] | v | The vehicle for which a device may be built |
Definition at line 61 of file MSDevice_Battery.cpp.
References TplConvert::_2double(), DEFAULT_CHARGE_RATIO, DEFAULT_MAX_CAPACITY, MSDevice::equippedByDefaultAssignmentOptions(), HelpersEnergy::getDefaultParam(), Parameterised::getDouble(), PollutantsInterface::getEnergyHelper(), SUMOVehicle::getID(), OptionsCont::getOptions(), Parameterised::getParameter(), SUMOVehicle::getParameter(), MSVehicleType::getParameter(), SUMOVehicle::getVehicleType(), MSDevice_Battery(), SUMO_ATTR_ACTUALBATTERYCAPACITY, SUMO_ATTR_AIRDRAGCOEFFICIENT, SUMO_ATTR_CONSTANTPOWERINTAKE, SUMO_ATTR_FRONTSURFACEAREA, SUMO_ATTR_INTERNALMOMENTOFINERTIA, SUMO_ATTR_MAXIMUMBATTERYCAPACITY, SUMO_ATTR_MAXIMUMPOWER, SUMO_ATTR_PROPULSIONEFFICIENCY, SUMO_ATTR_RADIALDRAGCOEFFICIENT, SUMO_ATTR_RECUPERATIONEFFICIENCY, SUMO_ATTR_ROLLDRAGCOEFFICIENT, SUMO_ATTR_STOPPINGTRESHOLD, SUMO_ATTR_VEHICLEMASS, and toString().
Referenced by MSDevice::buildVehicleDevices().
|
staticinherited |
check device-specific options
Definition at line 71 of file MSDevice.cpp.
References MSDevice_Routing::checkOptions().
Referenced by MSFrame::checkOptions().
|
private |
Definition at line 272 of file MSDevice_Battery.cpp.
References HelpersEnergy::getDefaultParam(), PollutantsInterface::getEnergyHelper(), Named::getID(), myParam, toString(), and WRITE_WARNING.
Referenced by deviceName(), and MSDevice_Battery().
|
inlinevirtual |
return the name for this type of device
Implements MSDevice.
Definition at line 92 of file MSDevice_Battery.h.
References checkParam(), getActualBatteryCapacity(), getChargingStartTime(), getChargingStationID(), getConsum(), getEnergyCharged(), getMaximumBatteryCapacity(), getMaximumPower(), getParameter(), getStoppingTreshold(), getVehicleStopped(), increaseChargingStartTime(), increaseVehicleStoppedTimer(), isChargingInTransit(), isChargingStopped(), MSDevice_Battery(), resetChargingStartTime(), resetVehicleStoppedTimer(), setActualBatteryCapacity(), setMaximumBatteryCapacity(), setParameter(), setPowerMax(), and setStoppingTreshold().
Referenced by getParameter(), and setParameter().
|
staticprotectedinherited |
Determines whether a vehicle should get a certain device.
[in] | oc | The options container to get the information about assignment from |
[in] | deviceName | The name of the device type |
[in] | v | The vehicle to determine whether it shall be equipped or not |
Definition at line 107 of file MSDevice.cpp.
References TplConvert::_2bool(), MSDevice::deviceName(), OptionsCont::exists(), OptionsCont::getBool(), OptionsCont::getFloat(), SUMOVehicle::getID(), MSNet::getInstance(), OptionsCont::getOptions(), Parameterised::getParameter(), SUMOVehicle::getParameter(), MSVehicleType::getParameter(), MSVehicleControl::getQuota(), OptionsCont::getStringVector(), MSNet::getVehicleControl(), SUMOVehicle::getVehicleType(), OptionsCont::isSet(), Parameterised::knowsParameter(), MSDevice::myEquipmentRNG, MSDevice::myExplicitIDs, and MTRand::rand().
Referenced by buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_BTreceiver::buildVehicleDevices(), MSDevice_BTsender::buildVehicleDevices(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), and MSDevice::setParameter().
|
inlinevirtualinherited |
Called on writing tripinfo output.
The device may write some statistics into the tripinfo output. It is assumed that the written information is a valid xml-snipplet, which will be embedded within the vehicle's information.
The device should use the openTag / closeTag methods of the OutputDevice for correct indentation.
IOError | not yet implemented |
Reimplemented in MSDevice_SSM, MSDevice_Example, MSDevice_Tripinfo, MSDevice_Vehroutes, and MSDevice_Emissions.
Definition at line 134 of file MSDevice.h.
References MSDevice::loadState(), and MSDevice::saveState().
double MSDevice_Battery::getActualBatteryCapacity | ( | ) | const |
Get the actual vehicle's Battery Capacity in kWh.
Definition at line 347 of file MSDevice_Battery.cpp.
References myActualBatteryCapacity.
Referenced by MSChargingStation::addChargeValueForOutput(), deviceName(), getParameter(), notifyMove(), and MSBatteryExport::write().
double MSDevice_Battery::getChargingStartTime | ( | ) | const |
Get charging start time.
Definition at line 383 of file MSDevice_Battery.cpp.
References myChargingStartTime.
Referenced by MSChargingStation::addChargeValueForOutput(), deviceName(), and notifyMove().
std::string MSDevice_Battery::getChargingStationID | ( | ) | const |
Get current Charging Station ID.
Definition at line 389 of file MSDevice_Battery.cpp.
References Named::getID(), and myActChargingStation.
Referenced by deviceName(), getParameter(), and MSBatteryExport::write().
double MSDevice_Battery::getConsum | ( | ) | const |
Get consum.
Definition at line 365 of file MSDevice_Battery.cpp.
References myConsum.
Referenced by deviceName(), getParameter(), and MSBatteryExport::write().
|
inlineinherited |
Definition at line 231 of file MSMoveReminder.h.
References MSMoveReminder::myDescription, and MSMoveReminder::removeFromVehicleUpdateValues().
Referenced by MSBaseVehicle::setDeviceParameter().
double MSDevice_Battery::getEnergyCharged | ( | ) | const |
Get charged energy.
Definition at line 398 of file MSDevice_Battery.cpp.
References myEnergyCharged.
Referenced by deviceName(), getParameter(), and MSBatteryExport::write().
|
inlinestaticinherited |
Definition at line 91 of file MSDevice.h.
References MSDevice::deviceName(), and MSDevice::myEquipmentRNG.
Referenced by NLBuilder::loadAndRun(), and GUILoadThread::run().
|
inlineinherited |
Returns the vehicle that holds this device.
Definition at line 118 of file MSDevice.h.
References MSDevice::myHolder.
Referenced by MSChargingStation::addChargeValueForOutput().
|
inlineinherited |
Returns the id.
Definition at line 66 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), PCPolyContainer::add(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), IntermodalRouter< E, L, N, V >::addAccess(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), MSNet::addChargingStation(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), MSNet::addParkingArea(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NLDetectorBuilder::buildE2Detector(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), NBEdgeCont::checkGrade(), MSVehicleTransfer::checkInsertions(), NBEdgeCont::checkOverlap(), checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSSwarmTrafficLightLogic::choosePolicy(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBEdge::computeAngle(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), TraCIServerAPI_Vehicle::findCloserLane(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), TraCI_Vehicle::getBestLanes(), MSNet::getBusStopID(), MSVehicle::getCenterOnEdge(), getChargingStationID(), MSNet::getChargingStationID(), NBEdge::getConnection(), NBEdge::getConnectionRef(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), RODFNet::getDetectorEdge(), TraCI_Lane::getEdgeID(), MSMeanData::getEdgeID(), NBEdge::getFirstNonPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), TraCI_InductionLoop::getLaneID(), TraCI_LaneArea::getLaneID(), TraCI_Vehicle::getLaneID(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), TraCI_Lane::getLinks(), MSLane::getLinkTo(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), MSNet::getParkingAreaID(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), TraCI_Vehicle::getRoadID(), TraCI_Vehicle::getRouteID(), MSDevice_SSM::getUpstreamVehicles(), MSDevice_SSM::getVehiclesOnJunction(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicle(), IntermodalNetwork< E, L, N, V >::IntermodalNetwork(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), MSE2Collector::makeVehicleInfo(), GNEJunction::markAsModified(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery(), MSE2Collector::MSE2Collector(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_SSM::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSDevice_SSM::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_SSM::notifyMove(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::by_id_sorter::operator()(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), MSDevice_SSM::processEncounters(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSDelayBasedTrafficLightLogic::proposeProlongation(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckLanes(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBNodeCont::remapIDs(), NBEdgeCont::remapIDs(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSVehicle::replaceParkingArea(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingZone(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), MSDevice_Vehroutes::saveState(), MSDevice::saveState(), MSDevice_Tripinfo::saveState(), MSBaseVehicle::saveState(), MSLane::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), GNEJunction::setLogicValid(), setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), setPowerMax(), MSLink::setRequestInformation(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSStopOut::stopEnded(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), toString(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditorFrame::updateDescription(), MSDevice_SSM::updateEncounter(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), NBSign::writeAsPOI(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_DlrNavteq::writeProhibitedManoeuvres(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 59 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSLaneChanger::continueChange(), MSVehicle::getBackPositionOnLane(), MSVehicle::getCenterOnEdge(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), GUIVehicle::getParameterWindow(), MSPModel_Striping::PState::moveToNextLane(), operator<<(), TraCIServerAPI_Vehicle::processSet(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), MSAbstractLaneChangeModel::updateShadowLane(), and TraCIServerAPI_Vehicle::vtdMap().
|
inlineinherited |
Returns the lane the reminder works on.
Definition at line 90 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by MSDevice_Tripinfo::computeLengthAndDuration(), TraCI_InductionLoop::getLaneID(), TraCI_LaneArea::getLaneID(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), TraCIServerAPI_InductionLoop::getPosition(), TraCIServerAPI_InductionLoop::getTree(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), MSDevice_Vehroutes::notifyEnter(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSMeanData::MeanDataValues::notifyMove(), and MSMeanData::writeEdge().
double MSDevice_Battery::getMaximumBatteryCapacity | ( | ) | const |
Get the total vehicle's Battery Capacity in kWh.
Definition at line 353 of file MSDevice_Battery.cpp.
References myMaximumBatteryCapacity.
Referenced by MSChargingStation::addChargeValueForOutput(), deviceName(), getParameter(), notifyMove(), and MSBatteryExport::write().
double MSDevice_Battery::getMaximumPower | ( | ) | const |
Get the maximum power when accelerating.
Definition at line 359 of file MSDevice_Battery.cpp.
References myPowerMax.
Referenced by deviceName().
|
virtual |
try to retrieve the given parameter from this device. Throw exception for unsupported key
Reimplemented from MSDevice.
Definition at line 416 of file MSDevice_Battery.cpp.
References deviceName(), getActualBatteryCapacity(), getChargingStationID(), getConsum(), getEnergyCharged(), getMaximumBatteryCapacity(), SUMO_ATTR_ACTUALBATTERYCAPACITY, SUMO_ATTR_CHARGINGSTATIONID, SUMO_ATTR_ENERGYCHARGED, SUMO_ATTR_ENERGYCONSUMED, SUMO_ATTR_MAXIMUMBATTERYCAPACITY, and toString().
Referenced by deviceName().
double MSDevice_Battery::getStoppingTreshold | ( | ) | const |
Get stopping treshold.
Definition at line 410 of file MSDevice_Battery.cpp.
References myStoppingTreshold.
Referenced by MSChargingStation::addChargeValueForOutput(), and deviceName().
int MSDevice_Battery::getVehicleStopped | ( | ) | const |
Get number of timestep that vehicle is stopped.
Definition at line 404 of file MSDevice_Battery.cpp.
References myVehicleStopped.
Referenced by deviceName(), and MSBatteryExport::write().
void MSDevice_Battery::increaseChargingStartTime | ( | ) |
Increase Charging Start time.
Definition at line 329 of file MSDevice_Battery.cpp.
References myChargingStartTime.
Referenced by deviceName(), and notifyMove().
void MSDevice_Battery::increaseVehicleStoppedTimer | ( | ) |
Increase myVehicleStopped.
Definition at line 341 of file MSDevice_Battery.cpp.
References myVehicleStopped.
Referenced by deviceName(), and notifyMove().
|
staticprotectedinherited |
Adds common command options that allow to assign devices to vehicles.
[in] | deviceName | The name of the device type |
[in] | optionsTopic | The options topic into which the options shall be added |
!! describe
!! describe
!! describe
Definition at line 93 of file MSDevice.cpp.
References OptionsCont::addDescription(), OptionsCont::addSynonyme(), and OptionsCont::doRegister().
Referenced by insertOptions(), MSDevice_Example::insertOptions(), MSDevice_BTreceiver::insertOptions(), MSDevice_BTsender::insertOptions(), MSDevice_Emissions::insertOptions(), MSDevice_Routing::insertOptions(), MSDevice_SSM::insertOptions(), and MSDevice::setParameter().
|
static |
Inserts MSDevice_Example-options.
Definition at line 55 of file MSDevice_Battery.cpp.
References MSDevice::insertDefaultAssignmentOptions().
Referenced by MSDevice::insertOptions().
bool MSDevice_Battery::isChargingInTransit | ( | ) | const |
Get true if Vehicle it's charging, false if not.
Definition at line 377 of file MSDevice_Battery.cpp.
References myChargingInTransit.
Referenced by deviceName(), and MSBatteryExport::write().
bool MSDevice_Battery::isChargingStopped | ( | ) | const |
Get true if Vehicle is charging, false if not.
Definition at line 371 of file MSDevice_Battery.cpp.
References myChargingStopped.
Referenced by deviceName(), and MSBatteryExport::write().
|
virtualinherited |
Loads the state of the device from the given description.
The default implementation does nothing.
[in] | attrs | XML attributes describing the current state |
Reimplemented in MSDevice_Tripinfo, and MSDevice_Vehroutes.
Definition at line 149 of file MSDevice.cpp.
Referenced by MSDevice::generateOutput().
|
inlinevirtualinherited |
Checks whether the reminder is activated by a vehicle entering the lane.
Lane change means in this case that the vehicle changes to the lane the reminder is placed at.
[in] | veh | The entering vehicle. |
[in] | reason | how the vehicle enters the lane |
Reimplemented in MSE2Collector, MSDevice_SSM, MSMeanData::MeanDataValueTracker, MSDevice_Routing, MSTriggeredRerouter, MSMeanData_Net::MSLaneMeanDataValues, MSCalibrator::VehicleRemover, MSInductLoop, MSDevice_Tripinfo, MSMeanData_Amitran::MSLaneMeanDataValues, MSDevice_Example, MSDevice_BTsender, MSMeanData::MeanDataValues, MSDevice_BTreceiver, MSRouteProbe, MSDevice_Vehroutes, and MSDevice_Transportable.
Definition at line 135 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
|
inlinevirtualinherited |
Called if the vehicle leaves the reminder's lane.
Informs if vehicle leaves reminder lane (due to lane change, removal from the network, or leaving to the next lane). The default is to do nothing.
[in] | veh | The leaving vehicle. |
[in] | lastPos | Position on the lane when leaving. |
[in] | reason | how the vehicle leaves the lane |
Reimplemented in MSE2Collector, MSDevice_SSM, MSMeanData::MeanDataValueTracker, MSE3Collector::MSE3LeaveReminder, MSTriggeredRerouter, MSInductLoop, MSDevice_BTsender, MSDevice_BTreceiver, MSMeanData::MeanDataValues, MSDevice_Tripinfo, MSDevice_Example, MSInstantInductLoop, MSDevice_Vehroutes, MSE3Collector::MSE3EntryReminder, MSMeanData_Net::MSLaneMeanDataValues, and MSDevice_Transportable.
Definition at line 181 of file MSMoveReminder.h.
References UNUSED_PARAMETER, and MSMoveReminder::updateDetector().
|
virtual |
Checks for waiting steps when the vehicle moves.
[in] | veh | Vehicle that asks this reminder. |
[in] | oldPos | Position before move. |
[in] | newPos | Position after move with newSpeed. |
[in] | newSpeed | Moving speed. |
Reimplemented from MSMoveReminder.
Definition at line 101 of file MSDevice_Battery.cpp.
References MSChargingStation::addChargeValueForOutput(), GeomHelper::angleDiff(), HelpersEnergy::compute(), PollutantsInterface::ELEC, SUMOVehicle::getAcceleration(), getActualBatteryCapacity(), SUMOVehicle::getAngle(), MSChargingStation::getChargeDelay(), MSChargingStation::getChargeInTransit(), MSChargingStation::getChargingPower(), getChargingStartTime(), MSNet::getChargingStation(), MSNet::getChargingStationID(), MSChargingStation::getEfficency(), PollutantsInterface::getEnergyHelper(), SUMOVehicle::getID(), MSNet::getInstance(), SUMOVehicle::getLane(), getMaximumBatteryCapacity(), SUMOVehicle::getPositionOnLane(), SUMOVehicle::getSlope(), SUMOVehicle::getSpeed(), increaseChargingStartTime(), increaseVehicleStoppedTimer(), myActChargingStation, myChargingInTransit, myChargingStopped, myConsum, myEnergyCharged, myLastAngle, myParam, myStoppingTreshold, resetChargingStartTime(), resetVehicleStoppedTimer(), setActualBatteryCapacity(), MSChargingStation::setChargingVehicle(), SUMO_ATTR_ANGLE, and WRITE_WARNING.
|
inlinevirtualinherited |
Internal notification about the vehicle moves.
Indicator if the reminders is still active for the passed vehicle/parameters. If false, the vehicle will erase this reminder from it's reminder-container.
[in] | veh | Vehicle that asks this reminder. |
[in] | frontOnLane | time the front of the vehicle spent on the lane. |
[in] | timeOnLane | time some part of the vehicle spent on the lane. |
[in] | meanSpeedFrontOnLane | Average speed for the time that the front is on the lane. |
[in] | meanSpeedVehicleOnLane | Average speed for the time that the vehicle is on the lane (with front or back). |
[in] | travelledDistanceFrontOnLane | distance travelled while overlapping with the lane. |
[in] | travelledDistanceVehicleOnLane | distance travelled while front was on the lane. |
Reimplemented in MSMeanData::MeanDataValueTracker, MSDevice_Tripinfo, MSMeanData_Net::MSLaneMeanDataValues, MSMeanData_Amitran::MSLaneMeanDataValues, MSMeanData_Harmonoise::MSLaneMeanDataValues, and MSMeanData_Emissions::MSLaneMeanDataValues.
Definition at line 211 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
Referenced by MSMeanData::MeanDataValues::notifyMove(), and MSMoveReminder::updateDetector().
|
private |
Invalidated assignment operator.
|
protectedinherited |
Definition at line 94 of file MSMoveReminder.cpp.
References MSMoveReminder::myLastVehicleUpdateValues.
Referenced by MSMoveReminder::getDescription(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), and MSMoveReminder::updateDetector().
void MSDevice_Battery::resetChargingStartTime | ( | ) |
Reset charging start time.
Definition at line 323 of file MSDevice_Battery.cpp.
References myChargingStartTime.
Referenced by deviceName(), and notifyMove().
void MSDevice_Battery::resetVehicleStoppedTimer | ( | ) |
Reset myVehicleStopped.
Definition at line 335 of file MSDevice_Battery.cpp.
References myVehicleStopped.
Referenced by deviceName(), and notifyMove().
|
virtualinherited |
Saves the state of the device.
The default implementation writes a warning and does nothing.
[in] | out | The OutputDevice to write the information into |
Reimplemented in MSDevice_Tripinfo, and MSDevice_Vehroutes.
Definition at line 143 of file MSDevice.cpp.
References Named::getID(), and WRITE_WARNING.
Referenced by MSDevice::generateOutput().
void MSDevice_Battery::setActualBatteryCapacity | ( | const double | actualBatteryCapacity | ) |
Set actual vehicle's Battery Capacity in kWh.
Definition at line 281 of file MSDevice_Battery.cpp.
References myActualBatteryCapacity, and myMaximumBatteryCapacity.
Referenced by deviceName(), notifyMove(), and setParameter().
|
inlineinherited |
Definition at line 227 of file MSMoveReminder.h.
References MSMoveReminder::myDescription.
Referenced by MSMeanData::init(), MEInductLoop::MEInductLoop(), METriggeredCalibrator::METriggeredCalibrator(), and MSCalibrator::MSCalibrator().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 74 of file Named.h.
References Named::myID.
Referenced by Distribution_Parameterized::Distribution_Parameterized(), NBNodeCont::remapIDs(), NBEdgeCont::remapIDs(), NBNodeCont::rename(), and NBEdgeCont::rename().
void MSDevice_Battery::setMaximumBatteryCapacity | ( | const double | maximumBatteryCapacity | ) |
Set total vehicle's Battery Capacity in kWh.
Definition at line 293 of file MSDevice_Battery.cpp.
References Named::getID(), myMaximumBatteryCapacity, SUMO_ATTR_MAXIMUMBATTERYCAPACITY, toString(), and WRITE_WARNING.
Referenced by deviceName(), and setParameter().
|
virtual |
try to set the given parameter for this device. Throw exception for unsupported key
Reimplemented from MSDevice.
Definition at line 433 of file MSDevice_Battery.cpp.
References TplConvert::_2double(), deviceName(), setActualBatteryCapacity(), setMaximumBatteryCapacity(), SUMO_ATTR_ACTUALBATTERYCAPACITY, SUMO_ATTR_MAXIMUMBATTERYCAPACITY, and toString().
Referenced by deviceName().
void MSDevice_Battery::setPowerMax | ( | const double | new_Pmax | ) |
Set maximum power when accelerating.
Definition at line 303 of file MSDevice_Battery.cpp.
References Named::getID(), myPowerMax, SUMO_ATTR_MAXIMUMPOWER, toString(), and WRITE_WARNING.
Referenced by deviceName().
void MSDevice_Battery::setStoppingTreshold | ( | const double | stoppingTreshold | ) |
Set vehicle's stopping treshold.
Definition at line 313 of file MSDevice_Battery.cpp.
References Named::getID(), myStoppingTreshold, SUMO_ATTR_STOPPINGTRESHOLD, toString(), and WRITE_WARNING.
Referenced by deviceName().
|
inherited |
Definition at line 51 of file MSMoveReminder.cpp.
References MSMoveReminder::myLastVehicleUpdateValues, MSMoveReminder::notifyMoveInternal(), MSMoveReminder::removeFromVehicleUpdateValues(), and STEPS2TIME.
Referenced by MSMoveReminder::notifyLeave(), and MEVehicle::updateDetectorForWriting().
|
protected |
Parameter, Pointer to current charging station in which vehicle is placed (by default is NULL)
Definition at line 205 of file MSDevice_Battery.h.
Referenced by getChargingStationID(), and notifyMove().
|
protected |
Parameter, The actual vehicles's Battery Capacity in kWh, [myActualBatteryCapacity <= myMaximumBatteryCapacity].
Definition at line 175 of file MSDevice_Battery.h.
Referenced by getActualBatteryCapacity(), MSDevice_Battery(), and setActualBatteryCapacity().
|
protected |
Parameter, Flag: Vehicles it's charging in transit (by default is false)
Definition at line 196 of file MSDevice_Battery.h.
Referenced by isChargingInTransit(), and notifyMove().
|
protected |
Parameter, Moment, wich the vehicle has beging to charging.
Definition at line 199 of file MSDevice_Battery.h.
Referenced by getChargingStartTime(), increaseChargingStartTime(), and resetChargingStartTime().
|
protected |
Parameter, Flag: Vehicles it's charging stopped (by default is false)
Definition at line 193 of file MSDevice_Battery.h.
Referenced by isChargingStopped(), and notifyMove().
|
protected |
Parameter, Vehicle consum during a time step (by default is 0.)
Definition at line 202 of file MSDevice_Battery.h.
Referenced by getConsum(), and notifyMove().
|
protectedinherited |
a description of this moveReminder
Definition at line 243 of file MSMoveReminder.h.
Referenced by MSMoveReminder::getDescription(), and MSMoveReminder::setDescription().
|
protected |
Parameter, Energy charged in each timestep.
Definition at line 208 of file MSDevice_Battery.h.
Referenced by getEnergyCharged(), and notifyMove().
|
protectedinherited |
The vehicle that stores the device.
Definition at line 187 of file MSDevice.h.
Referenced by MSDevice_Vehroutes::addRoute(), MSDevice_Transportable::addTransportable(), MSDevice_Tripinfo::computeLengthAndDuration(), MSDevice_Tripinfo::generateOutput(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSDevice::getHolder(), MSDevice_Vehroutes::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Routing::preInsertionReroute(), MSDevice_Transportable::removeTransportable(), MSDevice_Routing::reroute(), MSDevice_SSM::updateAndWriteOutput(), MSDevice_Tripinfo::updateStatistics(), MSDevice_Vehroutes::writeOutput(), MSDevice_Vehroutes::writeXMLRoute(), and MSDevice_Vehroutes::~MSDevice_Vehroutes().
|
protectedinherited |
The name of the object.
Definition at line 136 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSLane::isInsertionSuccess(), MSCalibrator::myStartElement(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
Lane on which the reminder works.
Definition at line 241 of file MSMoveReminder.h.
Referenced by MSE2Collector::getEstimatedCurrentVehicleNumber(), MSE2Collector::getEstimateQueueLength(), MSMoveReminder::getLane(), MSMoveReminder::MSMoveReminder(), MSInductLoop::notifyEnter(), and MSMeanData::MeanDataValueTracker::reset().
|
protected |
Parameter, Vehicle's last angle.
Definition at line 190 of file MSDevice_Battery.h.
Referenced by notifyMove().
|
protected |
Parameter, The total vehicles's Battery Capacity in kWh, [myMaximumBatteryCapacity >= 0].
Definition at line 178 of file MSDevice_Battery.h.
Referenced by getMaximumBatteryCapacity(), MSDevice_Battery(), setActualBatteryCapacity(), and setMaximumBatteryCapacity().
|
protected |
Parameter collection.
Definition at line 187 of file MSDevice_Battery.h.
Referenced by checkParam(), and notifyMove().
|
protected |
Parameter, The Maximum Power when accelerating, [myPowerMax >= 0].
Definition at line 181 of file MSDevice_Battery.h.
Referenced by getMaximumPower(), MSDevice_Battery(), and setPowerMax().
|
protected |
Parameter, stopping vehicle treshold [myStoppingTreshold >= 0].
Definition at line 184 of file MSDevice_Battery.h.
Referenced by getStoppingTreshold(), MSDevice_Battery(), notifyMove(), and setStoppingTreshold().
|
protected |
Parameter, How many timestep the vehicle is stopped.
Definition at line 211 of file MSDevice_Battery.h.
Referenced by getVehicleStopped(), increaseVehicleStoppedTimer(), and resetVehicleStoppedTimer().