public isConsistent ( QLNet.InflationTermStructure iTS ) : bool | ||
iTS | QLNet.InflationTermStructure | |
return | bool |
//! 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(); }
//@} //! 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) { if (!seasonality_.isConsistent(this)) { throw new ApplicationException("Seasonality inconsistent with " + "inflation term structure"); } } notifyObservers(); }
public void setSeasonality(Seasonality seasonality) { // always reset, whether with null or new pointer seasonality_ = seasonality; if (seasonality_ == null) { if (!seasonality_.isConsistent(this)) throw new ApplicationException("Seasonality inconsistent with " + "inflation term structure"); } notifyObservers(); }