SUMO - Simulation of Urban MObility
AGSchool Class Reference

#include <AGSchool.h>

Collaboration diagram for AGSchool:
Collaboration graph

Public Member Functions

bool acceptThisAge (int age)
 
bool addNewChild ()
 
 AGSchool (int capacity_, AGPosition pos, int beginAge, int endAge, int open, int close)
 
int getBeginAge ()
 
int getClosingHour ()
 
int getEndAge ()
 
int getOpeningHour ()
 
int getPlaces ()
 
AGPosition getPosition ()
 
void print () const
 
bool removeChild ()
 

Private Attributes

int beginAge
 
int capacity
 
int closing
 
int endAge
 
int initCapacity
 
AGPosition location
 
int opening
 

Detailed Description

Definition at line 37 of file AGSchool.h.

Constructor & Destructor Documentation

◆ AGSchool()

AGSchool::AGSchool ( int  capacity_,
AGPosition  pos,
int  beginAge,
int  endAge,
int  open,
int  close 
)
inline

Member Function Documentation

◆ acceptThisAge()

bool AGSchool::acceptThisAge ( int  age)

Definition at line 66 of file AGSchool.cpp.

References beginAge.

Referenced by AGSchool().

◆ addNewChild()

bool AGSchool::addNewChild ( )

Definition at line 48 of file AGSchool.cpp.

References capacity.

Referenced by AGSchool(), and AGChild::setSchool().

◆ getBeginAge()

int AGSchool::getBeginAge ( )

Definition at line 74 of file AGSchool.cpp.

References beginAge.

Referenced by AGSchool().

◆ getClosingHour()

int AGSchool::getClosingHour ( )

Definition at line 89 of file AGSchool.cpp.

References closing.

Referenced by AGSchool(), and AGChild::getSchoolClosing().

◆ getEndAge()

int AGSchool::getEndAge ( )

Definition at line 79 of file AGSchool.cpp.

References endAge.

Referenced by AGSchool().

◆ getOpeningHour()

int AGSchool::getOpeningHour ( )

Definition at line 94 of file AGSchool.cpp.

References opening.

Referenced by AGSchool(), and AGChild::getSchoolOpening().

◆ getPlaces()

int AGSchool::getPlaces ( )

Definition at line 43 of file AGSchool.cpp.

References capacity.

Referenced by AGSchool().

◆ getPosition()

AGPosition AGSchool::getPosition ( )

Definition at line 84 of file AGSchool.cpp.

References location.

Referenced by AGSchool(), and AGChild::getSchoolLocation().

◆ print()

void AGSchool::print ( ) const

Definition at line 38 of file AGSchool.cpp.

References beginAge, capacity, closing, endAge, and opening.

Referenced by AGSchool().

◆ removeChild()

bool AGSchool::removeChild ( )

Definition at line 57 of file AGSchool.cpp.

References capacity, and initCapacity.

Referenced by AGSchool(), and AGChild::leaveSchool().

Field Documentation

◆ beginAge

int AGSchool::beginAge
private

Definition at line 59 of file AGSchool.h.

Referenced by acceptThisAge(), getBeginAge(), and print().

◆ capacity

int AGSchool::capacity
private

Definition at line 60 of file AGSchool.h.

Referenced by addNewChild(), getPlaces(), print(), and removeChild().

◆ closing

int AGSchool::closing
private

Definition at line 63 of file AGSchool.h.

Referenced by getClosingHour(), and print().

◆ endAge

int AGSchool::endAge
private

Definition at line 59 of file AGSchool.h.

Referenced by getEndAge(), and print().

◆ initCapacity

int AGSchool::initCapacity
private

Definition at line 61 of file AGSchool.h.

Referenced by removeChild().

◆ location

AGPosition AGSchool::location
private

Definition at line 62 of file AGSchool.h.

Referenced by getPosition().

◆ opening

int AGSchool::opening
private

Definition at line 63 of file AGSchool.h.

Referenced by getOpeningHour(), and print().


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