A specific Event scheduled in a specific Scenario.
More...
#include <Event.h>
|
| enum | Type { SAVE
, END_SIMULATION
, NEW_FIRE
, FIRE_SPREAD
} |
| | Type of Event.
|
| |
|
|
static constexpr Cell | NoLocation {} |
| | Cell representing no location.
|
| |
|
| constexpr | Event (const DurationSize time, const Cell &cell, const Type type, const DurationSize time_at_location) |
| | Constructor.
|
| |
|
|
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.
|
| |
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 Type | type, |
|
|
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
◆ makeEnd()
| static Event fs::sim::Event::makeEnd |
( |
const DurationSize | time | ) |
|
|
inlinestaticnodiscard |
Make simulation end event.
- Parameters
-
- Returns
- Event created
◆ makeFireSpread() [1/2]
| static Event fs::sim::Event::makeFireSpread |
( |
const DurationSize | time | ) |
|
|
inlinestaticnodiscard |
Make fire spread event.
- Parameters
-
- Returns
- Event created
◆ makeFireSpread() [2/2]
| static Event fs::sim::Event::makeFireSpread |
( |
const DurationSize | time, |
|
|
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
◆ 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
◆ 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 |
The documentation for this class was generated from the following file: