![]() |
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 160 of file FareModul.h.
|
inline |
Constructor
Definition at line 164 of file FareModul.h.
|
inlineoverridevirtual |
Add information about stops
Implements EffortCalculator.
Definition at line 174 of file FareModul.h.
References Parameterised::getParameter(), myStopFareToken, myStopFareZone, myStopStartToken, FareUtil::stringToToken(), and StringUtils::toInt().
|
inlineprivate |
Definition at line 255 of file FareModul.h.
References Prices::halle, K, L, Prices::leipzig, Prices::maxPrice, FareState::myCounter, FareState::myFareToken, ZoneCounter::numZones(), prices, Prices::shortTrip, Prices::shortTripHalle, Prices::shortTripLeipzig, Prices::t1, Prices::t2, Prices::t3, and Prices::zonePrices.
|
inlineoverridevirtual |
Implementation of EffortCalculator
Implements EffortCalculator.
Definition at line 181 of file FareModul.h.
References FareState::isValid(), myFareStates, and FareState::myPriceDiff.
|
inlineoverridevirtual |
Implementation of EffortCalculator
Implements EffortCalculator.
Definition at line 169 of file FareModul.h.
References myEdges, and myFareStates.
|
inlineoverrideprivatevirtual |
basic output facility to inform about effort at this edge
Implements EffortCalculator.
Definition at line 297 of file FareModul.h.
References computePrice(), FareState::myCounter, myFareStates, FareState::myFareToken, ZoneCounter::numZones(), and FareUtil::tokenToTicket().
|
inlineoverridevirtual |
Implementation of EffortCalculator _IntermodalEdge should be an Connector Edge
Implements EffortCalculator.
Definition at line 228 of file FareModul.h.
References myFareStates, and None.
|
inlineoverridevirtual |
Implementation of EffortCalculator
Implements EffortCalculator.
Definition at line 193 of file FareModul.h.
References computePrice(), myEdges, myFareStates, FareState::myFareToken, FareState::myPriceDiff, None, updateFareState(), updateFareStateAccess(), updateFareStatePedestrian(), updateFareStatePublic(), and updateFareStateStop().
|
inlineprivate |
Definition at line 493 of file FareModul.h.
References myFareStates, FareState::myFareToken, and None.
Referenced by update().
|
inlineprivate |
Definition at line 509 of file FareModul.h.
References K, L, FareState::myCounter, myEdges, myFareStates, FareState::myFareToken, None, and ZoneCounter::numZones().
Referenced by update().
|
inlineprivate |
Definition at line 466 of file FareModul.h.
References myFareStates, FareState::myFareToken, and None.
Referenced by update().
|
inlineprivate |
Definition at line 480 of file FareModul.h.
References myFareStates, FareState::myFareToken, and FareState::myTravelledDistance.
Referenced by update().
|
inlineprivate |
Definition at line 326 of file FareModul.h.
References ZoneCounter::addZone(), K, L, FareState::myCounter, myFareStates, FareState::myFareToken, myStopFareToken, myStopFareZone, myStopStartToken, FareState::myTravelledDistance, FareState::myVisistedStops, and ZoneCounter::numZones().
Referenced by update().
|
private |
List of all edge line attributes
Definition at line 241 of file FareModul.h.
Referenced by init(), update(), and updateFareStateAccess().
|
private |
List of all fare states
Definition at line 238 of file FareModul.h.
Referenced by getEffort(), init(), output(), setInitialState(), update(), updateFareState(), updateFareStateAccess(), updateFareStatePedestrian(), updateFareStatePublic(), and updateFareStateStop().
|
private |
the faretoken that can be collected at this station
Definition at line 247 of file FareModul.h.
Referenced by addStop(), and updateFareStateStop().
|
private |
the fare zone this stop is a part of
Definition at line 244 of file FareModul.h.
Referenced by addStop(), and updateFareStateStop().
|
private |
the faretoken that is used when a trip is started at this station
Definition at line 250 of file FareModul.h.
Referenced by addStop(), and updateFareStateStop().
|
private |