Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
AGCar Class Reference

#include <AGCar.h>

Collaboration diagram for AGCar:
[legend]

Public Member Functions

 AGCar (int idHH, int idCar)
 
 AGCar (std::string name)
 
bool associateTo (AGAdult *pers)
 
std::string getName () const
 
bool isAssociated () const
 

Private Member Functions

std::string createName (int idHH, int idCar)
 

Private Attributes

AGAdultcurrentUser
 
std::string idName
 

Detailed Description

Definition at line 36 of file AGCar.h.

Constructor & Destructor Documentation

◆ AGCar() [1/2]

AGCar::AGCar ( std::string  name)
inline

Definition at line 38 of file AGCar.h.

◆ AGCar() [2/2]

AGCar::AGCar ( int  idHH,
int  idCar 
)
inline

Definition at line 40 of file AGCar.h.

Member Function Documentation

◆ associateTo()

bool AGCar::associateTo ( AGAdult pers)

Definition at line 45 of file AGCar.cpp.

References currentUser.

◆ createName()

std::string AGCar::createName ( int  idHH,
int  idCar 
)
private

Definition at line 38 of file AGCar.cpp.

◆ getName()

std::string AGCar::getName ( ) const

Definition at line 59 of file AGCar.cpp.

References idName.

◆ isAssociated()

bool AGCar::isAssociated ( ) const

Definition at line 54 of file AGCar.cpp.

References currentUser.

Field Documentation

◆ currentUser

AGAdult* AGCar::currentUser
private

Definition at line 50 of file AGCar.h.

Referenced by associateTo(), and isAssociated().

◆ idName

std::string AGCar::idName
private

Definition at line 49 of file AGCar.h.

Referenced by getName().


The documentation for this class was generated from the following files: