#include <HY_CartographicRealization.hpp>
|
| | HY_CartographicRealization () |
| |
| virtual | ~HY_CartographicRealization () |
| |
| const std::shared_ptr< realization::Formulation > & | get_formulation () const |
| | The model producing this feature's values, or nullptr where the feature is not modeled.
|
| |
| const std::string & | get_catchment_id () const |
| | The id this feature shares with the catchment it realizes.
|
| |
| std::shared_ptr< HY_Catchment > | realize (std::vector< std::string > inflows, std::vector< std::string > outflows, long layer=0) |
| | Build the catchment this feature is a perspective of, and bind the two together.
|
| |
| std::shared_ptr< HY_Catchment > | get_realized_catchment () const |
| | The catchment this feature realizes, whose inflow and outflow nexuses it shares.
|
| |
| virtual std::optional< double > | area_sqkm () const |
| | The areal extent of this feature, in square kilometers, where the perspective has one.
|
| |
| virtual Response | get_response (time_step_t t_index, time_step_t t_delta) |
| | Execute the attached model for the given time step, where it is of the specified size, and return the perspective's response.
|
| |
◆ Quantity
A quantity a perspective can express its value as, each in one canonical unit.
Unit conversion should be handled at a higher level, outside of the perspective itself.
| Enumerator |
|---|
| depth | Meters.
|
| volume | Cubic meters, over the step.
|
| volumetric_flow | Cubic meters per second.
|
◆ HY_CartographicRealization()
| HY_CartographicRealization::HY_CartographicRealization |
( |
| ) |
|
◆ ~HY_CartographicRealization()
| HY_CartographicRealization::~HY_CartographicRealization |
( |
| ) |
|
|
virtual |
◆ area_sqkm()
| virtual std::optional< double > HY_CatchmentRealization::area_sqkm |
( |
| ) |
const |
|
inlinevirtualinherited |
The areal extent of this feature, in square kilometers, where the perspective has one.
A face has an area, and so does the edge bounding that face; the edge running through it has a length instead. Empty therefore says the perspective has no extent to give, never that the hydrofabric withheld one: a catchment whose hydrofabric carries no extent is refused when the realization is built, so it does not reach here.
Reimplemented in HY_CatchmentArea.
◆ get_catchment_id()
| const std::string & HY_CatchmentRealization::get_catchment_id |
( |
| ) |
const |
|
inlineinherited |
◆ get_formulation()
◆ get_realized_catchment()
| std::shared_ptr< HY_Catchment > HY_CatchmentRealization::get_realized_catchment |
( |
| ) |
const |
|
inherited |
◆ get_response()
◆ realize()
| std::shared_ptr< HY_Catchment > HY_CatchmentRealization::realize |
( |
std::vector< std::string > | inflows, |
|
|
std::vector< std::string > | outflows, |
|
|
long | layer = 0 ) |
|
inherited |
Build the catchment this feature is a perspective of, and bind the two together.
The catchment is given this realization's identity, so the pair cannot disagree about what it names. Each then holds the other: the catchment owns its realization, and the realization reaches back to the catchment for its nexuses.
One realization is one perspective of one catchment. Calling this again returns the catchment already built and does not apply the arguments; realizing a catchment from another perspective means another realization, which builds its own.
- Parameters
-
| inflows | Ids of the nexuses contributing to the catchment. |
| outflows | Ids of the nexuses the catchment contributes to. |
| layer | The hydrofabric layer the catchment belongs to. |
- Returns
- The catchment, newly built or the one this realization already built.
- Exceptions
-
| std::bad_weak_ptr | If this realization is not already held by a shared_ptr. |
References HY_CatchmentRealization::catchment_id, and HY_CatchmentRealization::realized_catchment.
Referenced by HY_CatchmentRealization_Test::SetUp().
◆ catchment_id
| std::string HY_CatchmentRealization::catchment_id |
|
protectedinherited |
◆ formulation
◆ id_number
| unsigned long HY_CatchmentRealization::id_number |
|
protectedinherited |
◆ quantity_count
| std::size_t HY_CatchmentRealization::quantity_count = 3 |
|
staticconstexprinherited |
◆ realized_catchment
| std::weak_ptr<HY_Catchment> HY_CatchmentRealization::realized_catchment |
|
privateinherited |
The documentation for this class was generated from the following files: