Skip to content

Commit

Permalink
SXSD-8145: Extensible discounting swap leg pricer
Browse files Browse the repository at this point in the history
  • Loading branch information
ntaylorSolum committed Jun 19, 2024
1 parent 0c57bf1 commit 592db28
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-examples</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<packaging>jar</packaging>
<name>Strata-Examples</name>
<description>Example code to demonstrate use of Strata</description>
Expand Down
2 changes: 1 addition & 1 deletion modules/basics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-basics</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/calc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-calc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/collect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-collect</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-data</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-loader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/market/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-market</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/math/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-math</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/measure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-measure</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<packaging>pom</packaging>
<name>Strata-Parent</name>
<description>OpenGamma Strata Parent</description>
Expand Down
2 changes: 1 addition & 1 deletion modules/pricer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-pricer</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public CurrencyAmount presentValue(ResolvedSwapLeg leg, RatesProvider provider)
}

// calculates the present value in the currency of the swap leg
double presentValueInternal(ResolvedSwapLeg leg, RatesProvider provider) {
protected double presentValueInternal(ResolvedSwapLeg leg, RatesProvider provider) {
return presentValuePeriodsInternal(leg, provider) + presentValueEventsInternal(leg, provider);
}

Expand Down Expand Up @@ -513,7 +513,7 @@ public CashFlows cashFlows(ResolvedSwapLeg leg, RatesProvider provider) {
}

// calculates the present value of the events composing the leg in the currency of the swap leg
double presentValueEventsInternal(ResolvedSwapLeg leg, RatesProvider provider) {
protected double presentValueEventsInternal(ResolvedSwapLeg leg, RatesProvider provider) {
double total = 0d;
for (SwapPaymentEvent event : leg.getPaymentEvents()) {
if (!event.getPaymentDate().isBefore(provider.getValuationDate())) {
Expand All @@ -524,7 +524,7 @@ public CashFlows cashFlows(ResolvedSwapLeg leg, RatesProvider provider) {
}

// calculates the present value of the periods composing the leg in the currency of the swap leg
double presentValuePeriodsInternal(ResolvedSwapLeg leg, RatesProvider provider) {
protected double presentValuePeriodsInternal(ResolvedSwapLeg leg, RatesProvider provider) {
double total = 0d;
for (SwapPaymentPeriod period : leg.getPaymentPeriods()) {
if (!period.getPaymentDate().isBefore(provider.getValuationDate())) {
Expand Down
2 changes: 1 addition & 1 deletion modules/product/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-product</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion modules/report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-parent</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<relativePath>..</relativePath>
</parent>
<artifactId>strata-report</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.opengamma.strata</groupId>
<artifactId>strata-root</artifactId>
<version>2.12.22-xplain-5</version>
<version>2.12.22-xplain-6</version>
<packaging>pom</packaging>
<name>Strata-Root</name>
<description>OpenGamma Strata root</description>
Expand Down

0 comments on commit 592db28

Please sign in to comment.