A specific Event scheduled in a specific Scenario.
More...
#include <Event.h>
|
enum | Type { SAVE
, END_SIMULATION
, NEW_FIRE
, FIRE_SPREAD
} |
| Type of Event.
|
|
|
| Event (Event &&rhs) noexcept=default |
| Move constructor.
|
|
| Event (const Event &rhs)=delete |
| Copy constructor.
|
|
Event & | operator= (Event &&rhs) noexcept=default |
| Move assignment.
|
|
Event & | operator= (const Event &rhs)=delete |
| Copy assignment.
|
|
constexpr DurationSize | time () const |
| Time of Event (decimal days)
|
|
constexpr Type | type () const |
| Type of Event.
|
|
constexpr DurationSize | timeAtLocation () const |
| Duration that Event Cell has been burning (decimal days)
|
|
constexpr IntensitySize | intensity () const |
| Burn Intensity (kW/m)
|
|
constexpr wx::Direction | raz () const |
| Head fire spread direction.
|
|
constexpr ROSSize | ros () const |
| Head fire rate of spread (m/min)
|
|
constexpr const Cell & | cell () const |
| Cell Event takes place in.
|
|
constexpr CellIndex | source () const |
| CellIndex for relative Cell that spread into from.
|
|
|
static Event | makeEvent (const DurationSize time, const Cell &cell, const Type type) |
|
static Event | makeEnd (const DurationSize time) |
| Make simulation end event.
|
|
static Event | makeNewFire (const DurationSize time, const Cell &cell) |
| Make new fire event.
|
|
static Event | makeSave (const DurationSize time) |
| Make simulation save event.
|
|
static Event | makeFireSpread (const DurationSize time) |
| Make fire spread event.
|
|
static Event | makeFireSpread (const DurationSize time, const IntensitySize intensity, const ROSSize ros, const Direction raz) |
| Make fire spread event.
|
|
static Event | makeFireSpread (const DurationSize time, const IntensitySize intensity, const ROSSize ros, const Direction raz, const Cell &cell) |
| Make fire spread event.
|
|
static Event | makeFireSpread (const DurationSize time, const IntensitySize intensity, const ROSSize ros, const Direction raz, const Cell &cell, const CellIndex source) |
| Make fire spread event.
|
|
|
static constexpr Cell | NoLocation {} |
| Cell representing no location.
|
|
|
DurationSize | time_ |
| Time to schedule for.
|
|
DurationSize | time_at_location_ |
| Duration that Event Cell has been burning (decimal days)
|
|
Cell | cell_ |
| Cell to spread in.
|
|
Type | type_ |
| Type of Event.
|
|
IntensitySize | intensity_ |
|
ROSSize | ros_ |
|
Direction | raz_ |
|
CellIndex | source_ |
| Spread information at time and place of event.
|
|
A specific Event scheduled in a specific Scenario.
◆ Event() [1/3]
fs::sim::Event::Event |
( |
Event && | rhs | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
◆ Event() [2/3]
fs::sim::Event::Event |
( |
const Event & | rhs | ) |
|
|
delete |
Copy constructor.
- Parameters
-
◆ Event() [3/3]
fs::sim::Event::Event |
( |
const DurationSize | time, |
|
|
const Cell & | cell, |
|
|
const CellIndex | source, |
|
|
const Type | type, |
|
|
const IntensitySize | intensity, |
|
|
const ROSSize | ros, |
|
|
const Direction | raz, |
|
|
const DurationSize | time_at_location ) |
|
inlineconstexprprivate |
Constructor.
- Parameters
-
time | Time to schedule for |
cell | CellIndex for relative Cell that spread into from |
source | Source that Event is coming from |
type | Type of Event |
intensity | Intensity to spread with (kW/m) |
time_at_location | Duration that Event Cell has been burning (decimal days) |
◆ cell()
const Cell & fs::sim::Event::cell |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Cell Event takes place in.
- Returns
- Cell Event takes place in
◆ intensity()
IntensitySize fs::sim::Event::intensity |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Burn Intensity (kW/m)
- Returns
- Burn Intensity (kW/m)
◆ makeEnd()
static Event fs::sim::Event::makeEnd |
( |
const DurationSize | time | ) |
|
|
inlinestaticnodiscard |
Make simulation end event.
- Parameters
-
- Returns
- Event created
◆ makeFireSpread() [1/4]
static Event fs::sim::Event::makeFireSpread |
( |
const DurationSize | time | ) |
|
|
inlinestaticnodiscard |
Make fire spread event.
- Parameters
-
- Returns
- Event created
◆ makeFireSpread() [2/4]
static Event fs::sim::Event::makeFireSpread |
( |
const DurationSize | time, |
|
|
const IntensitySize | intensity, |
|
|
const ROSSize | ros, |
|
|
const Direction | raz ) |
|
inlinestaticnodiscard |
Make fire spread event.
- Parameters
-
time | Time to schedule for |
intensity | Intensity to spread with (kW/m) |
- Returns
- Event created
◆ makeFireSpread() [3/4]
static Event fs::sim::Event::makeFireSpread |
( |
const DurationSize | time, |
|
|
const IntensitySize | intensity, |
|
|
const ROSSize | ros, |
|
|
const Direction | raz, |
|
|
const Cell & | cell ) |
|
inlinestaticnodiscard |
Make fire spread event.
- Parameters
-
time | Time to schedule for |
intensity | Intensity to spread with (kW/m) |
cell | Cell to spread in |
- Returns
- Event created
◆ makeFireSpread() [4/4]
static Event fs::sim::Event::makeFireSpread |
( |
const DurationSize | time, |
|
|
const IntensitySize | intensity, |
|
|
const ROSSize | ros, |
|
|
const Direction | raz, |
|
|
const Cell & | cell, |
|
|
const CellIndex | source ) |
|
inlinestaticnodiscard |
Make fire spread event.
- Parameters
-
time | Time to schedule for |
intensity | Intensity to spread with (kW/m) |
cell | Cell to spread in |
- Returns
- Event created
◆ makeNewFire()
static Event fs::sim::Event::makeNewFire |
( |
const DurationSize | time, |
|
|
const Cell & | cell ) |
|
inlinestaticnodiscard |
Make new fire event.
- Parameters
-
time | Time to schedule for |
cell | Cell to start new fire in |
- Returns
- Event created
◆ makeSave()
static Event fs::sim::Event::makeSave |
( |
const DurationSize | time | ) |
|
|
inlinestaticnodiscard |
Make simulation save event.
- Parameters
-
- Returns
- Event created
◆ operator=() [1/2]
Event & fs::sim::Event::operator= |
( |
const Event & | rhs | ) |
|
|
delete |
Copy assignment.
- Parameters
-
- Returns
- This, after assignment
◆ operator=() [2/2]
Move assignment.
- Parameters
-
- Returns
- This, after assignment
◆ raz()
Head fire spread direction.
- Returns
- Head fire spread direction
◆ ros()
ROSSize fs::sim::Event::ros |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Head fire rate of spread (m/min)
- Returns
- Head fire rate of spread (m/min)
◆ source()
CellIndex fs::sim::Event::source |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
CellIndex for relative Cell that spread into from.
- Returns
- CellIndex for relative Cell that spread into from
◆ time()
DurationSize fs::sim::Event::time |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Time of Event (decimal days)
- Returns
- Time of Event (decimal days)
◆ timeAtLocation()
DurationSize fs::sim::Event::timeAtLocation |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Duration that Event Cell has been burning (decimal days)
- Returns
- Duration that Event Cell has been burning (decimal days)
◆ type()
Type fs::sim::Event::type |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
◆ source_
CellIndex fs::sim::Event::source_ |
|
private |
Spread information at time and place of event.
CellIndex for relative Cell that spread into from
The documentation for this class was generated from the following file: