Eclipse SUMO - Simulation of Urban MObility
|
#include <FareModul.h>
Public Member Functions | |
FareState () | |
FareState (FareToken token) | |
bool | isValid () const |
~FareState ()=default | |
Private Attributes | |
ZoneCounter | myCounter |
FareToken | myFareToken |
double | myPriceDiff |
double | myTravelledDistance |
int | myVisistedStops |
Friends | |
class | FareModul |
A fare state collects all the information that is necessary to compute the price. Is used as an edge label in IntermodalRouter
Definition at line 85 of file FareModul.h.
|
inlineexplicit |
default constructor for unlabeled edges
Definition at line 91 of file FareModul.h.
|
inlineexplicit |
token |
Definition at line 103 of file FareModul.h.
|
default |
Destructor
|
inline |
returns true if fare state is set and not on default
Definition at line 117 of file FareModul.h.
References myFareToken, and None.
Referenced by FareModul::getEffort().
Definition at line 86 of file FareModul.h.
|
private |
zone counter
Definition at line 126 of file FareModul.h.
Referenced by FareModul::computePrice(), FareModul::output(), FareModul::updateFareStateAccess(), and FareModul::updateFareStateStop().
|
private |
fare token
Definition at line 124 of file FareModul.h.
Referenced by FareModul::computePrice(), isValid(), FareModul::output(), FareModul::update(), FareModul::updateFareState(), FareModul::updateFareStateAccess(), FareModul::updateFareStatePedestrian(), FareModul::updateFareStatePublic(), and FareModul::updateFareStateStop().
|
private |
price diff to previous edge
Definition at line 132 of file FareModul.h.
Referenced by FareModul::getEffort(), and FareModul::update().
|
private |
travelled distance in km
Definition at line 128 of file FareModul.h.
Referenced by FareModul::updateFareStatePublic(), and FareModul::updateFareStateStop().
|
private |
num of visited stops
Definition at line 130 of file FareModul.h.
Referenced by FareModul::updateFareStateStop().