org.jquantlib.indexes
Class InflationIndex
- java.lang.Object
-
- org.jquantlib.indexes.Index
-
- org.jquantlib.indexes.InflationIndex
-
- All Implemented Interfaces:
- Observable, Observer
- Direct Known Subclasses:
- YoYInflationIndex, ZeroInflationIndex
public abstract class InflationIndex extends Index implements Observer
-
-
Constructor Summary
Constructors Constructor and Description InflationIndex(java.lang.String familyName, Region region, boolean revised, boolean interpolated, Frequency frequency, Period availabilityLag, Currency currency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddFixing(Date fixingDate, double fixing, boolean forceOverwrite)Stores the historical fixing at the given datePeriodavailabilityLag()The availability lag describes when the index is available, not how it is used.Currencycurrency()java.lang.StringfamilyName()CalendarfixingCalendar()Frequencyfrequency()booleaninterpolated()booleanisValidFixingDate(Date fixingDate)java.lang.Stringname()Regionregion()booleanrevised()voidupdate()This method is called whenever the observed object is changed.-
Methods inherited from class org.jquantlib.indexes.Index
addFixing, addFixings, addObserver, clearFixings, countObservers, deleteObserver, deleteObservers, fixing, fixing, getObservers, notifyObservers, notifyObservers, timeSeries
-
-
-
-
Method Detail
-
fixingCalendar
public Calendar fixingCalendar()
- Specified by:
fixingCalendarin classIndex- Returns:
- the calendar defining valid fixing dates
-
isValidFixingDate
public boolean isValidFixingDate(Date fixingDate)
- Specified by:
isValidFixingDatein classIndex- Returns:
- TRUE if the fixing date is a valid one
-
familyName
public java.lang.String familyName()
-
region
public Region region()
-
revised
public boolean revised()
-
interpolated
public boolean interpolated()
-
frequency
public Frequency frequency()
-
availabilityLag
public Period availabilityLag()
The availability lag describes when the index is available, not how it is used. Specifically the fixing for, say, January, may only be available in April but the index will always return the index value applicable for January as its January fixing (independent of the lag in availability).
-
currency
public Currency currency()
-
addFixing
public void addFixing(Date fixingDate, double fixing, boolean forceOverwrite)
Description copied from class:IndexStores the historical fixing at the given dateThe date passed as arguments must be the actual calendar date of the fixing; no settlement days must be used.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG