41std::vector<std::string>
42Rerouter::getIDList() {
44 std::vector<std::string> ids;
46 ids.push_back(item.first);
52Rerouter::getIDCount() {
58Rerouter::getParameter(
const std::string& ,
const std::string& ) {
67Rerouter::setParameter(
const std::string& ,
const std::string& ,
const std::string& ) {
80 throw TraCIException(
"Rerouter '" +
id +
"' is not known");
86std::shared_ptr<VariableWrapper>
96 return wrapper->wrapStringList(objID, variable, getIDList());
98 return wrapper->wrapInt(objID, variable, getIDCount());
101 return wrapper->wrapString(objID, variable, getParameter(objID, paramData->
readString()));
104 return wrapper->wrapStringPair(objID, variable, getParameterWithKey(objID, paramData->
readString()));
#define LIBSUMO_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOM)
#define LIBSUMO_GET_PARAMETER_WITH_KEY_IMPLEMENTATION(CLASS)
static MSTriggeredRerouter * getRerouter(const std::string &id)
static SubscriptionResults mySubscriptionResults
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
static ContextSubscriptionResults myContextSubscriptionResults
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
Reroutes traffic objects passing an edge.
static const std::map< std::string, MSTriggeredRerouter * > & getInstances()
return all rerouter instances
virtual std::string readString()
virtual int readUnsignedByte()
TRACI_CONST int TRACI_ID_LIST
std::map< std::string, libsumo::SubscriptionResults > ContextSubscriptionResults
std::map< std::string, libsumo::TraCIResults > SubscriptionResults
{object->{variable->value}}
TRACI_CONST int VAR_PARAMETER
TRACI_CONST int VAR_PARAMETER_WITH_KEY
const unsigned char Rerouter[]