Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bond API #1368

Merged
merged 3 commits into from
Oct 4, 2016
Merged

Bond API #1368

merged 3 commits into from
Oct 4, 2016

Conversation

jodastephen
Copy link
Member

@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