hydrobricks
Loading...
Searching...
No Matches
ParameterVariableYearly Class Reference
Inheritance diagram for ParameterVariableYearly:
ParameterVariable Parameter

Public Member Functions

 ParameterVariableYearly (const string &name)
 
bool SetValues (int yearStart, int yearEnd, const vecFloat &values)
 
bool UpdateParameter (int year)
 
- Public Member Functions inherited from ParameterVariable
 ParameterVariable (const string &name)
 
- Public Member Functions inherited from Parameter
 Parameter (const string &name, float val=NAN_F)
 
bool IsLinked () const
 
void SetAsLinked (bool value=true)
 
string GetName () const
 
void SetName (const string &name)
 
float GetValue () const
 
float * GetValuePointer ()
 
void SetValue (float val)
 

Protected Attributes

vecInt m_reference
 
- Protected Attributes inherited from ParameterVariable
vecFloat m_values
 
- Protected Attributes inherited from Parameter
bool m_linked
 
string m_name
 
float m_value
 

Member Function Documentation

◆ SetValues()

bool ParameterVariableYearly::SetValues ( int yearStart,
int yearEnd,
const vecFloat & values )

Set the values of the parameter for a range of years.

Parameters
yearStartstart year
yearEndend year
valuesvalues for each year
Returns
true if the values were set successfully, false otherwise

◆ UpdateParameter()

bool ParameterVariableYearly::UpdateParameter ( int year)

Update the parameter value for a specific year.

Parameters
yearyear to update
Returns
true if the parameter was updated successfully, false otherwise

The documentation for this class was generated from the following files: