VolumeRightConstructor struct
#include <gtopt/json/json_volume_right.hpp>
Custom constructor: converts JSON reset_month string → MonthType enum.
Public functions
-
auto operator()(Uid uid,
Name name,
OptActive active,
OptName purpose,
OptSingleId reservoir,
OptSingleId right_reservoir,
OptInt direction,
OptTRealFieldSched emin,
OptTRealFieldSched emax,
OptTRealFieldSched ecost,
OptReal eini,
OptReal efin,
OptTRealFieldSched soft_emin,
OptTRealFieldSched soft_emin_cost,
OptTRealFieldSched demand,
OptTBRealFieldSched fmax,
OptReal fail_cost,
OptReal priority,
OptTBRealFieldSched saving_rate,
OptReal flow_conversion_rate,
OptReal energy_scale,
OptName energy_scale_mode,
OptBool use_state_variable,
OptTRealFieldSched annual_loss,
OptName reset_month_str,
std::optional<gtopt::
RightBoundRule> bound_rule) const -> VolumeRight