|
hydrobricks
|
#include <SplitterSnowRainThreshold.h>
Public Member Functions | |
| bool | IsValid () const override |
| void | SetParameters (const SplitterSettings &splitterSettings) override |
| void | AttachForcing (Forcing *forcing) override |
| double * | GetValuePointer (const string &name) override |
| void | Compute () override |
Public Member Functions inherited from Splitter | |
| virtual void | Validate () const |
| const float * | GetParameterValuePointer (const SplitterSettings &splitterSettings, const string &name) |
| const float * | GetParameterValuePointerOrUnit (const SplitterSettings &splitterSettings, const string &name) |
| virtual void | SetHydroUnitProperties (HydroUnit *) |
| void | AttachFluxIn (Flux *flux) |
| void | AttachFluxOut (std::unique_ptr< Flux > flux) |
| const string & | GetName () const |
| void | SetName (const string &name) |
Protected Attributes | |
| Forcing * | _precipitation |
| Forcing * | _temperature |
| const float * | _threshold |
| const float * | _rainCorrectionFactor |
| const float * | _snowCorrectionFactor |
Protected Attributes inherited from Splitter | |
| string | _name |
| vector< Flux * > | _inputs |
| std::vector< std::unique_ptr< Flux > > | _outputs |
| const float | _unitValue = 1.0f |
Additional Inherited Members | |
Static Public Member Functions inherited from Splitter | |
| static std::unique_ptr< Splitter > | Factory (const SplitterSettings &splitterSettings) |
Rain/snow splitter using a single temperature threshold.
All precipitation is snow when T <= threshold, all rain when T > threshold. No intermediate blended zone.
Parameters: threshold [°C] temperature at and below which all precipitation is solid
|
overridevirtual |
|
overridevirtual |
Compute the output value.
Implements Splitter.
|
overridevirtual |
Get the pointer to an output value.
| name | name of the output value. |
Implements Splitter.
|
nodiscardoverridevirtual |
Check that everything is correctly defined.
Implements Splitter.
|
overridevirtual |
Assign the parameters to the splitter.
| splitterSettings | settings of the splitter containing the parameters. |
Implements Splitter.