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

Single stub period #1615

Merged
merged 2 commits into from Nov 24, 2017
Merged

Single stub period #1615

merged 2 commits into from Nov 24, 2017

Conversation

@yukiiwashita
Copy link
Contributor

@yukiiwashita yukiiwashita commented Nov 23, 2017

Handling for a single period swap with initial stub, where Schedule has a single stub period.

  • isTerm() only returns true when frequency is Term
  • 'isSinglePeriod()` returns true if there is one period
  • getInitialStub() returns a single period if it is a stub
  • getInitialStub(), getRegularPeriods() and getFinalStub() form a set, with each period being in one of the three methods
Existing isTerm() method redefined to refer to term frequency
Additional isSinglePeriod() defined to count the number of periods
Methods getInitialStub(), getRegularPeriods(), getFinalStub()
defined to allocate a period to one and only one of the methods
@jodastephen jodastephen added this to the v1.6 milestone Nov 24, 2017
@jodastephen jodastephen merged commit 1fb76c4 into master Nov 24, 2017
15 checks passed
15 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
security/snyk No new issues
Details
security/snyk - modules/basics/pom.xml No new issues
Details
security/snyk - modules/calc/pom.xml No new issues
Details
security/snyk - modules/collect/pom.xml No new issues
Details
security/snyk - modules/data/pom.xml No new issues
Details
security/snyk - modules/loader/pom.xml No new issues
Details
security/snyk - modules/market/pom.xml No new issues
Details
security/snyk - modules/math/pom.xml No new issues
Details
security/snyk - modules/measure/pom.xml No new issues
Details
security/snyk - modules/pom.xml No new issues
Details
security/snyk - modules/pricer/pom.xml No new issues
Details
security/snyk - modules/product/pom.xml No new issues
Details
security/snyk - modules/report/pom.xml No new issues
Details
@jodastephen jodastephen deleted the topic/single-stub-period branch Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants