![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <FareModul.h>
Public Member Functions | |
void | addStop (const int stopEdge, const Parameterised ¶ms) override |
FareModul () | |
double | getEffort (const int numericalID) const override |
void | init (const std::vector< std::string > &edges) override |
void | setInitialState (const int edge) override |
void | update (const int edge, const int prev, const double length) override |
Private Member Functions | |
double | computePrice (FareState const &fareState) const |
std::string | output (const int edge) const override |
void | updateFareState (FareState const ¤tFareState, const int intermodalEdge) |
void | updateFareStateAccess (FareState const ¤tFareState, const int accessEdge, const int prev) |
void | updateFareStatePedestrian (FareState const ¤tFareState, const int pedestrianEdge) |
void | updateFareStatePublic (FareState const ¤tFareState, const int publicTransportEdge, const double length) |
void | updateFareStateStop (FareState const ¤tFareState, const int stopEdge) |
Private Attributes | |
std::vector< std::string > | myEdges |
std::vector< FareState > | myFareStates |
std::map< int, FareToken > | myStopFareToken |
std::map< int, int > | myStopFareZone |
std::map< int, FareToken > | myStopStartToken |
Prices | prices |
The fare modul responsible for calculating prices
Definition at line 161 of file FareModul.h.
|
inline |
Constructor
Definition at line 165 of file FareModul.h.
|
inlineoverridevirtual |
Add information about stops
Implements EffortCalculator.
Definition at line 175 of file FareModul.h.
References Parameterised::getParameter(), FareUtil::stringToToken(), and StringUtils::toInt().
|
inlineprivate |
Definition at line 256 of file FareModul.h.
References Free, Prices::halle, K, L, Prices::leipzig, Prices::maxPrice, FareState::myCounter, FareState::myFareToken, None, ZoneCounter::numZones(), Prices::shortTrip, Prices::shortTripHalle, Prices::shortTripLeipzig, Prices::t1, Prices::t2, Prices::t3, U, Prices::zonePrices, and ZU.
|
inlineoverridevirtual |
Implementation of EffortCalculator
Implements EffortCalculator.
Definition at line 182 of file FareModul.h.
References FareState::isValid(), and FareState::myPriceDiff.
|
inlineoverridevirtual |
Implementation of EffortCalculator
Implements EffortCalculator.
Definition at line 170 of file FareModul.h.
|
inlineoverrideprivatevirtual |
basic output facility to inform about effort at this edge
Implements EffortCalculator.
Definition at line 298 of file FareModul.h.
References FareState::myCounter, FareState::myFareToken, ZoneCounter::numZones(), FareUtil::tokenToTicket(), U, and Z.
|
inlineoverridevirtual |
Implementation of EffortCalculator _IntermodalEdge should be an Connector Edge
Implements EffortCalculator.
Definition at line 229 of file FareModul.h.
References START.
|
inlineoverridevirtual |
Implementation of EffortCalculator
Implements EffortCalculator.
Definition at line 194 of file FareModul.h.
References FareState::myFareToken, FareState::myPriceDiff, and START.
|
inlineprivate |
Definition at line 494 of file FareModul.h.
References Free, FareState::myFareToken, None, and START.
|
inlineprivate |
Definition at line 510 of file FareModul.h.
References Free, H, K, KH, KHU, KHZ, KL, KLU, KLZ, L, FareState::myCounter, FareState::myFareToken, ZoneCounter::numZones(), START, U, and Z.
|
inlineprivate |
Definition at line 467 of file FareModul.h.
References Free, FareState::myFareToken, and START.
|
inlineprivate |
Definition at line 481 of file FareModul.h.
References FareState::myFareToken, FareState::myTravelledDistance, and None.
|
inlineprivate |
Definition at line 327 of file FareModul.h.
References ZoneCounter::addZone(), H, K, KH, KHU, KHZ, KL, KLU, KLZ, L, M, FareState::myCounter, FareState::myFareToken, FareState::myTravelledDistance, FareState::myVisistedStops, None, ZoneCounter::numZones(), T1, T2, T3, U, Z, and ZU.
|
private |
List of all edge line attributes
Definition at line 242 of file FareModul.h.
|
private |
List of all fare states
Definition at line 239 of file FareModul.h.
|
private |
the faretoken that can be collected at this station
Definition at line 248 of file FareModul.h.
|
private |
the fare zone this stop is a part of
Definition at line 245 of file FareModul.h.
|
private |
the faretoken that is used when a trip is started at this station
Definition at line 251 of file FareModul.h.
|
private |
List of the prices
Definition at line 254 of file FareModul.h.