Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
FareState Struct Reference

#include <FareModul.h>

Collaboration diagram for FareState:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FareState() [1/2]

FareState::FareState ( )
inlineexplicit

default constructor for unlabeled edges

Definition at line 91 of file FareModul.h.

◆ FareState() [2/2]

FareState::FareState ( FareToken  token)
inlineexplicit
Parameters
token

Definition at line 103 of file FareModul.h.

◆ ~FareState()

FareState::~FareState ( )
default

Destructor

Member Function Documentation

◆ isValid()

bool FareState::isValid ( ) const
inline

returns true if fare state is set and not on default

Returns
if state is set

Definition at line 117 of file FareModul.h.

References myFareToken, and None.

Referenced by FareModul::getEffort().

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ FareModul

friend class FareModul
friend

Definition at line 86 of file FareModul.h.

Field Documentation

◆ myCounter

ZoneCounter FareState::myCounter
private

◆ myFareToken

◆ myPriceDiff

double FareState::myPriceDiff
private

price diff to previous edge

Definition at line 132 of file FareModul.h.

Referenced by FareModul::getEffort(), and FareModul::update().

◆ myTravelledDistance

double FareState::myTravelledDistance
private

travelled distance in km

Definition at line 128 of file FareModul.h.

Referenced by FareModul::updateFareStatePublic(), and FareModul::updateFareStateStop().

◆ myVisistedStops

int FareState::myVisistedStops
private

num of visited stops

Definition at line 130 of file FareModul.h.

Referenced by FareModul::updateFareStateStop().


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