Eclipse SUMO - Simulation of Urban MObility
|
#include <AGBusLine.h>
Public Member Functions | |
AGBusLine (std::string lineNr) | |
void | generateBuses (int start, int stop, int rate) |
void | locateRevStation (AGPosition pos) |
void | locateStation (AGPosition pos) |
int | nbrBuses () |
void | printBuses () |
void | setBusNames () |
void | setMaxTripTime (int time) |
Data Fields | |
std::list< AGBus > | buses |
std::list< AGBus > | revBuses |
std::list< AGPosition > | revStations |
std::list< AGPosition > | stations |
Private Member Functions | |
std::string | createName () |
int | getReady (int time) |
Private Attributes | |
int | busNbr |
std::string | lineNumber |
int | maxTripTime |
Definition at line 38 of file AGBusLine.h.
|
inline |
Definition at line 40 of file AGBusLine.h.
|
private |
Definition at line 110 of file AGBusLine.cpp.
References busNbr, and lineNumber.
Referenced by setBusNames().
void AGBusLine::generateBuses | ( | int | start, |
int | stop, | ||
int | rate | ||
) |
Definition at line 141 of file AGBusLine.cpp.
References buses, and revBuses.
Referenced by AGActivityGenHandler::parseFrequency().
|
private |
time | time of departure of the bus in one direction (current time) |
Definition at line 118 of file AGBusLine.cpp.
References AGTime::addMinutes(), AGTime::addSeconds(), AGTime::getTime(), maxTripTime, and PAUSE_TIME.
Referenced by setBusNames().
void AGBusLine::locateRevStation | ( | AGPosition | pos | ) |
Definition at line 136 of file AGBusLine.cpp.
References revStations.
Referenced by AGActivityGenHandler::parseStation().
void AGBusLine::locateStation | ( | AGPosition | pos | ) |
Definition at line 131 of file AGBusLine.cpp.
References stations.
Referenced by AGActivityGenHandler::parseStation().
int AGBusLine::nbrBuses | ( | ) |
Definition at line 126 of file AGBusLine.cpp.
References buses.
void AGBusLine::printBuses | ( | ) |
Definition at line 152 of file AGBusLine.cpp.
References buses, lineNumber, and revBuses.
void AGBusLine::setBusNames | ( | ) |
Definition at line 51 of file AGBusLine.cpp.
References buses, busNbr, createName(), getReady(), and revBuses.
void AGBusLine::setMaxTripTime | ( | int | time | ) |
Definition at line 46 of file AGBusLine.cpp.
References maxTripTime.
Referenced by AGActivityGenHandler::parseBusLine().
std::list<AGBus> AGBusLine::buses |
Definition at line 52 of file AGBusLine.h.
Referenced by generateBuses(), AGActivities::generateBusTraffic(), nbrBuses(), printBuses(), and setBusNames().
|
private |
Definition at line 69 of file AGBusLine.h.
Referenced by createName(), and setBusNames().
|
private |
Definition at line 67 of file AGBusLine.h.
Referenced by createName(), and printBuses().
|
private |
Definition at line 68 of file AGBusLine.h.
Referenced by getReady(), and setMaxTripTime().
std::list<AGBus> AGBusLine::revBuses |
Definition at line 53 of file AGBusLine.h.
Referenced by generateBuses(), AGActivities::generateBusTraffic(), printBuses(), and setBusNames().
std::list<AGPosition> AGBusLine::revStations |
Definition at line 51 of file AGBusLine.h.
Referenced by AGActivities::generateBusTraffic(), and locateRevStation().
std::list<AGPosition> AGBusLine::stations |
Definition at line 50 of file AGBusLine.h.
Referenced by AGActivities::generateBusTraffic(), and locateStation().