Eclipse SUMO - Simulation of Urban MObility
|
Representation of a subscription. More...
#include <Subscription.h>
Public Member Functions | |
bool | isVehicleToPersonContextSubscription () const |
bool | isVehicleToVehicleContextSubscription () const |
Subscription (int commandIdArg, const std::string &idArg, const std::vector< int > &variablesArg, const std::vector< std::shared_ptr< tcpip::Storage > > ¶msArg, SUMOTime beginTimeArg, SUMOTime endTimeArg, int contextDomainArg, double rangeArg) | |
Constructor. | |
Data Fields | |
int | activeFilters |
Active filters for the subscription (bitset,. | |
SUMOTime | beginTime |
The begin time of the subscription. | |
int | commandId |
commandIdArg The command id of the subscription | |
int | contextDomain |
The domain ID of the context. | |
SUMOTime | endTime |
The end time of the subscription. | |
double | filterDownstreamDist |
Downstream distance specified by the downstream distance filter. | |
double | filterFieldOfVisionOpeningAngle |
Opening angle (in deg) specified by the field of vision filter. | |
double | filterFoeDistToJunction |
Foe distance to junction specified by the turn filter. | |
std::vector< int > | filterLanes |
lanes specified by the lanes filter | |
double | filterLateralDist |
Lateral distance specified by the lateral distance filter. | |
double | filterUpstreamDist |
Upstream distance specified by the upstream distance filter. | |
SVCPermissions | filterVClasses |
vClasses specified by the vClasses filter, | |
std::set< std::string > | filterVTypes |
vTypes specified by the vTypes filter | |
std::string | id |
The id of the object that is subscribed. | |
std::vector< std::shared_ptr< tcpip::Storage > > | parameters |
The parameters for the subscribed variables. | |
double | range |
The range of the context. | |
std::vector< int > | variables |
The subscribed variables. | |
Representation of a subscription.
Definition at line 70 of file Subscription.h.
|
inline |
Constructor.
[in] | commandIdArg | The command id of the subscription |
[in] | idArg | The id of the object that is subscribed |
[in] | variablesArg | The subscribed variables |
[in] | paramsArg | The parameters for the subscribed variables |
[in] | beginTimeArg | The begin time of the subscription |
[in] | endTimeArg | The end time of the subscription |
[in] | contextDomainArg | The domain ID of the context |
[in] | rangeArg | The range of the context |
Definition at line 82 of file Subscription.h.
|
inline |
Definition at line 109 of file Subscription.h.
References libsumo::CMD_GET_PERSON_VARIABLE, libsumo::CMD_SUBSCRIBE_VEHICLE_CONTEXT, commandId, and contextDomain.
Referenced by libsumo::Helper::applySubscriptionFilterFieldOfVision(), TraCIServer::initialiseSubscription(), and libsumo::Helper::subscribe().
|
inline |
Definition at line 105 of file Subscription.h.
References libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::CMD_SUBSCRIBE_VEHICLE_CONTEXT, commandId, and contextDomain.
Referenced by libsumo::Helper::applySubscriptionFilterLanes(), libsumo::Helper::applySubscriptionFilterTurn(), TraCIServer::initialiseSubscription(), and libsumo::Helper::subscribe().
int libsumo::Subscription::activeFilters |
Active filters for the subscription (bitset,.
Definition at line 131 of file Subscription.h.
Referenced by libsumo::Helper::addSubscriptionFilter(), TraCIServer::addSubscriptionFilterDownstreamDistance(), TraCIServer::addSubscriptionFilterFieldOfVision(), TraCIServer::addSubscriptionFilterLanes(), TraCIServer::addSubscriptionFilterLateralDistance(), TraCIServer::addSubscriptionFilterLeadFollow(), TraCIServer::addSubscriptionFilterNoOpposite(), TraCIServer::addSubscriptionFilterTurn(), TraCIServer::addSubscriptionFilterUpstreamDistance(), TraCIServer::addSubscriptionFilterVClass(), TraCIServer::addSubscriptionFilterVType(), libsumo::Helper::applySubscriptionFilters(), libsumo::Helper::handleSingleSubscription(), TraCIServer::processSingleSubscription(), and TraCIServer::removeFilters().
SUMOTime libsumo::Subscription::beginTime |
The begin time of the subscription.
Definition at line 122 of file Subscription.h.
Referenced by TraCIServer::initialiseSubscription(), libsumo::Helper::needNewSubscription(), and TraCIServer::postProcessSimulationStep().
int libsumo::Subscription::commandId |
commandIdArg The command id of the subscription
Definition at line 114 of file Subscription.h.
Referenced by libsumo::Helper::applySubscriptionFilterLateralDistance(), TraCIServer::centralObject(), libsumo::Helper::handleSingleSubscription(), libsumo::Helper::handleSubscriptions(), TraCIServer::initialiseSubscription(), isVehicleToPersonContextSubscription(), isVehicleToVehicleContextSubscription(), libsumo::Helper::needNewSubscription(), TraCIServer::postProcessSimulationStep(), and TraCIServer::processSingleSubscription().
int libsumo::Subscription::contextDomain |
The domain ID of the context.
Definition at line 126 of file Subscription.h.
Referenced by libsumo::Helper::applySubscriptionFilterFieldOfVision(), libsumo::Helper::applySubscriptionFilterLanes(), libsumo::Helper::applySubscriptionFilterLateralDistance(), libsumo::Helper::applySubscriptionFilterLateralDistanceSinglePass(), libsumo::Helper::applySubscriptionFilterTurn(), TraCIServer::centralObject(), libsumo::Helper::handleSingleSubscription(), isVehicleToPersonContextSubscription(), isVehicleToVehicleContextSubscription(), libsumo::Helper::needNewSubscription(), and TraCIServer::processSingleSubscription().
SUMOTime libsumo::Subscription::endTime |
The end time of the subscription.
Definition at line 124 of file Subscription.h.
Referenced by libsumo::Helper::handleSubscriptions(), TraCIServer::initialiseSubscription(), libsumo::Helper::needNewSubscription(), and TraCIServer::postProcessSimulationStep().
double libsumo::Subscription::filterDownstreamDist |
Downstream distance specified by the downstream distance filter.
Definition at line 135 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterDownstreamDistance(), libsumo::Helper::applySubscriptionFilterLateralDistanceSinglePass(), libsumo::Helper::applySubscriptionFilters(), and libsumo::Helper::applySubscriptionFilterTurn().
double libsumo::Subscription::filterFieldOfVisionOpeningAngle |
Opening angle (in deg) specified by the field of vision filter.
Definition at line 145 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterFieldOfVision(), and libsumo::Helper::applySubscriptionFilterFieldOfVision().
double libsumo::Subscription::filterFoeDistToJunction |
Foe distance to junction specified by the turn filter.
Definition at line 139 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterTurn(), and libsumo::Helper::applySubscriptionFilterTurn().
std::vector<int> libsumo::Subscription::filterLanes |
lanes specified by the lanes filter
Definition at line 133 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterLanes(), and libsumo::Helper::applySubscriptionFilters().
double libsumo::Subscription::filterLateralDist |
Lateral distance specified by the lateral distance filter.
Definition at line 147 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterLateralDistance(), libsumo::Helper::applySubscriptionFilterLateralDistanceSinglePass(), and libsumo::Helper::applySubscriptionFilters().
double libsumo::Subscription::filterUpstreamDist |
Upstream distance specified by the upstream distance filter.
Definition at line 137 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterUpstreamDistance(), libsumo::Helper::applySubscriptionFilterLateralDistanceSinglePass(), and libsumo::Helper::applySubscriptionFilters().
SVCPermissions libsumo::Subscription::filterVClasses |
vClasses specified by the vClasses filter,
Definition at line 143 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterVClass(), and libsumo::Helper::applySubscriptionFilters().
std::set<std::string> libsumo::Subscription::filterVTypes |
vTypes specified by the vTypes filter
Definition at line 141 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterVType(), and libsumo::Helper::applySubscriptionFilters().
std::string libsumo::Subscription::id |
The id of the object that is subscribed.
Definition at line 116 of file Subscription.h.
Referenced by libsumo::Helper::applySubscriptionFilterFieldOfVision(), libsumo::Helper::applySubscriptionFilterLanes(), libsumo::Helper::applySubscriptionFilterLateralDistance(), libsumo::Helper::applySubscriptionFilters(), libsumo::Helper::applySubscriptionFilterTurn(), TraCIServer::centralObject(), libsumo::Helper::handleSingleSubscription(), libsumo::Helper::handleSubscriptions(), libsumo::Helper::needNewSubscription(), TraCIServer::postProcessSimulationStep(), and TraCIServer::processSingleSubscription().
std::vector<std::shared_ptr<tcpip::Storage> > libsumo::Subscription::parameters |
The parameters for the subscribed variables.
Definition at line 120 of file Subscription.h.
Referenced by libsumo::Helper::handleSingleSubscription(), libsumo::Helper::needNewSubscription(), and TraCIServer::processSingleSubscription().
double libsumo::Subscription::range |
The range of the context.
Definition at line 128 of file Subscription.h.
Referenced by libsumo::Helper::applySubscriptionFilters(), libsumo::Helper::handleSingleSubscription(), libsumo::Helper::needNewSubscription(), TraCIServer::processSingleSubscription(), and libsumo::Helper::subscribe().
std::vector<int> libsumo::Subscription::variables |
The subscribed variables.
Definition at line 118 of file Subscription.h.
Referenced by libsumo::Helper::handleSingleSubscription(), libsumo::Helper::needNewSubscription(), TraCIServer::processSingleSubscription(), and libsumo::Helper::subscribe().