Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

TimeHandler Class Reference

#include <TimeHandlerClass.h>

List of all members.

Public Member Functions

int STARTYEAR ()
 Fixed times.
int STARTMONTH ()
int STARTDAY ()
int STOPYEAR ()
int STOPMONTH ()
int STOPDAY ()
int IRRIGATIONSTARTMONTH ()
int IRRIGATIONSTOPMONTH ()
bool isIrrigationMonth ()
bool isIrrigationMonth (int m)
virtual int MONATE ()
 Access to total model times.
virtual int TOTAL_IRRIGATION_MONTHS ()
virtual int TOTALPERIODS ()
virtual bool ISNORTHERN ()
void setMONATE (int m_)
int GETMONTH ()
 Access to current time (real-time counting).
int GETYEAR ()
string GETMONTH_string ()
string GETYEAR_string ()
int PERIODE ()
 Access to current time (internal model counting).
int CURRENTMODELPERIOD ()
int CURRENTMODELMONTH ()
void initializeDummy ()
 Read and write.
void readTimeHandler (string filename)
void readFromFile (string filename)
void writeToFile (string fn)
void writeAsRead (ofstream &outstream)
virtual void setSTOPYEAR (int absoluteStopYear_)
 Set and reset time.
void resetAllDatesToStart ()
void reset ()
virtual void resetToStartOfYear (int _year)
virtual void resetToStartOfYear (int _year, string comment)
void nextMonth ()
 Next time step.
void nextPeriod ()
void printCurrentTimeStatus (std::ostream *outstream)
 Output functions.
void printToScreen ()
void printDaysPerMonth ()
bool isLeapYear (int y_year)
 Information on length of years, etc.
int getDaysPerMonth (int m_month, int y_year)
int DAYSperTHISMONTH ()
 TimeHandler ()
 Constructor, destructor.
 TimeHandler (TimeHandler &sourceHandle, string nm)
virtual ~TimeHandler ()
virtual void deallocate ()
virtual void copy (TimeHandler &sourceHandle)
virtual void setNameOfHandler (string nm_)
virtual string getNameOfHandler ()
virtual void SETMONTH (int m_)
virtual void SETYEAR (int y_)

Private Member Functions

virtual void setSTARTYEAR (int absoluteStartYear_)
 Access to current time (real-time counting).
virtual void setSTARTMONTH (int absoluteStartMonth_)
virtual void setSTOPMONTH (int absoluteStopMonth_)
virtual void setISNORTHERN (bool isNorthern_)
void updateIrrigationMonths ()
void updateIrrigationMonths (bool doOutput)
void initDaysPerMonths ()
bool checkIfCountUpYear ()
void addYearInTimeHandler ()

Private Attributes

int currentAbsoluteMonth
int currentAbsoluteYear
int currentRelativePeriod
int currentRelativeMonth
int absoluteStartYear
int absoluteStartMonth
int absoluteStartDay
int absoluteStopYear
int absoluteStopMonth
int absoluteStopDay
int irrigationStartMonth
int irrigationStopMonth
int maximumNumberOfIrrigationMonths
int maximumNumberOfPeriodsModeled
bool isNorthernHemisphere
int * daysPerMonth
 Determining number of days in month.
string * monthString
string nameOfThisHandler


Constructor & Destructor Documentation

TimeHandler::TimeHandler  ) 
 

Constructor, destructor.

TimeHandler::TimeHandler TimeHandler sourceHandle,
string  nm
 

virtual TimeHandler::~TimeHandler  )  [virtual]
 


Member Function Documentation

void TimeHandler::addYearInTimeHandler  )  [inline, private]
 

bool TimeHandler::checkIfCountUpYear  )  [private]
 

virtual void TimeHandler::copy TimeHandler sourceHandle  )  [virtual]
 

int TimeHandler::CURRENTMODELMONTH  )  [inline]
 

int TimeHandler::CURRENTMODELPERIOD  )  [inline]
 

int TimeHandler::DAYSperTHISMONTH  ) 
 

virtual void TimeHandler::deallocate  )  [virtual]
 

int TimeHandler::getDaysPerMonth int  m_month,
int  y_year
 

int TimeHandler::GETMONTH  )  [inline]
 

Access to current time (real-time counting).

string TimeHandler::GETMONTH_string  )  [inline]
 

Here is the call graph for this function:

virtual string TimeHandler::getNameOfHandler  )  [virtual]
 

int TimeHandler::GETYEAR  )  [inline]
 

string TimeHandler::GETYEAR_string  )  [inline]
 

Here is the call graph for this function:

void TimeHandler::initDaysPerMonths  )  [private]
 

void TimeHandler::initializeDummy  ) 
 

Read and write.

int TimeHandler::IRRIGATIONSTARTMONTH  )  [inline]
 

int TimeHandler::IRRIGATIONSTOPMONTH  )  [inline]
 

bool TimeHandler::isIrrigationMonth int  m  ) 
 

bool TimeHandler::isIrrigationMonth  ) 
 

bool TimeHandler::isLeapYear int  y_year  ) 
 

Information on length of years, etc.

virtual bool TimeHandler::ISNORTHERN  )  [virtual]
 

virtual int TimeHandler::MONATE  )  [virtual]
 

Access to total model times.

void TimeHandler::nextMonth  ) 
 

Next time step.

void TimeHandler::nextPeriod  ) 
 

int TimeHandler::PERIODE  )  [inline]
 

Access to current time (internal model counting).

void TimeHandler::printCurrentTimeStatus std::ostream *  outstream  ) 
 

Output functions.

void TimeHandler::printDaysPerMonth  ) 
 

void TimeHandler::printToScreen  ) 
 

void TimeHandler::readFromFile string  filename  )  [inline]
 

void TimeHandler::readTimeHandler string  filename  ) 
 

void TimeHandler::reset  )  [inline]
 

void TimeHandler::resetAllDatesToStart  ) 
 

virtual void TimeHandler::resetToStartOfYear int  _year,
string  comment
[virtual]
 

virtual void TimeHandler::resetToStartOfYear int  _year  )  [virtual]
 

virtual void TimeHandler::setISNORTHERN bool  isNorthern_  )  [private, virtual]
 

void TimeHandler::setMONATE int  m_  ) 
 

virtual void TimeHandler::SETMONTH int  m_  )  [virtual]
 

virtual void TimeHandler::setNameOfHandler string  nm_  )  [virtual]
 

virtual void TimeHandler::setSTARTMONTH int  absoluteStartMonth_  )  [private, virtual]
 

virtual void TimeHandler::setSTARTYEAR int  absoluteStartYear_  )  [private, virtual]
 

Access to current time (real-time counting).

virtual void TimeHandler::setSTOPMONTH int  absoluteStopMonth_  )  [private, virtual]
 

virtual void TimeHandler::setSTOPYEAR int  absoluteStopYear_  )  [virtual]
 

Set and reset time.

virtual void TimeHandler::SETYEAR int  y_  )  [virtual]
 

int TimeHandler::STARTDAY  )  [inline]
 

int TimeHandler::STARTMONTH  )  [inline]
 

int TimeHandler::STARTYEAR  )  [inline]
 

Fixed times.

int TimeHandler::STOPDAY  )  [inline]
 

int TimeHandler::STOPMONTH  )  [inline]
 

int TimeHandler::STOPYEAR  )  [inline]
 

virtual int TimeHandler::TOTAL_IRRIGATION_MONTHS  )  [virtual]
 

virtual int TimeHandler::TOTALPERIODS  )  [virtual]
 

void TimeHandler::updateIrrigationMonths bool  doOutput  )  [private]
 

void TimeHandler::updateIrrigationMonths  )  [private]
 

void TimeHandler::writeAsRead ofstream &  outstream  ) 
 

void TimeHandler::writeToFile string  fn  ) 
 


Member Data Documentation

int TimeHandler::absoluteStartDay [private]
 

int TimeHandler::absoluteStartMonth [private]
 

int TimeHandler::absoluteStartYear [private]
 

int TimeHandler::absoluteStopDay [private]
 

int TimeHandler::absoluteStopMonth [private]
 

int TimeHandler::absoluteStopYear [private]
 

int TimeHandler::currentAbsoluteMonth [private]
 

int TimeHandler::currentAbsoluteYear [private]
 

int TimeHandler::currentRelativeMonth [private]
 

int TimeHandler::currentRelativePeriod [private]
 

int* TimeHandler::daysPerMonth [private]
 

Determining number of days in month.

int TimeHandler::irrigationStartMonth [private]
 

int TimeHandler::irrigationStopMonth [private]
 

bool TimeHandler::isNorthernHemisphere [private]
 

int TimeHandler::maximumNumberOfIrrigationMonths [private]
 

int TimeHandler::maximumNumberOfPeriodsModeled [private]
 

string* TimeHandler::monthString [private]
 

string TimeHandler::nameOfThisHandler [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Aug 28 12:42:31 2008 for MPMAS by  doxygen 1.3.9.1