SUMO - Simulation of Urban MObility

AGWorkPosition Class Reference

#include <AGWorkPosition.h>

Public Member Functions

 AGWorkPosition (const AGStreet &inStreet, AGDataAndStatistics *ds) throw ()
 AGWorkPosition (const AGStreet &inStreet, SUMOReal pos, AGDataAndStatistics *ds) throw ()
int getClosing () const throw ()
int getOpening () const throw ()
AGPosition getPosition () const throw ()
bool isTaken () const throw ()
void let () throw ()
void print () const throw ()
void take (AGAdult *ad) throw (std::runtime_error)
 ~AGWorkPosition () throw ()

Static Private Member Functions

static int generateClosingTime (const AGDataAndStatistics &ds) throw ()
static int generateOpeningTime (const AGDataAndStatistics &ds) throw ()

Private Attributes

AGAdult * adult
int closingTime
AGDataAndStatistics * ds
AGPosition location
int openingTime

Detailed Description

Definition at line 52 of file AGWorkPosition.h.


Constructor & Destructor Documentation

AGWorkPosition::AGWorkPosition ( const AGStreet &  inStreet,
AGDataAndStatistics *  ds 
) throw ()

Definition at line 44 of file AGWorkPosition.cpp.

AGWorkPosition::AGWorkPosition ( const AGStreet &  inStreet,
SUMOReal  pos,
AGDataAndStatistics *  ds 
) throw ()

Definition at line 55 of file AGWorkPosition.cpp.

AGWorkPosition::~AGWorkPosition ( ) throw ()

Definition at line 64 of file AGWorkPosition.cpp.


Member Function Documentation

int AGWorkPosition::generateClosingTime ( const AGDataAndStatistics &  ds) throw () [static, private]

Definition at line 98 of file AGWorkPosition.cpp.

References RandHelper::rand(), and SUMOReal.

int AGWorkPosition::generateOpeningTime ( const AGDataAndStatistics &  ds) throw () [static, private]

Definition at line 80 of file AGWorkPosition.cpp.

References RandHelper::rand(), and SUMOReal.

int AGWorkPosition::getClosing ( ) const throw ()

Definition at line 152 of file AGWorkPosition.cpp.

References closingTime.

int AGWorkPosition::getOpening ( ) const throw ()

Definition at line 159 of file AGWorkPosition.cpp.

References openingTime.

AGPosition AGWorkPosition::getPosition ( ) const throw ()

Definition at line 145 of file AGWorkPosition.cpp.

References location.

bool AGWorkPosition::isTaken ( ) const throw ()

Definition at line 115 of file AGWorkPosition.cpp.

References adult.

Referenced by print().

void AGWorkPosition::let ( ) throw ()
void AGWorkPosition::print ( ) const throw ()

Definition at line 71 of file AGWorkPosition.cpp.

References closingTime, isTaken(), location, openingTime, and AGPosition::print().

void AGWorkPosition::take ( AGAdult *  ad) throw (std::runtime_error)

Definition at line 133 of file AGWorkPosition.cpp.

Referenced by AGAdult::tryToWork().


Field Documentation

Definition at line 71 of file AGWorkPosition.h.

Referenced by isTaken(), and let().

Definition at line 74 of file AGWorkPosition.h.

Referenced by getClosing(), and print().

Definition at line 70 of file AGWorkPosition.h.

Referenced by let().

Definition at line 72 of file AGWorkPosition.h.

Referenced by getPosition(), and print().

Definition at line 73 of file AGWorkPosition.h.

Referenced by getOpening(), and print().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines