Eclipse SUMO - Simulation of Urban MObility
libsumo::Subscription Class Reference

Representation of a subscription. More...

#include <Subscription.h>

Collaboration diagram for libsumo::Subscription:

Public Member Functions

 Subscription (int commandIdArg, const std::string &idArg, const std::vector< int > &variablesArg, const std::vector< std::vector< unsigned char >> &paramsArg, 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...
 
double filterFieldOfVisionOpeningAngle
 Opening angle (in deg) specified by the field of vision 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...
 

Detailed Description

Representation of a subscription.

Definition at line 67 of file Subscription.h.

Constructor & Destructor Documentation

◆ Subscription()

libsumo::Subscription::Subscription ( int  commandIdArg,
const std::string &  idArg,
const std::vector< int > &  variablesArg,
const std::vector< std::vector< unsigned char >> &  paramsArg,
SUMOTime  beginTimeArg,
SUMOTime  endTimeArg,
int  contextDomainArg,
double  rangeArg 
)
inline

Constructor.

Parameters
[in]commandIdArgThe command id of the subscription
[in]idArgThe id of the object that is subscribed
[in]variablesArgThe subscribed variables
[in]beginTimeArgThe begin time of the subscription
[in]endTimeArgThe end time of the subscription
[in]contextDomainArgThe domain ID of the context
[in]rangeArgThe range of the context

Definition at line 78 of file Subscription.h.

Field Documentation

◆ activeFilters

◆ beginTime

SUMOTime libsumo::Subscription::beginTime

The begin time of the subscription.

Definition at line 108 of file Subscription.h.

Referenced by TraCIServer::initialiseSubscription(), libsumo::Helper::needNewSubscription(), and TraCIServer::postProcessSimulationStep().

◆ commandId

◆ contextDomain

◆ endTime

SUMOTime libsumo::Subscription::endTime

The end time of the subscription.

Definition at line 110 of file Subscription.h.

Referenced by TraCIServer::initialiseSubscription(), libsumo::Helper::needNewSubscription(), and TraCIServer::postProcessSimulationStep().

◆ filterDownstreamDist

double libsumo::Subscription::filterDownstreamDist

Downstream distance specified by the downstream distance filter.

Definition at line 121 of file Subscription.h.

Referenced by TraCIServer::addSubscriptionFilterDownstreamDistance(), and libsumo::Helper::applySubscriptionFilters().

◆ filterFieldOfVisionOpeningAngle

double libsumo::Subscription::filterFieldOfVisionOpeningAngle

Opening angle (in deg) specified by the field of vision filter.

Definition at line 129 of file Subscription.h.

Referenced by TraCIServer::addSubscriptionFilterFieldOfVision(), and libsumo::Helper::applySubscriptionFilterFieldOfVision().

◆ filterLanes

std::vector<int> libsumo::Subscription::filterLanes

lanes specified by the lanes filter

Definition at line 119 of file Subscription.h.

Referenced by TraCIServer::addSubscriptionFilterLanes(), and libsumo::Helper::applySubscriptionFilters().

◆ filterUpstreamDist

double libsumo::Subscription::filterUpstreamDist

Upstream distance specified by the upstream distance filter.

Definition at line 123 of file Subscription.h.

Referenced by TraCIServer::addSubscriptionFilterUpstreamDistance(), and libsumo::Helper::applySubscriptionFilters().

◆ filterVClasses

int libsumo::Subscription::filterVClasses

vClasses specified by the vClasses filter,

See also
SVCPermissions

Definition at line 127 of file Subscription.h.

Referenced by TraCIServer::addSubscriptionFilterVClass(), and libsumo::Helper::applySubscriptionFilters().

◆ filterVTypes

std::set<std::string> libsumo::Subscription::filterVTypes

vTypes specified by the vTypes filter

Definition at line 125 of file Subscription.h.

Referenced by TraCIServer::addSubscriptionFilterVType(), and libsumo::Helper::applySubscriptionFilters().

◆ id

◆ parameters

std::vector<std::vector<unsigned char> > libsumo::Subscription::parameters

The parameters for the subscribed variables.

Definition at line 106 of file Subscription.h.

Referenced by libsumo::Helper::needNewSubscription(), and TraCIServer::processSingleSubscription().

◆ range

◆ variables

std::vector<int> libsumo::Subscription::variables

The documentation for this class was generated from the following file: