#include "FireTimer.h"
Go to the source code of this file.
Functions | |
FireTimer* | InitFireTimer (int sim_start_yr, int sim_start_mo, int sim_start_dy, int sim_start_hr, int sim_end_yr, int sim_end_mo, int sim_end_dy, int sim_end_hr) |
Allocates memory associated with FireTimer structure and initializes members. More... | |
int | FireTimerIncrementSeconds (FireTimer * ft, int secs) |
Increments the current time stored in the FireTimer by the number of seconds supplied as argument. More... | |
int | FireTimerIsSimCurYearTimeExpired (FireTimer * ft) |
Returns 1 if the current simulation time has reached the end of the fire season for this year. More... | |
int | FireTimerIsSimTimeExpired (FireTimer * ft) |
Returns 1 if the current simulation time has reached the simulation end time. More... | |
int | FireTimerGetDaysInMonth (int mo) |
Returns the number of days in the month supplied as an argument. More... | |
int | FireTimerGetDaysDifftime (int mo1, int dy1, int mo2, int dy2) |
Calculates the number of days between the first and second dates supplied as arguments. More... | |
void | FreeFireTimer (FireTimer * fs) |
Frees memory associated with FireTimer structure. More... |
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Definition in file FireTimer.c.
|
Calculates the number of days between the first and second dates supplied as arguments.
Definition at line 135 of file FireTimer.c. Referenced by IsIgnitionNowRANDFromProps(), and IsSantaAnaNowFromProps(). |
|
Returns the number of days in the month supplied as an argument.
Definition at line 131 of file FireTimer.c. Referenced by FireTimerGetDaysDifftime(), FireTimerIncrementSeconds(), and InitFireTimer(). |
|
Increments the current time stored in the FireTimer by the number of seconds supplied as argument.
Propagates necessary changes into hr, dy, mo, and year fields if necessary.
Definition at line 75 of file FireTimer.c. |
|
Returns 1 if the current simulation time has reached the end of the fire season for this year. For multiple-year simulations the simulation will begin at the start of the fire season during the next year.
Definition at line 109 of file FireTimer.c. Referenced by FireExportSpatialData(). |
|
Returns 1 if the current simulation time has reached the simulation end time.
Definition at line 119 of file FireTimer.c. |
|
Frees memory associated with FireTimer structure.
Subsequent calls to methods taking FireTimer as argument will not work.
Definition at line 153 of file FireTimer.c. |
|
Allocates memory associated with FireTimer structure and initializes members.
Definition at line 30 of file FireTimer.c. Referenced by InitFireTimerFromPropsFireConfig(). |