Eclipse SUMO - Simulation of Urban MObility
|
C++ TraCI client API implementation. More...
#include <Helper.h>
Data Structures | |
class | LaneUtility |
class | SubscriptionWrapper |
class | TransportableStateListener |
class | VehicleStateListener |
Static Public Member Functions | |
static Subscription * | addSubscriptionFilter (SubscriptionFilterType filter) |
static void | applySubscriptionFilterFieldOfVision (const Subscription &s, std::set< std::string > &objIDs) |
static void | applySubscriptionFilterLanes (const Subscription &s, std::set< const SUMOTrafficObject * > &vehs, std::vector< int > &filterLanes, double downstreamDist, double upstreamDist, bool disregardOppositeDirection) |
Apply the subscription filter "lanes": Only return vehicles on list of lanes relative to ego vehicle. Search all predecessor and successor lanes along the road network up until upstreamDist and downstreamDist, respectively,. | |
static void | applySubscriptionFilterLateralDistance (const Subscription &s, std::set< const SUMOTrafficObject * > &vehs, double downstreamDist, double upstreamDist, double lateralDist) |
Apply the subscription filter "lateral distance": Only return vehicles within the given lateral distance. Search myRoute (right-most lane) upstream and bestLanesCont downstream up until upstreamDist and downstreamDist, respectively. | |
static void | applySubscriptionFilterLateralDistanceSinglePass (const Subscription &s, std::set< std::string > &objIDs, std::set< const SUMOTrafficObject * > &vehs, const std::vector< const MSLane * > &lanes, double posOnLane, double posLat, bool isDownstream) |
static void | applySubscriptionFilters (const Subscription &s, std::set< std::string > &objIDs) |
Filter the given ID-Set (which was obtained from an R-Tree search) according to the filters set by the subscription or firstly build the object ID list if the filters rather demand searching along the road network than considering a geometric range. | |
static void | applySubscriptionFilterTurn (const Subscription &s, std::set< const SUMOTrafficObject * > &vehs) |
Apply the subscription filter "turn": Gather upcoming junctions and vialanes within downstream distance and find approaching foes within foeDistToJunction. | |
static TraCINextStopData | buildStopData (const SUMOVehicleParameter::Stop &stopPar) |
static SUMOVehicleParameter::Stop | buildStopParameters (const std::string &edgeOrStoppingPlaceID, double pos, int laneIndex, double startPos, int flags, double duration, double until) |
static void | cleanup () |
static void | clearStateChanges () |
static void | clearSubscriptions () |
static void | collectObjectIDsInRange (int domain, const PositionVector &shape, double range, std::set< std::string > &into) |
static void | collectObjectsInRange (int domain, const PositionVector &shape, double range, std::set< const Named * > &into) |
static std::pair< MSLane *, double > | convertCartesianToRoadMap (const Position &pos, const SUMOVehicleClass vClass) |
static void | findObjectShape (int domain, const std::string &id, PositionVector &shape) |
static MSCalibrator::AspiredState | getCalibratorState (const MSCalibrator *c) |
static double | getDrivingDistance (std::pair< const MSLane *, double > &roadPos1, std::pair< const MSLane *, double > &roadPos2) |
static MSEdge * | getEdge (const std::string &edgeID) |
static const MSLane * | getLaneChecking (const std::string &edgeID, int laneIndex, double pos) |
static MSPerson * | getPerson (const std::string &id) |
static MSStoppingPlace * | getStoppingPlace (const std::string &id, const SumoXMLTag type) |
static MSTLLogicControl::TLSLogicVariants & | getTLS (const std::string &id) |
static SUMOTrafficObject * | getTrafficObject (int domain, const std::string &id) |
static const std::vector< std::string > & | getTransportableStateChanges (const MSNet::TransportableState state) |
static MSBaseVehicle * | getVehicle (const std::string &id) |
static const std::vector< std::string > & | getVehicleStateChanges (const MSNet::VehicleState state) |
static const MSVehicleType & | getVehicleType (const std::string &vehicleID) |
static void | handleSubscriptions (const SUMOTime t) |
static Position | makePosition (const TraCIPosition &position) |
static PositionVector | makePositionVector (const TraCIPositionVector &vector) |
static RGBColor | makeRGBColor (const TraCIColor &color) |
static TraCIColor | makeTraCIColor (const RGBColor &color) |
static TraCIPosition | makeTraCIPosition (const Position &position, const bool includeZ=false) |
static TraCIPositionVector | makeTraCIPositionVector (const PositionVector &positionVector) |
helper functions | |
static bool | needNewSubscription (libsumo::Subscription &s, std::vector< Subscription > &subscriptions, libsumo::Subscription *&modifiedSubscription) |
static int | postProcessRemoteControl () |
return number of remote-controlled entities | |
static void | registerStateListener () |
static void | setRemoteControlled (MSPerson *p, Position xyPos, MSLane *l, double pos, double posLat, double angle, int edgeOffset, ConstMSEdgeVector route, SUMOTime t) |
static void | setRemoteControlled (MSVehicle *v, Position xyPos, MSLane *l, double pos, double posLat, double angle, int edgeOffset, ConstMSEdgeVector route, SUMOTime t) |
static void | subscribe (const int commandId, const std::string &id, const std::vector< int > &variables, const double beginTime, const double endTime, const libsumo::TraCIResults ¶ms, const int contextDomain=0, const double range=0.) |
functions for moveToXY | |
static bool | moveToXYMap (const Position &pos, double maxRouteDistance, bool mayLeaveNetwork, const std::string &origID, const double angle, double speed, const ConstMSEdgeVector ¤tRoute, const int routePosition, const MSLane *currentLane, double currentLanePos, bool onRoad, SUMOVehicleClass vClass, bool setLateralPos, double &bestDistance, MSLane **lane, double &lanePos, int &routeOffset, ConstMSEdgeVector &edges) |
static bool | moveToXYMap_matchingRoutePosition (const Position &pos, const std::string &origID, const ConstMSEdgeVector ¤tRoute, int routeIndex, SUMOVehicleClass vClass, bool setLateralPos, double &bestDistance, MSLane **lane, double &lanePos, int &routeOffset) |
static bool | findCloserLane (const MSEdge *edge, const Position &pos, SUMOVehicleClass vClass, double &bestDistance, MSLane **lane) |
Private Member Functions | |
Helper ()=delete | |
invalidated standard constructor | |
Static Private Member Functions | |
static void | debugPrint (const SUMOTrafficObject *veh) |
static void | fuseLaneCoverage (std::shared_ptr< LaneCoverageInfo > aggregatedLaneCoverage, const std::shared_ptr< LaneCoverageInfo > newLaneCoverage) |
Adds lane coverage information from newLaneCoverage into aggregatedLaneCoverage. | |
static void | handleSingleSubscription (const Subscription &s) |
Static Private Attributes | |
static LANE_RTREE_QUAL * | myLaneTree |
A lookup tree of lanes. | |
static Subscription * | myLastContextSubscription = nullptr |
The last context subscription. | |
static std::map< std::string, MSPerson * > | myRemoteControlledPersons |
static std::map< std::string, MSVehicle * > | myRemoteControlledVehicles |
static std::vector< Subscription > | mySubscriptions |
The list of known, still valid subscriptions. | |
static TransportableStateListener | myTransportableStateListener |
Changes in the states of simulated transportables. | |
static VehicleStateListener | myVehicleStateListener |
Changes in the states of simulated vehicles. | |
static std::map< int, std::shared_ptr< VariableWrapper > > | myWrapper |
Map of commandIds -> their executors; applicable if the executor applies to the method footprint. | |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 210 of file Helper.cpp.
References libsumo::Subscription::activeFilters, myLastContextSubscription, and toHex().
Referenced by LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterDownstreamDistance(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterFieldOfVision(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterLanes(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterLateralDistance(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterLeadFollow(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterNoOpposite(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterTurn(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterUpstreamDistance(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterVClass(), and LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterVType().
|
static |
Definition at line 1233 of file Helper.cpp.
References GeomHelper::angleDiff(), Position::angleTo2D(), libsumo::Subscription::contextDomain, DEG2RAD, Position::distanceTo2D(), libsumo::Subscription::filterFieldOfVisionOpeningAngle, SUMOVehicle::getAngle(), SUMOTrafficObject::getPosition(), getTrafficObject(), getVehicle(), libsumo::Subscription::id, libsumo::Subscription::isVehicleToPersonContextSubscription(), RAD2DEG, TL, toString(), and WRITE_WARNINGF.
Referenced by applySubscriptionFilters().
|
static |
Apply the subscription filter "lanes": Only return vehicles on list of lanes relative to ego vehicle. Search all predecessor and successor lanes along the road network up until upstreamDist and downstreamDist, respectively,.
[in] | s | Subscription which holds the filter specification to be applied. |
[in/out] | vehs Set of SUMO traffic objects into which the result is inserted. | |
[in] | filterLanes | Lane offsets to consider. |
[in] | downstreamDist | Downstream distance. |
[in] | upstreamDist | Upstream distance. |
[in] | disregardOppositeDirection | Whether vehicles on opposite lanes shall be taken into account. |
Definition at line 1070 of file Helper.cpp.
References libsumo::Subscription::contextDomain, debugPrint(), fuseLaneCoverage(), MSLane::getEdge(), Named::getID(), MSLane::getIndex(), MSVehicle::getLane(), MSEdge::getLanes(), MSBaseVehicle::getLength(), MSLane::getLength(), MSEdge::getOppositeEdge(), MSLane::getParallelLane(), MSVehicle::getPositionOnLane(), MSLane::getSurroundingVehicles(), getVehicle(), MSLane::getVehiclesInRange(), libsumo::Subscription::id, libsumo::Subscription::isVehicleToVehicleContextSubscription(), MAX2(), SIMTIME, TL, toHex(), and WRITE_WARNINGF.
Referenced by applySubscriptionFilters().
|
static |
Apply the subscription filter "lateral distance": Only return vehicles within the given lateral distance. Search myRoute (right-most lane) upstream and bestLanesCont downstream up until upstreamDist and downstreamDist, respectively.
[in] | s | Subscription which holds the filter specification to be applied. |
[in/out] | vehs Set of SUMO traffic objects into which the result is inserted. | |
[in] | downstreamDist | Downstream distance. |
[in] | upstreamDist | Upstream distance. |
[in] | lateralDist | Lateral distance. |
Definition at line 1272 of file Helper.cpp.
References applySubscriptionFilterLateralDistanceSinglePass(), collectObjectIDsInRange(), libsumo::Subscription::commandId, libsumo::Subscription::contextDomain, findObjectShape(), Named::getID(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), MSVehicle::getLateralPositionOnLane(), MSVehicleType::getLength(), MSLane::getOppositePos(), MSLane::getParallelOpposite(), MSVehicle::getPastLanesUntil(), MSVehicle::getPositionOnLane(), MSVehicle::getUpcomingLanesUntil(), getVehicle(), MSBaseVehicle::getVehicleType(), libsumo::Subscription::id, MSAbstractLaneChangeModel::isOpposite(), MAX2(), and MAX3().
Referenced by applySubscriptionFilters().
|
static |
Definition at line 1306 of file Helper.cpp.
References PositionVector::append(), libsumo::Subscription::contextDomain, PositionVector::distance2D(), libsumo::Subscription::filterDownstreamDist, libsumo::Subscription::filterLateralDist, libsumo::Subscription::filterUpstreamDist, Named::getID(), SUMOTrafficObject::getPosition(), getTrafficObject(), GeomHelper::INVALID_OFFSET, PositionVector::length(), PositionVector::move2side(), PositionVector::prepend(), PositionVector::splitAt(), TL, toString(), and WRITE_WARNINGF.
Referenced by applySubscriptionFilterLateralDistance().
|
static |
Filter the given ID-Set (which was obtained from an R-Tree search) according to the filters set by the subscription or firstly build the object ID list if the filters rather demand searching along the road network than considering a geometric range.
[in] | s | Subscription which holds the filter specification to be applied |
[in/out] | objIDs Set of object IDs that is to be filtered. Result is stored in place. |
Definition at line 890 of file Helper.cpp.
References libsumo::Subscription::activeFilters, applySubscriptionFilterFieldOfVision(), applySubscriptionFilterLanes(), applySubscriptionFilterLateralDistance(), applySubscriptionFilterTurn(), debugPrint(), libsumo::Subscription::filterDownstreamDist, libsumo::Subscription::filterLanes, libsumo::Subscription::filterLateralDist, libsumo::Subscription::filterUpstreamDist, libsumo::Subscription::filterVClasses, libsumo::Subscription::filterVTypes, MSLane::FOLLOW_ALWAYS, MSLane::FOLLOW_NEVER, MSVehicle::getBestLanesContinuation(), MSLane::getEdge(), MSLane::getFollower(), MSVehicleType::getID(), Named::getID(), MSLane::getIndex(), MSVehicle::getLane(), SUMOTrafficObject::getLane(), MSEdge::getLanes(), MSLane::getLeader(), MSBaseVehicle::getLength(), MSEdge::getLength(), MSEdge::getOppositeEdge(), MSLane::getParallelLane(), MSVehicle::getPositionOnLane(), getVehicle(), MSVehicleType::getVehicleClass(), MSBaseVehicle::getVehicleType(), libsumo::Subscription::id, MSVehicle::isOnRoad(), MAX2(), libsumo::Subscription::range, SIMTIME, libsumo::SUBS_FILTER_DOWNSTREAM_DIST, libsumo::SUBS_FILTER_FIELD_OF_VISION, libsumo::SUBS_FILTER_LANES, libsumo::SUBS_FILTER_LATERAL_DIST, libsumo::SUBS_FILTER_LEAD_FOLLOW, libsumo::SUBS_FILTER_MANEUVER, libsumo::SUBS_FILTER_NO_RTREE, libsumo::SUBS_FILTER_NOOPPOSITE, libsumo::SUBS_FILTER_TURN, libsumo::SUBS_FILTER_UPSTREAM_DIST, libsumo::SUBS_FILTER_VCLASS, libsumo::SUBS_FILTER_VTYPE, TL, toString(), and WRITE_WARNINGF.
Referenced by handleSingleSubscription(), and TraCIServer::processSingleSubscription().
|
static |
Apply the subscription filter "turn": Gather upcoming junctions and vialanes within downstream distance and find approaching foes within foeDistToJunction.
[in] | s | Subscription which holds the filter specification to be applied. |
[in/out] | vehs Set of SUMO traffic objects into which the result is inserted. |
Definition at line 1168 of file Helper.cpp.
References libsumo::Subscription::contextDomain, libsumo::Subscription::filterDownstreamDist, libsumo::Subscription::filterFoeDistToJunction, MSLink::getApproaching(), MSVehicle::getBestLanesContinuation(), Named::getID(), MSVehicle::getLane(), MSVehicle::getPositionOnLane(), MSLane::getUpcomingLinks(), getVehicle(), MSLane::getVehiclesSecure(), libsumo::Subscription::id, MSLane::isInternal(), libsumo::Subscription::isVehicleToVehicleContextSubscription(), MSLane::releaseVehicles(), TL, toHex(), and WRITE_WARNINGF.
Referenced by applySubscriptionFilters().
|
static |
Definition at line 643 of file Helper.cpp.
References SUMOVehicleParameter::Stop::actType, SUMOVehicleParameter::Stop::arrival, SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::ended, SUMOVehicleParameter::Stop::endPos, SUMOVehicleParameter::Stop::getFlags(), libsumo::INVALID_DOUBLE_VALUE, SUMOVehicleParameter::Stop::join, SUMOVehicleParameter::Stop::lane, SUMOVehicleParameter::Stop::line, SUMOVehicleParameter::Stop::overheadWireSegment, SUMOVehicleParameter::Stop::parkingarea, SUMOVehicleParameter::Stop::speed, SUMOVehicleParameter::Stop::split, SUMOVehicleParameter::Stop::started, SUMOVehicleParameter::Stop::startPos, STEPS2TIME, SUMOVehicleParameter::Stop::tripId, and SUMOVehicleParameter::Stop::until.
Referenced by LIBSUMO_NAMESPACE::Vehicle::getStops().
|
static |
Definition at line 537 of file Helper.cpp.
References SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, checkTimeBounds(), SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, MSEdge::dictionary(), SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::edge, SUMOVehicleParameter::Stop::endPos, MSStoppingPlace::getBeginLanePosition(), MSLane::getEdge(), MSStoppingPlace::getEndLanePosition(), Named::getID(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSEdge::getLanes(), MSNet::getStoppingPlace(), SUMOVehicleParameter::Stop::index, libsumo::INVALID_DOUBLE_VALUE, SUMOVehicleParameter::Stop::lane, MAX2(), OFFROAD, SUMOVehicleParameter::Stop::overheadWireSegment, SUMOVehicleParameter::Stop::parametersSet, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, SUMOVehicleParameter::Stop::startPos, STOP_CONTAINER_TRIGGER_SET, STOP_DURATION_SET, STOP_END_SET, STOP_INDEX_FIT, STOP_PARKING_SET, STOP_START_SET, STOP_TRIGGER_SET, STOP_UNTIL_SET, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_NOTHING, SUMO_TAG_OVERHEAD_WIRE_SEGMENT, SUMO_TAG_PARKING_AREA, SUMOTime_MAX, TIME2STEPS, toString(), SUMOVehicleParameter::Stop::triggered, and SUMOVehicleParameter::Stop::until.
Referenced by LIBSUMO_NAMESPACE::Vehicle::insertStop(), LIBSUMO_NAMESPACE::Vehicle::replaceStop(), and LIBSUMO_NAMESPACE::Vehicle::setStop().
|
static |
Definition at line 683 of file Helper.cpp.
References clearStateChanges(), clearSubscriptions(), and myLaneTree.
Referenced by MSNet::clearAll().
|
static |
Definition at line 719 of file Helper.cpp.
References libsumo::Helper::TransportableStateListener::myTransportableStateChanges, myTransportableStateListener, libsumo::Helper::VehicleStateListener::myVehicleStateChanges, and myVehicleStateListener.
Referenced by cleanup(), LIBSUMO_NAMESPACE::Simulation::loadState(), and LIBSUMO_NAMESPACE::Simulation::step().
|
static |
Definition at line 203 of file Helper.cpp.
References myLastContextSubscription, and mySubscriptions.
Referenced by cleanup(), LIBSUMO_NAMESPACE::Simulation::close(), and LIBSUMO_NAMESPACE::Simulation::loadState().
|
static |
Definition at line 810 of file Helper.cpp.
References collectObjectsInRange().
Referenced by applySubscriptionFilterLateralDistance(), handleSingleSubscription(), and TraCIServer::processSingleSubscription().
|
static |
Definition at line 820 of file Helper.cpp.
References libsumo::CMD_GET_BUSSTOP_VARIABLE, libsumo::CMD_GET_CALIBRATOR_VARIABLE, libsumo::CMD_GET_CHARGINGSTATION_VARIABLE, libsumo::CMD_GET_EDGE_VARIABLE, libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, libsumo::CMD_GET_JUNCTION_VARIABLE, libsumo::CMD_GET_LANE_VARIABLE, libsumo::CMD_GET_LANEAREA_VARIABLE, libsumo::CMD_GET_PARKINGAREA_VARIABLE, libsumo::CMD_GET_PERSON_VARIABLE, libsumo::CMD_GET_POI_VARIABLE, libsumo::CMD_GET_POLYGON_VARIABLE, libsumo::CMD_GET_VEHICLE_VARIABLE, PositionVector::distance2D(), MSLane::fill(), PositionVector::getBoxBoundary(), MSNet::getInstance(), MSCalibrator::getInstances(), MSNet::getStoppingPlaces(), Boundary::grow(), LANE_RTREE_QUAL, myLaneTree, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_PARKING_AREA, toString(), MSLane::visit(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by collectObjectIDsInRange(), convertCartesianToRoadMap(), moveToXYMap(), moveToXYMap_matchingRoutePosition(), and MSFCDExport::write().
|
static |
Definition at line 420 of file Helper.cpp.
References MSLane::allowsVehicleClass(), libsumo::CMD_GET_LANE_VARIABLE, collectObjectsInRange(), PositionVector::distance2D(), Boundary::distanceTo2D(), GeoConvHelper::getConvBoundary(), GeoConvHelper::getFinal(), Boundary::getHeight(), Named::getID(), MSLane::getShape(), Boundary::getWidth(), MSLane::interpolateGeometryPosToLanePos(), and MAX2().
Referenced by TraCIServerAPI_Simulation::commandDistanceRequest(), TraCIServerAPI_Simulation::commandPositionConversion(), LIBSUMO_NAMESPACE::Simulation::convertRoad(), LIBSUMO_NAMESPACE::Simulation::getDistance2D(), and LIBSUMO_NAMESPACE::Vehicle::getDrivingDistance2D().
|
staticprivate |
Definition at line 97 of file Helper.cpp.
References SUMOTrafficObject::getEdge(), Named::getID(), and SUMOTrafficObject::isVehicle().
Referenced by applySubscriptionFilterLanes(), and applySubscriptionFilters().
|
static |
Definition at line 1685 of file Helper.cpp.
References findCloserLane(), MSEdge::getLanes(), MSEdge::getNumLanes(), and MSEdge::isInternal().
Referenced by findCloserLane(), and moveToXYMap_matchingRoutePosition().
|
static |
Definition at line 740 of file Helper.cpp.
References libsumo::CMD_SUBSCRIBE_BUSSTOP_CONTEXT, libsumo::CMD_SUBSCRIBE_CALIBRATOR_CONTEXT, libsumo::CMD_SUBSCRIBE_CHARGINGSTATION_CONTEXT, libsumo::CMD_SUBSCRIBE_EDGE_CONTEXT, libsumo::CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT, libsumo::CMD_SUBSCRIBE_JUNCTION_CONTEXT, libsumo::CMD_SUBSCRIBE_LANE_CONTEXT, libsumo::CMD_SUBSCRIBE_LANEAREA_CONTEXT, libsumo::CMD_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT, libsumo::CMD_SUBSCRIBE_PARKINGAREA_CONTEXT, libsumo::CMD_SUBSCRIBE_PERSON_CONTEXT, libsumo::CMD_SUBSCRIBE_POI_CONTEXT, libsumo::CMD_SUBSCRIBE_POLYGON_CONTEXT, libsumo::CMD_SUBSCRIBE_VEHICLE_CONTEXT, MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), MSE3Collector::getEntries(), MSE3Collector::getExits(), MSStoppingPlace::getLane(), MSCalibrator::getLane(), MSLane::getShape(), getStoppingPlace(), PositionVector::positionAtOffset(), SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, and SUMO_TAG_PARKING_AREA.
Referenced by applySubscriptionFilterLateralDistance(), handleSingleSubscription(), and TraCIServer::processSingleSubscription().
|
staticprivate |
Adds lane coverage information from newLaneCoverage into aggregatedLaneCoverage.
[in/out] | aggregatedLaneCoverage - aggregated lane coverage info, to which the new will be added | |
[in] | newLaneCoverage | - new lane coverage to be added |
Definition at line 319 of file Helper.cpp.
References MAX2(), and MIN2().
Referenced by applySubscriptionFilterLanes().
|
static |
Definition at line 730 of file Helper.cpp.
References MSCalibrator::getCurrentStateInterval().
Referenced by LIBSUMO_NAMESPACE::Calibrator::getBegin(), LIBSUMO_NAMESPACE::Calibrator::getEnd(), LIBSUMO_NAMESPACE::Calibrator::getRouteID(), LIBSUMO_NAMESPACE::Calibrator::getSpeed(), LIBSUMO_NAMESPACE::Calibrator::getTypeID(), and LIBSUMO_NAMESPACE::Calibrator::getVehsPerHour().
|
static |
Definition at line 455 of file Helper.cpp.
References SUMOAbstractRouter< E, V >::compute(), MSRoute::getDistanceBetween(), MSNet::getInstance(), MSNet::getRouterTT(), libsumo::INVALID_DOUBLE_VALUE, and SIMSTEP.
Referenced by TraCIServerAPI_Simulation::commandDistanceRequest(), LIBSUMO_NAMESPACE::Simulation::getDistance2D(), and LIBSUMO_NAMESPACE::Simulation::getDistanceRoad().
|
static |
Definition at line 393 of file Helper.cpp.
References MSEdge::dictionary().
Referenced by LIBSUMO_NAMESPACE::Vehicle::getAdaptedTraveltime(), and LIBSUMO_NAMESPACE::Vehicle::getEffort().
|
static |
Definition at line 403 of file Helper.cpp.
References MSEdge::dictionary(), MSEdge::getLanes(), and MSLane::getLength().
Referenced by TraCIServerAPI_Simulation::commandDistanceRequest(), TraCIServerAPI_Simulation::commandPositionConversion(), LIBSUMO_NAMESPACE::Simulation::convert2D(), LIBSUMO_NAMESPACE::Simulation::convert3D(), LIBSUMO_NAMESPACE::Simulation::getDistanceRoad(), and LIBSUMO_NAMESPACE::Vehicle::getDrivingDistance().
|
static |
Definition at line 491 of file Helper.cpp.
References MSTransportableControl::get(), MSNet::getInstance(), and MSNet::getPersonControl().
Referenced by LIBSUMO_NAMESPACE::Person::getPerson(), and getTrafficObject().
|
static |
Definition at line 527 of file Helper.cpp.
References MSNet::getInstance(), MSNet::getStoppingPlace(), and toString().
Referenced by findObjectShape(), LIBSUMO_NAMESPACE::BusStop::getBusStop(), LIBSUMO_NAMESPACE::ChargingStation::getChargingStation(), and LIBSUMO_NAMESPACE::ParkingArea::getParkingArea().
|
static |
Definition at line 518 of file Helper.cpp.
References MSTLLogicControl::get(), MSNet::getInstance(), and MSNet::getTLSControl().
Referenced by LIBSUMO_NAMESPACE::TrafficLight::addConstraint(), LIBSUMO_NAMESPACE::TrafficLight::getAllProgramLogics(), LIBSUMO_NAMESPACE::TrafficLight::getBlockingVehicles(), LIBSUMO_NAMESPACE::TrafficLight::getConstraints(), LIBSUMO_NAMESPACE::TrafficLight::getConstraintsByFoe(), LIBSUMO_NAMESPACE::TrafficLight::getControlledJunctions(), LIBSUMO_NAMESPACE::TrafficLight::getControlledLanes(), LIBSUMO_NAMESPACE::TrafficLight::getControlledLinks(), LIBSUMO_NAMESPACE::TrafficLight::getNextSwitch(), LIBSUMO_NAMESPACE::TrafficLight::getPhase(), LIBSUMO_NAMESPACE::TrafficLight::getPhaseDuration(), LIBSUMO_NAMESPACE::TrafficLight::getPhaseName(), LIBSUMO_NAMESPACE::TrafficLight::getPriorityVehicles(), LIBSUMO_NAMESPACE::TrafficLight::getProgram(), LIBSUMO_NAMESPACE::TrafficLight::getRedYellowGreenState(), LIBSUMO_NAMESPACE::TrafficLight::getRivalVehicles(), LIBSUMO_NAMESPACE::TrafficLight::getServedPersonCount(), LIBSUMO_NAMESPACE::TrafficLight::getSpentDuration(), LIBSUMO_NAMESPACE::TrafficLight::removeConstraints(), LIBSUMO_NAMESPACE::TrafficLight::setPhase(), LIBSUMO_NAMESPACE::TrafficLight::setPhaseDuration(), LIBSUMO_NAMESPACE::TrafficLight::setPhaseName(), LIBSUMO_NAMESPACE::TrafficLight::setProgram(), LIBSUMO_NAMESPACE::TrafficLight::setProgramLogic(), LIBSUMO_NAMESPACE::TrafficLight::setRedYellowGreenState(), and LIBSUMO_NAMESPACE::TrafficLight::swapConstraints().
|
static |
Definition at line 501 of file Helper.cpp.
References libsumo::CMD_GET_PERSON_VARIABLE, libsumo::CMD_GET_VEHICLE_VARIABLE, getPerson(), getVehicle(), and toString().
Referenced by applySubscriptionFilterFieldOfVision(), and applySubscriptionFilterLateralDistanceSinglePass().
|
static |
Definition at line 713 of file Helper.cpp.
References libsumo::Helper::TransportableStateListener::myTransportableStateChanges, and myTransportableStateListener.
Referenced by LIBSUMO_NAMESPACE::Simulation::getArrivedPersonIDList(), LIBSUMO_NAMESPACE::Simulation::getArrivedPersonNumber(), LIBSUMO_NAMESPACE::Simulation::getDepartedPersonIDList(), and LIBSUMO_NAMESPACE::Simulation::getDepartedPersonNumber().
|
static |
Definition at line 477 of file Helper.cpp.
References MSNet::getInstance(), MSVehicleControl::getVehicle(), and MSNet::getVehicleControl().
Referenced by applySubscriptionFilterFieldOfVision(), applySubscriptionFilterLanes(), applySubscriptionFilterLateralDistance(), applySubscriptionFilters(), applySubscriptionFilterTurn(), LIBSUMO_NAMESPACE::Vehicle::changeLane(), LIBSUMO_NAMESPACE::Vehicle::changeLaneRelative(), LIBSUMO_NAMESPACE::Vehicle::changeSublane(), LIBSUMO_NAMESPACE::Vehicle::changeTarget(), LIBSUMO_NAMESPACE::Vehicle::deactivateGapControl(), LIBSUMO_NAMESPACE::Vehicle::dispatchTaxi(), LIBSUMO_NAMESPACE::Vehicle::getAcceleration(), LIBSUMO_NAMESPACE::Vehicle::getAccumulatedWaitingTime(), LIBSUMO_NAMESPACE::Vehicle::getAdaptedTraveltime(), LIBSUMO_NAMESPACE::Vehicle::getAllowedSpeed(), LIBSUMO_NAMESPACE::Vehicle::getAngle(), LIBSUMO_NAMESPACE::Vehicle::getBestLanes(), LIBSUMO_NAMESPACE::Vehicle::getCO2Emission(), LIBSUMO_NAMESPACE::Vehicle::getCOEmission(), LIBSUMO_NAMESPACE::Vehicle::getDepartDelay(), LIBSUMO_NAMESPACE::Vehicle::getDeparture(), LIBSUMO_NAMESPACE::Vehicle::getDistance(), LIBSUMO_NAMESPACE::Vehicle::getDrivingDistance(), LIBSUMO_NAMESPACE::Vehicle::getDrivingDistance2D(), LIBSUMO_NAMESPACE::Vehicle::getEffort(), LIBSUMO_NAMESPACE::Vehicle::getElectricityConsumption(), LIBSUMO_NAMESPACE::Vehicle::getFollower(), LIBSUMO_NAMESPACE::Vehicle::getFollowSpeed(), LIBSUMO_NAMESPACE::Vehicle::getFuelConsumption(), LIBSUMO_NAMESPACE::Vehicle::getHCEmission(), LIBSUMO_NAMESPACE::Vehicle::getJunctionFoes(), LIBSUMO_NAMESPACE::Vehicle::getLaneChangeMode(), LIBSUMO_NAMESPACE::Vehicle::getLaneChangeState(), LIBSUMO_NAMESPACE::Vehicle::getLaneID(), LIBSUMO_NAMESPACE::Vehicle::getLaneIndex(), LIBSUMO_NAMESPACE::Vehicle::getLanePosition(), LIBSUMO_NAMESPACE::Vehicle::getLastActionTime(), LIBSUMO_NAMESPACE::Vehicle::getLateralLanePosition(), LIBSUMO_NAMESPACE::Vehicle::getLateralSpeed(), LIBSUMO_NAMESPACE::Vehicle::getLeader(), LIBSUMO_NAMESPACE::Vehicle::getLine(), LIBSUMO_NAMESPACE::Vehicle::getNeighbors(), LIBSUMO_NAMESPACE::Vehicle::getNextLinks(), LIBSUMO_NAMESPACE::Vehicle::getNextTLS(), LIBSUMO_NAMESPACE::Vehicle::getNoiseEmission(), LIBSUMO_NAMESPACE::Vehicle::getNOxEmission(), LIBSUMO_NAMESPACE::Vehicle::getPersonIDList(), LIBSUMO_NAMESPACE::Vehicle::getPersonNumber(), LIBSUMO_NAMESPACE::Vehicle::getPMxEmission(), LIBSUMO_NAMESPACE::Vehicle::getPosition(), LIBSUMO_NAMESPACE::Vehicle::getRoadID(), LIBSUMO_NAMESPACE::Vehicle::getRoute(), LIBSUMO_NAMESPACE::Vehicle::getRouteID(), LIBSUMO_NAMESPACE::Vehicle::getRouteIndex(), LIBSUMO_NAMESPACE::Vehicle::getRoutingMode(), LIBSUMO_NAMESPACE::Vehicle::getSecureGap(), LIBSUMO_NAMESPACE::Vehicle::getSegmentID(), LIBSUMO_NAMESPACE::Vehicle::getSegmentIndex(), LIBSUMO_NAMESPACE::Vehicle::getSignals(), LIBSUMO_NAMESPACE::Vehicle::getSlope(), LIBSUMO_NAMESPACE::Vehicle::getSpeed(), LIBSUMO_NAMESPACE::Vehicle::getSpeedMode(), LIBSUMO_NAMESPACE::Vehicle::getSpeedWithoutTraCI(), LIBSUMO_NAMESPACE::Vehicle::getStopArrivalDelay(), LIBSUMO_NAMESPACE::Vehicle::getStopDelay(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), LIBSUMO_NAMESPACE::Vehicle::getStops(), LIBSUMO_NAMESPACE::Vehicle::getStopSpeed(), LIBSUMO_NAMESPACE::Vehicle::getStopState(), LIBSUMO_NAMESPACE::Vehicle::getTimeLoss(), getTrafficObject(), getVehicleType(), LIBSUMO_NAMESPACE::Vehicle::getVia(), LIBSUMO_NAMESPACE::Vehicle::getWaitingTime(), LIBSUMO_NAMESPACE::Vehicle::highlight(), LIBSUMO_NAMESPACE::Vehicle::insertStop(), LIBSUMO_NAMESPACE::Vehicle::isRouteValid(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::openGap(), LIBSUMO_NAMESPACE::Vehicle::remove(), LIBSUMO_NAMESPACE::Vehicle::replaceStop(), LIBSUMO_NAMESPACE::Vehicle::rerouteEffort(), LIBSUMO_NAMESPACE::Vehicle::rerouteParkingArea(), LIBSUMO_NAMESPACE::Vehicle::rerouteTraveltime(), LIBSUMO_NAMESPACE::Vehicle::resume(), LIBSUMO_NAMESPACE::Vehicle::setAcceleration(), LIBSUMO_NAMESPACE::Vehicle::setAdaptedTraveltime(), LIBSUMO_NAMESPACE::Vehicle::setEffort(), LIBSUMO_NAMESPACE::Vehicle::setLaneChangeMode(), LIBSUMO_NAMESPACE::Vehicle::setLateralLanePosition(), LIBSUMO_NAMESPACE::Vehicle::setLine(), LIBSUMO_NAMESPACE::Vehicle::setPreviousSpeed(), LIBSUMO_NAMESPACE::Vehicle::setRoute(), LIBSUMO_NAMESPACE::Vehicle::setRouteID(), LIBSUMO_NAMESPACE::Vehicle::setRoutingMode(), LIBSUMO_NAMESPACE::Vehicle::setSignals(), LIBSUMO_NAMESPACE::Vehicle::setSpeed(), LIBSUMO_NAMESPACE::Vehicle::setSpeedMode(), LIBSUMO_NAMESPACE::Vehicle::setStop(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::Vehicle::setType(), LIBSUMO_NAMESPACE::Vehicle::setVia(), LIBSUMO_NAMESPACE::Vehicle::slowDown(), LIBSUMO_NAMESPACE::Vehicle::storeShape(), LIBSUMO_NAMESPACE::Vehicle::updateBestLanes(), and LIBSUMO_NAMESPACE::TrafficLight::updateConstraints().
|
static |
Definition at line 707 of file Helper.cpp.
References libsumo::Helper::VehicleStateListener::myVehicleStateChanges, and myVehicleStateListener.
Referenced by LIBSUMO_NAMESPACE::Simulation::getArrivedIDList(), LIBSUMO_NAMESPACE::Simulation::getArrivedNumber(), LIBSUMO_NAMESPACE::Simulation::getCollidingVehiclesIDList(), LIBSUMO_NAMESPACE::Simulation::getCollidingVehiclesNumber(), LIBSUMO_NAMESPACE::Simulation::getDepartedIDList(), LIBSUMO_NAMESPACE::Simulation::getDepartedNumber(), LIBSUMO_NAMESPACE::Simulation::getEmergencyStoppingVehiclesIDList(), LIBSUMO_NAMESPACE::Simulation::getEmergencyStoppingVehiclesNumber(), LIBSUMO_NAMESPACE::Simulation::getEndingTeleportIDList(), LIBSUMO_NAMESPACE::Simulation::getEndingTeleportNumber(), LIBSUMO_NAMESPACE::Simulation::getLoadedIDList(), LIBSUMO_NAMESPACE::Simulation::getLoadedNumber(), LIBSUMO_NAMESPACE::Simulation::getParkingEndingVehiclesIDList(), LIBSUMO_NAMESPACE::Simulation::getParkingEndingVehiclesNumber(), LIBSUMO_NAMESPACE::Simulation::getParkingStartingVehiclesIDList(), LIBSUMO_NAMESPACE::Simulation::getParkingStartingVehiclesNumber(), LIBSUMO_NAMESPACE::Simulation::getStartingTeleportIDList(), LIBSUMO_NAMESPACE::Simulation::getStartingTeleportNumber(), LIBSUMO_NAMESPACE::Simulation::getStopEndingVehiclesIDList(), LIBSUMO_NAMESPACE::Simulation::getStopEndingVehiclesNumber(), LIBSUMO_NAMESPACE::Simulation::getStopStartingVehiclesIDList(), LIBSUMO_NAMESPACE::Simulation::getStopStartingVehiclesNumber(), and handleSubscriptions().
|
static |
Definition at line 512 of file Helper.cpp.
References getVehicle(), and MSBaseVehicle::getVehicleType().
Referenced by LIBSUMO_NAMESPACE::Vehicle::getTypeID().
|
staticprivate |
Definition at line 232 of file Helper.cpp.
References libsumo::Subscription::activeFilters, applySubscriptionFilters(), libsumo::CMD_GET_BUSSTOP_VARIABLE, libsumo::CMD_GET_CALIBRATOR_VARIABLE, libsumo::CMD_GET_CHARGINGSTATION_VARIABLE, libsumo::CMD_GET_EDGE_VARIABLE, libsumo::CMD_GET_GUI_VARIABLE, libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, libsumo::CMD_GET_JUNCTION_VARIABLE, libsumo::CMD_GET_LANE_VARIABLE, libsumo::CMD_GET_LANEAREA_VARIABLE, libsumo::CMD_GET_MEANDATA_VARIABLE, libsumo::CMD_GET_MULTIENTRYEXIT_VARIABLE, libsumo::CMD_GET_OVERHEADWIRE_VARIABLE, libsumo::CMD_GET_PARKINGAREA_VARIABLE, libsumo::CMD_GET_PERSON_VARIABLE, libsumo::CMD_GET_POI_VARIABLE, libsumo::CMD_GET_POLYGON_VARIABLE, libsumo::CMD_GET_REROUTER_VARIABLE, libsumo::CMD_GET_ROUTE_VARIABLE, libsumo::CMD_GET_ROUTEPROBE_VARIABLE, libsumo::CMD_GET_SIM_VARIABLE, libsumo::CMD_GET_TL_VARIABLE, libsumo::CMD_GET_VARIABLESPEEDSIGN_VARIABLE, libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::CMD_GET_VEHICLETYPE_VARIABLE, collectObjectIDsInRange(), libsumo::Subscription::commandId, libsumo::Subscription::contextDomain, libsumo::VariableWrapper::empty(), findObjectShape(), libsumo::Subscription::id, libsumo::LAST_STEP_VEHICLE_NUMBER, myWrapper, libsumo::Subscription::parameters, libsumo::Subscription::range, libsumo::VariableWrapper::setContext(), libsumo::SUBS_FILTER_NO_RTREE, libsumo::TRACI_ID_LIST, libsumo::VAR_LANEPOSITION, libsumo::VAR_ROAD_ID, and libsumo::Subscription::variables.
Referenced by handleSubscriptions(), and subscribe().
|
static |
Definition at line 153 of file Helper.cpp.
References MSNet::ARRIVED, libsumo::CMD_SUBSCRIBE_PERSON_CONTEXT, libsumo::CMD_SUBSCRIBE_PERSON_VARIABLE, libsumo::CMD_SUBSCRIBE_VEHICLE_CONTEXT, libsumo::CMD_SUBSCRIBE_VEHICLE_VARIABLE, libsumo::Subscription::commandId, libsumo::Subscription::endTime, MSTransportableControl::get(), MSNet::getInstance(), MSNet::getPersonControl(), getVehicleStateChanges(), handleSingleSubscription(), libsumo::Subscription::id, mySubscriptions, and myWrapper.
Referenced by LIBSUMO_NAMESPACE::Simulation::step().
|
static |
Definition at line 387 of file Helper.cpp.
References libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
|
static |
Definition at line 347 of file Helper.cpp.
References libsumo::TraCIPositionVector::value.
Referenced by LIBSUMO_NAMESPACE::Polygon::add(), and LIBSUMO_NAMESPACE::Polygon::setShape().
|
static |
Definition at line 371 of file Helper.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::TraCIColor::g, and libsumo::TraCIColor::r.
Referenced by LIBSUMO_NAMESPACE::POI::add(), LIBSUMO_NAMESPACE::Polygon::add(), LIBSUMO_NAMESPACE::POI::setColor(), and LIBSUMO_NAMESPACE::Polygon::setColor().
|
static |
Definition at line 360 of file Helper.cpp.
References libsumo::TraCIColor::a, RGBColor::alpha(), libsumo::TraCIColor::b, RGBColor::blue(), libsumo::TraCIColor::g, RGBColor::green(), libsumo::TraCIColor::r, and RGBColor::red().
Referenced by LIBSUMO_NAMESPACE::POI::getColor(), and LIBSUMO_NAMESPACE::Polygon::getColor().
|
static |
Definition at line 377 of file Helper.cpp.
References libsumo::INVALID_DOUBLE_VALUE, libsumo::TraCIPosition::x, Position::x(), libsumo::TraCIPosition::y, Position::y(), libsumo::TraCIPosition::z, and Position::z().
Referenced by LIBSUMO_NAMESPACE::Simulation::convert2D(), LIBSUMO_NAMESPACE::Simulation::convert3D(), LIBSUMO_NAMESPACE::Simulation::convertGeo(), LIBSUMO_NAMESPACE::Junction::getPosition(), LIBSUMO_NAMESPACE::Person::getPosition(), LIBSUMO_NAMESPACE::POI::getPosition(), LIBSUMO_NAMESPACE::Vehicle::getPosition(), LIBSUMO_NAMESPACE::Person::getPosition3D(), and makeTraCIPositionVector().
|
static |
helper functions
Definition at line 337 of file Helper.cpp.
References makeTraCIPosition(), and libsumo::TraCIPositionVector::value.
Referenced by LIBSUMO_NAMESPACE::Junction::getShape(), LIBSUMO_NAMESPACE::Polygon::getShape(), LIBSUMO_NAMESPACE::POI::highlight(), LIBSUMO_NAMESPACE::Vehicle::highlight(), and TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 1423 of file Helper.cpp.
References libsumo::Helper::LaneUtility::angleDiff, libsumo::CMD_GET_EDGE_VARIABLE, collectObjectsInRange(), libsumo::Helper::LaneUtility::dist, PositionVector::distance2D(), PositionVector::extrapolate2D(), FAR_AWAY, MSLane::getEdge(), MSEdge::getFromJunction(), Named::getID(), Named::getIDSecure(), MSEdge::getLanes(), MSEdge::getLength(), MSLane::getLogicalPredecessorLane(), GeomHelper::getMinAngleDiff(), MSEdge::getPermissions(), MSEdge::getPredecessors(), MSLane::getShape(), MSEdge::getSuccessors(), MSEdge::getToJunction(), gPrecision, libsumo::Helper::LaneUtility::ID, MSLane::interpolateGeometryPosToLanePos(), libsumo::INVALID_DOUBLE_VALUE, GeomHelper::INVALID_OFFSET, MSEdge::isCrossing(), MSEdge::isInternal(), MSEdge::isNormal(), MSEdge::isWalkingArea(), MAX2(), MIN2(), GeomHelper::naviDegree(), PositionVector::nearest_offset_to_point25D(), PositionVector::nearest_offset_to_point2D(), libsumo::Helper::LaneUtility::nextEdge, libsumo::Helper::LaneUtility::onRoute, libsumo::Helper::LaneUtility::prevEdge, libsumo::Helper::LaneUtility::sameEdge, SIMTIME, SPEED2DIST, SUMO_const_laneWidth, SUMO_PARAM_ORIGID, toString(), and TS.
Referenced by LIBSUMO_NAMESPACE::Person::moveToXY(), and LIBSUMO_NAMESPACE::Vehicle::moveToXY().
|
static |
Definition at line 1731 of file Helper.cpp.
References libsumo::CMD_GET_LANE_VARIABLE, collectObjectsInRange(), findCloserLane(), MSLane::getEdge(), Named::getIDSecure(), MSEdge::getInternalFollowingEdge(), MSEdge::getToJunction(), MSEdge::isCrossing(), MSEdge::isWalkingArea(), MAX2(), MIN2(), SIMTIME, SUMO_PARAM_ORIGID, SVC_PEDESTRIAN, and toString().
Referenced by MSPModel_JuPedSim::execute(), LIBSUMO_NAMESPACE::Person::moveToXY(), and LIBSUMO_NAMESPACE::Vehicle::moveToXY().
|
static |
Definition at line 178 of file Helper.cpp.
References libsumo::Subscription::beginTime, libsumo::Subscription::commandId, libsumo::Subscription::contextDomain, libsumo::Subscription::endTime, libsumo::Subscription::id, libsumo::Subscription::parameters, libsumo::Subscription::range, and libsumo::Subscription::variables.
Referenced by TraCIServer::initialiseSubscription(), and subscribe().
|
static |
return number of remote-controlled entities
Definition at line 1398 of file Helper.cpp.
References MSTransportableControl::get(), MSNet::getInstance(), MSNet::getPersonControl(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), myRemoteControlledPersons, myRemoteControlledVehicles, TL, and WRITE_WARNINGF.
Referenced by MSNet::postMoveStep().
|
static |
Definition at line 698 of file Helper.cpp.
References MSNet::addTransportableStateListener(), MSNet::addVehicleStateListener(), MSNet::getInstance(), MSNet::hasInstance(), myTransportableStateListener, and myVehicleStateListener.
Referenced by NLBuilder::init(), and GUILoadThread::run().
|
static |
Definition at line 1390 of file Helper.cpp.
References Named::getID(), MSPerson::getInfluencer(), myRemoteControlledPersons, and MSPerson::Influencer::setRemoteControlled().
|
static |
Definition at line 1383 of file Helper.cpp.
References Named::getID(), MSVehicle::getInfluencer(), myRemoteControlledVehicles, and MSVehicle::Influencer::setRemoteControlled().
Referenced by LIBSUMO_NAMESPACE::Person::moveToXY(), and LIBSUMO_NAMESPACE::Vehicle::moveToXY().
|
static |
Definition at line 109 of file Helper.cpp.
References libsumo::CMD_SUBSCRIBE_SIM_CONTEXT, handleSingleSubscription(), libsumo::INVALID_DOUBLE_VALUE, libsumo::Subscription::isVehicleToPersonContextSubscription(), libsumo::Subscription::isVehicleToVehicleContextSubscription(), myLastContextSubscription, mySubscriptions, needNewSubscription(), libsumo::Subscription::range, STEPS2TIME, SUMOTime_MAX, TIME2STEPS, libsumo::StorageHelper::toStorage(), and libsumo::Subscription::variables.
Referenced by LIBSUMO_NAMESPACE::Simulation::subscribe().
|
staticprivate |
A lookup tree of lanes.
Definition at line 277 of file Helper.h.
Referenced by cleanup(), and collectObjectsInRange().
|
staticprivate |
The last context subscription.
Definition at line 265 of file Helper.h.
Referenced by addSubscriptionFilter(), clearSubscriptions(), and subscribe().
|
staticprivate |
Definition at line 280 of file Helper.h.
Referenced by postProcessRemoteControl(), and setRemoteControlled().
|
staticprivate |
Definition at line 279 of file Helper.h.
Referenced by postProcessRemoteControl(), and setRemoteControlled().
|
staticprivate |
The list of known, still valid subscriptions.
Definition at line 262 of file Helper.h.
Referenced by clearSubscriptions(), handleSubscriptions(), and subscribe().
|
staticprivate |
Changes in the states of simulated transportables.
Definition at line 274 of file Helper.h.
Referenced by clearStateChanges(), getTransportableStateChanges(), and registerStateListener().
|
staticprivate |
Changes in the states of simulated vehicles.
Definition at line 271 of file Helper.h.
Referenced by clearStateChanges(), getVehicleStateChanges(), and registerStateListener().
|
staticprivate |
Map of commandIds -> their executors; applicable if the executor applies to the method footprint.
Definition at line 268 of file Helper.h.
Referenced by handleSingleSubscription(), and handleSubscriptions().