Package com.walkfares.calendar.expiry
Class ExpiryCalendar
java.lang.Object
com.walkfares.calendar.expiry.ExpiryCalendar
- Direct Known Subclasses:
FinancialExpiryCalendar
public class ExpiryCalendar extends Object
-
Constructor Summary
Constructors Constructor Description ExpiryCalendar(String code, Calendar tradingCalendar)
ExpiryCalendar(String code, String name, Calendar tradingCalendar)
-
Method Summary
Modifier and Type Method Description ExpiryCalendar
addRule(LimitedExpiryRule limitedExpiryRule)
ExpiryCalendar
addRule(PeriodCodeType period, ExpiryRule rule)
ExpiryCalendar
addRule(PeriodCodeType type, UTCDate limit, boolean before, ExpiryRule rule)
ExpiryCalendar
addRule(String rule)
String
getCode()
ExpiryRule
getDeliveryEndRuleForPeriod(CurveDate date, PeriodCode period)
ExpiryRule
getDeliveryStartRuleForPeriod(CurveDate date, PeriodCode period)
ExpiryRule
getExpiryRuleForPeriod(CurveDate date, PeriodCode period)
LimitedExpiryRule
getLimitedExpiryRuleForPeriod(CurveDate start, PeriodCode period, int type)
String
getName()
ExpiryRuleMap
getRules()
Calendar
getTradingCalendar()
String
getTradingCalendarCode()
void
refresh()
ExpiryCalendar
setCode(String code)
ExpiryCalendar
setName(String name)
ExpiryCalendar
setRules(ExpiryRuleMap rules)
ExpiryCalendar
setTradingCalendar(Calendar tradingCalendar)
ExpiryCalendar
setTradingCalendarCode(String tradingCalendarCode)
-
Constructor Details
-
Method Details
-
refresh
public void refresh() -
getCode
-
setCode
-
setTradingCalendarCode
-
addRule
-
addRule
-
addRule
-
addRule
-
getLimitedExpiryRuleForPeriod
public LimitedExpiryRule getLimitedExpiryRuleForPeriod(CurveDate start, PeriodCode period, int type) -
getExpiryRuleForPeriod
-
getDeliveryStartRuleForPeriod
-
getDeliveryEndRuleForPeriod
-
getRules
-
setRules
-
getName
-
setName
-
getTradingCalendar
-
setTradingCalendar
-
getTradingCalendarCode
-