![]() |
SUMO - Simulation of Urban MObility
|
#include <Edge.h>
Static Public Member Functions | |
static void | adaptTraveltime (const std::string &id, double value, double begTime=0., double endTime=std::numeric_limits< double >::max()) |
static double | getAdaptedTraveltime (const std::string &id, double time) |
static double | getCO2Emission (const std::string &id) |
static double | getCOEmission (const std::string &id) |
static double | getEffort (const std::string &id, double time) |
static double | getElectricityConsumption (const std::string &id) |
static double | getFuelConsumption (const std::string &id) |
static double | getHCEmission (const std::string &id) |
static int | getIDCount () |
static std::vector< std::string > | getIDList () |
static int | getLaneNumber (const std::string &id) |
static int | getLastStepHaltingNumber (const std::string &id) |
static double | getLastStepLength (const std::string &id) |
static double | getLastStepMeanSpeed (const std::string &id) |
static double | getLastStepOccupancy (const std::string &id) |
static const std::vector< std::string > | getLastStepPersonIDs (const std::string &id) |
static const std::vector< std::string > | getLastStepVehicleIDs (const std::string &id) |
static int | getLastStepVehicleNumber (const std::string &id) |
static double | getNoiseEmission (const std::string &id) |
static double | getNOxEmission (const std::string &id) |
static std::string | getParameter (const std::string &id, const std::string ¶mName) |
static double | getPMxEmission (const std::string &id) |
static std::string | getStreetName (const std::string &id) |
static double | getTraveltime (const std::string &id) |
static double | getWaitingTime (const std::string &id) |
static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper) |
static std::shared_ptr< VariableWrapper > | makeWrapper () |
static void | setAllowedSVCPermissions (const std::string &id, int permissions) |
static void | setAllowedVehicleClasses (const std::string &id, std::vector< std::string > vector) |
static void | setDisallowedVehicleClasses (const std::string &id, std::vector< std::string > classes) |
static void | setEffort (const std::string &id, double value, double begTime=0., double endTime=std::numeric_limits< double >::max()) |
static void | setMaxSpeed (const std::string &id, double value) |
static void | setParameter (const std::string &id, const std::string &name, const std::string &value) |
static LIBSUMO_SUBSCRIPTION_API void | storeShape (const std::string &id, PositionVector &shape) |
Saves the shape of the requested object in the given container. More... | |
Private Member Functions | |
Edge ()=delete | |
invalidated standard constructor More... | |
Static Private Member Functions | |
static MSEdge * | getEdge (const std::string &id) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 320 of file Edge.cpp.
References MSEdgeWeightsStorage::addTravelTime(), getEdge(), MSNet::getInstance(), and MSNet::getWeightsStorage().
Referenced by TraCIServerAPI_Edge::processSet().
|
static |
Definition at line 56 of file Edge.cpp.
References getEdge(), and MSNet::getInstance().
Referenced by TraCIServerAPI_Edge::processGet().
|
static |
|
static |
|
staticprivate |
Definition at line 84 of file Edge.cpp.
References MSEdge::dictionary().
Referenced by adaptTraveltime(), getAdaptedTraveltime(), getCO2Emission(), getCOEmission(), getEffort(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getLaneNumber(), getLastStepHaltingNumber(), getLastStepLength(), getLastStepMeanSpeed(), getLastStepOccupancy(), getLastStepPersonIDs(), getLastStepVehicleIDs(), getLastStepVehicleNumber(), getNoiseEmission(), getNOxEmission(), getParameter(), getPMxEmission(), getStreetName(), getTraveltime(), getWaitingTime(), setAllowedSVCPermissions(), setEffort(), setMaxSpeed(), setParameter(), and storeShape().
|
static |
Definition at line 67 of file Edge.cpp.
References getEdge(), and MSNet::getInstance().
Referenced by TraCIServerAPI_Edge::processGet().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 42 of file Edge.cpp.
References MSEdge::insertIDs().
Referenced by getIDCount(), and handleVariable().
|
static |
Definition at line 275 of file Edge.cpp.
References getEdge(), and MSEdge::getLanes().
Referenced by handleVariable().
|
static |
Definition at line 240 of file Edge.cpp.
References getEdge(), and SUMO_const_haltingSpeed.
Referenced by handleVariable().
|
static |
Definition at line 256 of file Edge.cpp.
References getEdge(), and noVehicles().
Referenced by handleVariable().
|
static |
Definition at line 223 of file Edge.cpp.
References getEdge(), and MSEdge::getMeanSpeed().
Referenced by handleVariable().
|
static |
Definition at line 229 of file Edge.cpp.
References getEdge(), and MSEdge::getLanes().
Referenced by handleVariable().
|
static |
Definition at line 104 of file Edge.cpp.
References getEdge(), MSNet::getInstance(), and MSEdge::getSortedPersons().
Referenced by handleVariable().
|
static |
|
static |
|
static |
Definition at line 190 of file Edge.cpp.
References getEdge(), and HelpersHarmonoise::sum().
Referenced by handleVariable().
|
static |
|
static |
Definition at line 287 of file Edge.cpp.
References getEdge(), and Parameterised::getParameter().
Referenced by TraCIServerAPI_Edge::processGet().
|
static |
|
static |
Definition at line 281 of file Edge.cpp.
References getEdge(), and MSEdge::getStreetName().
Referenced by handleVariable().
|
static |
Definition at line 78 of file Edge.cpp.
References MSEdge::getCurrentTravelTime(), and getEdge().
Referenced by handleVariable().
|
static |
|
static |
Definition at line 366 of file Edge.cpp.
References getCO2Emission(), getCOEmission(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getIDCount(), getIDList(), getLaneNumber(), getLastStepHaltingNumber(), getLastStepLength(), getLastStepMeanSpeed(), getLastStepOccupancy(), getLastStepPersonIDs(), getLastStepVehicleIDs(), getLastStepVehicleNumber(), getNoiseEmission(), getNOxEmission(), getPMxEmission(), getStreetName(), getTraveltime(), getWaitingTime(), ID_COUNT, LAST_STEP_LENGTH, LAST_STEP_MEAN_SPEED, LAST_STEP_OCCUPANCY, LAST_STEP_PERSON_ID_LIST, LAST_STEP_VEHICLE_HALTING_NUMBER, LAST_STEP_VEHICLE_ID_LIST, LAST_STEP_VEHICLE_NUMBER, TRACI_ID_LIST, VAR_CO2EMISSION, VAR_COEMISSION, VAR_CURRENT_TRAVELTIME, VAR_ELECTRICITYCONSUMPTION, VAR_FUELCONSUMPTION, VAR_HCEMISSION, VAR_LANE_INDEX, VAR_NAME, VAR_NOISEEMISSION, VAR_NOXEMISSION, VAR_PMXEMISSION, VAR_WAITING_TIME, libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().
Referenced by makeWrapper(), and TraCIServerAPI_Edge::processGet().
|
static |
Definition at line 360 of file Edge.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
|
static |
Definition at line 307 of file Edge.cpp.
References MSLane::CHANGE_PERMISSIONS_PERMANENT, getEdge(), MSEdge::getLanes(), MSEdge::getPredecessors(), and MSEdge::rebuildAllowedLanes().
Referenced by setAllowedVehicleClasses(), and setDisallowedVehicleClasses().
|
static |
Definition at line 293 of file Edge.cpp.
References parseVehicleClasses(), and setAllowedSVCPermissions().
Referenced by TraCIServerAPI_Edge::processSet().
|
static |
Definition at line 300 of file Edge.cpp.
References invertPermissions(), parseVehicleClasses(), and setAllowedSVCPermissions().
Referenced by TraCIServerAPI_Edge::processSet().
|
static |
Definition at line 326 of file Edge.cpp.
References MSEdgeWeightsStorage::addEffort(), getEdge(), MSNet::getInstance(), and MSNet::getWeightsStorage().
Referenced by TraCIServerAPI_Edge::processSet().
|
static |
Definition at line 332 of file Edge.cpp.
References getEdge().
Referenced by TraCIServerAPI_Edge::processSet().
|
static |
Definition at line 340 of file Edge.cpp.
References getEdge(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, and Parameterised::setParameter().
Referenced by TraCIServerAPI_Edge::processSet().
|
static |
Saves the shape of the requested object in the given container.
id | The id of the edge to retrieve |
shape | The container to fill |
Definition at line 349 of file Edge.cpp.
References getEdge(), and MSEdge::getLanes().
|
staticprivate |
Definition at line 103 of file Edge.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 102 of file Edge.h.
Referenced by makeWrapper().