Skip to content

Bond API#1368

Merged
yukiiwashita merged 3 commits intomasterfrom
topic/bond-measures
Oct 4, 2016
Merged

Bond API#1368
yukiiwashita merged 3 commits intomasterfrom
topic/bond-measures

Conversation

@jodastephen
Copy link
Contributor

@jodastephen jodastephen commented Oct 3, 2016

This change renames LegalEntityDiscountingProvider to ImmutableLegalEntityDiscountingProvider and adds a new interface called LegalEntityDiscountingProvider. It also renames BondGroup to RepoGroup with all associated access methods and properties renamed. Within ImmutableLegalEntityDiscountingProvider, bondMap is renamed to repoCurveGroups, and legalEntityMap is renamed to issuerCurveGroups. All this is backwards incompatible.

The incompatibility was driven by two separate flaws. Firstly, the provider should not have referred to bonds, as it will be used for bills at some point in the future. Secondly, there should always have been a separation between the class and interface to allow for the calculation/measure API to be added.

An attempt was made to add deprecated workarounds, but with two interlinked issues, the deprecations were not practical. Migration should not be complex, simply rename each item as listed above.

See #1331

Interface for `LegalEntityDiscountingProvider`
See #1331
`LegalEntityDiscountingProvider` is now an interface
`ImmutableLegalEntityDiscountingProvider` is the class
`BondGroup` is renamed to `RepoGroup`
It was not possible to deprecate in a sensible way
See #1331
}

//-------------------------------------------------------------------------
/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this as the same comment is in the interface.

}

//-------------------------------------------------------------------------
/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this as the same comment is in the interface.

@jodastephen jodastephen changed the title Add BondDiscountingProvider interface Bond API Oct 4, 2016
@yukiiwashita yukiiwashita merged commit 20d5df5 into master Oct 4, 2016
@yukiiwashita yukiiwashita deleted the topic/bond-measures branch October 4, 2016 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants