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

#include <AGSchool.h>

Collaboration diagram for AGSchool:
[legend]

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 34 of file AGSchool.h.

Constructor & Destructor Documentation

◆ AGSchool()

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

Definition at line 36 of file AGSchool.h.

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

Member Function Documentation

◆ acceptThisAge()

bool AGSchool::acceptThisAge ( int age)

Definition at line 64 of file AGSchool.cpp.

References beginAge.

◆ addNewChild()

bool AGSchool::addNewChild ( )

Definition at line 46 of file AGSchool.cpp.

References capacity.

Referenced by AGChild::setSchool().

Here is the caller graph for this function:

◆ getBeginAge()

int AGSchool::getBeginAge ( )

Definition at line 72 of file AGSchool.cpp.

References beginAge.

◆ getClosingHour()

int AGSchool::getClosingHour ( )

Definition at line 87 of file AGSchool.cpp.

References closing.

◆ getEndAge()

int AGSchool::getEndAge ( )

Definition at line 77 of file AGSchool.cpp.

References endAge.

◆ getOpeningHour()

int AGSchool::getOpeningHour ( )

Definition at line 92 of file AGSchool.cpp.

References opening.

◆ getPlaces()

int AGSchool::getPlaces ( )

Definition at line 41 of file AGSchool.cpp.

References capacity.

◆ getPosition()

AGPosition AGSchool::getPosition ( )

Definition at line 82 of file AGSchool.cpp.

References location.

◆ print()

void AGSchool::print ( ) const

Definition at line 36 of file AGSchool.cpp.

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

◆ removeChild()

bool AGSchool::removeChild ( )

Definition at line 55 of file AGSchool.cpp.

References capacity, and initCapacity.

Field Documentation

◆ beginAge

int AGSchool::beginAge
private

Definition at line 56 of file AGSchool.h.

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

◆ capacity

int AGSchool::capacity
private

Definition at line 57 of file AGSchool.h.

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

◆ closing

int AGSchool::closing
private

Definition at line 60 of file AGSchool.h.

Referenced by AGSchool(), getClosingHour(), and print().

◆ endAge

int AGSchool::endAge
private

Definition at line 56 of file AGSchool.h.

Referenced by AGSchool(), getEndAge(), and print().

◆ initCapacity

int AGSchool::initCapacity
private

Definition at line 58 of file AGSchool.h.

Referenced by AGSchool(), and removeChild().

◆ location

AGPosition AGSchool::location
private

Definition at line 59 of file AGSchool.h.

Referenced by AGSchool(), and getPosition().

◆ opening

int AGSchool::opening
private

Definition at line 60 of file AGSchool.h.

Referenced by AGSchool(), getOpeningHour(), and print().


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