//! Functions to set and get seasonality.
/*! Calling setSeasonality with no arguments means unsetting
* as the default is used to choose unsetting.
*/
public void setSeasonality(Seasonality seasonality = null)
{
// always reset, whether with null or new pointer
seasonality_ = seasonality;
if (seasonality_ != null)
{
Utils.QL_REQUIRE(seasonality_.isConsistent(this),
() => "Seasonality inconsistent with " + "inflation term structure");
}
notifyObservers();
}