![]() |
SUMO - Simulation of Urban MObility
|
Representation of a subscription. More...
#include <Subscription.h>
Public Member Functions | |
Subscription (int commandIdArg, const std::string &idArg, const std::vector< int > &variablesArg, const std::vector< std::vector< unsigned char > > ¶msArg, SUMOTime beginTimeArg, SUMOTime endTimeArg, int contextDomainArg, double rangeArg) | |
Constructor. More... | |
Data Fields | |
int | activeFilters |
Active filters for the subscription (bitset,. More... | |
SUMOTime | beginTime |
The begin time of the subscription. More... | |
int | commandId |
commandIdArg The command id of the subscription More... | |
int | contextDomain |
The domain ID of the context. More... | |
SUMOTime | endTime |
The end time of the subscription. More... | |
double | filterDownstreamDist |
Downstream distance specified by the downstream distance filter. More... | |
std::vector< int > | filterLanes |
lanes specified by the lanes filter More... | |
double | filterUpstreamDist |
Upstream distance specified by the upstream distance filter. More... | |
int | filterVClasses |
vClasses specified by the vClasses filter, More... | |
std::set< std::string > | filterVTypes |
vTypes specified by the vTypes filter More... | |
std::string | id |
The id of the object that is subscribed. More... | |
std::vector< std::vector< unsigned char > > | parameters |
The parameters for the subscribed variables. More... | |
double | range |
The range of the context. More... | |
std::vector< int > | variables |
The subscribed variables. More... | |
Representation of a subscription.
Definition at line 65 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] | 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 76 of file Subscription.h.
int libsumo::Subscription::activeFilters |
Active filters for the subscription (bitset,.
Definition at line 101 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterDownstreamDistance(), TraCIServer::addSubscriptionFilterLanes(), 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 92 of file Subscription.h.
Referenced by TraCIServer::initialiseSubscription(), and TraCIServer::postProcessSimulationStep().
int libsumo::Subscription::commandId |
commandIdArg The command id of the subscription
Definition at line 84 of file Subscription.h.
Referenced by TraCIServer::centralObject(), libsumo::Helper::handleSingleSubscription(), TraCIServer::initialiseSubscription(), TraCIServer::isVehicleToVehicleContextSubscription(), TraCIServer::postProcessSimulationStep(), and TraCIServer::processSingleSubscription().
int libsumo::Subscription::contextDomain |
The domain ID of the context.
Definition at line 96 of file Subscription.h.
Referenced by TraCIServer::centralObject(), libsumo::Helper::handleSingleSubscription(), TraCIServer::initialiseSubscription(), TraCIServer::isVehicleToVehicleContextSubscription(), and TraCIServer::processSingleSubscription().
SUMOTime libsumo::Subscription::endTime |
The end time of the subscription.
Definition at line 94 of file Subscription.h.
Referenced by TraCIServer::initialiseSubscription(), and TraCIServer::postProcessSimulationStep().
double libsumo::Subscription::filterDownstreamDist |
Downstream distance specified by the downstream distance filter.
Definition at line 105 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterDownstreamDistance(), and libsumo::Helper::applySubscriptionFilters().
std::vector<int> libsumo::Subscription::filterLanes |
lanes specified by the lanes filter
Definition at line 103 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterLanes(), and libsumo::Helper::applySubscriptionFilters().
double libsumo::Subscription::filterUpstreamDist |
Upstream distance specified by the upstream distance filter.
Definition at line 107 of file Subscription.h.
Referenced by TraCIServer::addSubscriptionFilterUpstreamDistance(), and libsumo::Helper::applySubscriptionFilters().
int libsumo::Subscription::filterVClasses |
vClasses specified by the vClasses filter,
Definition at line 111 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 109 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 86 of file Subscription.h.
Referenced by libsumo::Helper::applySubscriptionFilters(), TraCIServer::centralObject(), libsumo::Helper::handleSingleSubscription(), TraCIServer::initialiseSubscription(), TraCIServer::postProcessSimulationStep(), and TraCIServer::processSingleSubscription().
std::vector<std::vector<unsigned char> > libsumo::Subscription::parameters |
The parameters for the subscribed variables.
Definition at line 90 of file Subscription.h.
Referenced by TraCIServer::initialiseSubscription(), and TraCIServer::processSingleSubscription().
double libsumo::Subscription::range |
The range of the context.
Definition at line 98 of file Subscription.h.
Referenced by libsumo::Helper::applySubscriptionFilters(), libsumo::Helper::handleSingleSubscription(), TraCIServer::initialiseSubscription(), and TraCIServer::processSingleSubscription().
std::vector<int> libsumo::Subscription::variables |
The subscribed variables.
Definition at line 88 of file Subscription.h.
Referenced by libsumo::Helper::handleSingleSubscription(), TraCIServer::initialiseSubscription(), and TraCIServer::processSingleSubscription().