Package com.walkfares.calendar.expiry
Class ExpiryRuleMap
java.lang.Object
com.walkfares.calendar.expiry.ExpiryRuleMap
public class ExpiryRuleMap extends Object
-
Constructor Summary
Constructors Constructor Description ExpiryRuleMap()
-
Method Summary
Modifier and Type Method Description void
addRule(PeriodCodeType type, ExpiryRule rule)
void
addRule(PeriodCodeType type, UTCDate limit, boolean before, ExpiryRule rule)
List<LimitedExpiryRule>
getConfiguredExpiryRule(PeriodCodeType pct)
List<PeriodCodeType>
getConfiguredTypes()
ExpiryRule
getDeliveryEndRuleForPeriod(CurveDate cd, PeriodCode period)
ExpiryRule
getDeliveryStartRuleForPeriod(CurveDate cd, PeriodCode period)
ExpiryRule
getExpiryRuleForPeriod(CurveDate cd, PeriodCode period)
LimitedExpiryRule
getLimitedRuleForPeriod(CurveDate cd, PeriodCode period, int type)
ExpiryRule
getRuleForPeriod(CurveDate cd, PeriodCode period, int type)
List<String>
getRuleStrings()
int
size()
-
Constructor Details
-
ExpiryRuleMap
public ExpiryRuleMap()
-
-
Method Details
-
size
public int size() -
getConfiguredTypes
-
getConfiguredExpiryRule
-
addRule
-
addRule
-
getRuleStrings
-
getExpiryRuleForPeriod
-
getDeliveryStartRuleForPeriod
-
getDeliveryEndRuleForPeriod
-
getRuleForPeriod
- Parameters:
cd
-period
-type
- 0 = expiry, 1 = delivery start, 2 = delivery end- Returns:
-
getLimitedRuleForPeriod
- Parameters:
cd
-period
-type
- 0 = expiry, 1 = delivery start, 2 = delivery end- Returns:
-