Skip to content

Commit 6e774dd

Browse files
Interfaces and implementations for retirement models
1 parent 90a716a commit 6e774dd

File tree

60 files changed

+2385
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2385
-107
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_STORE*
2+
*/target/*

client/src/main/java/io/xmljim/algorithms/client/AlgorithmClient.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
package io.xmljim.algorithms.client;
2525

26+
import io.xmljim.algorithms.functions.financial.Financial;
2627
import io.xmljim.algorithms.functions.provider.FunctionProvider;
2728
import io.xmljim.algorithms.functions.statistics.Statistics;
2829
import io.xmljim.algorithms.model.provider.*;
@@ -38,14 +39,14 @@ public AlgorithmClient() throws ProviderNotAvailableException {
3839
modelProvider = modelProviders.iterator().next();
3940

4041
if (modelProvider == null) {
41-
throw new ProviderNotAvailableException("Provider for " + modelProvider.getClass().getName() + " not available");
42+
throw new ProviderNotAvailableException("Provider for " + ModelProvider.class.getName() + " not available");
4243
}
4344

4445
Iterable<FunctionProvider> functionProviders = ServiceLoader.load(FunctionProvider.class);
4546
functionProvider = functionProviders.iterator().next();
4647

4748
if (functionProvider == null) {
48-
throw new ProviderNotAvailableException("Provider for " + functionProvider.getClass().getName() + " not available");
49+
throw new ProviderNotAvailableException("Provider for " + FunctionProvider.class.getName() + " not available");
4950
}
5051
}
5152

@@ -61,6 +62,10 @@ public Statistics getStatistics() {
6162
return getFunctionProvider().getStatistics();
6263
}
6364

65+
public Financial getFinancial() {
66+
return getFunctionProvider().getFinancial();
67+
}
68+
6469
public ParameterFactory getParameterFactory() {
6570
return getModelProvider().getParameterFactory();
6671
}

client/target/apidocs/allclasses-index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>All Classes (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="class index">
1010
<meta name="generator" content="javadoc/AllClassesIndexWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

client/target/apidocs/allpackages-index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>All Packages (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="package index">
1010
<meta name="generator" content="javadoc/AllPackagesIndexWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

client/target/apidocs/constant-values.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>Constant Field Values (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="summary of constants">
1010
<meta name="generator" content="javadoc/ConstantsSummaryWriterImpl">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

client/target/apidocs/deprecated-list.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>Deprecated List (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="deprecated elements">
1010
<meta name="generator" content="javadoc/DeprecatedListWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

client/target/apidocs/help-doc.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>API Help (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="help">
1010
<meta name="generator" content="javadoc/HelpWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

client/target/apidocs/index-all.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>Index (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="index">
1010
<meta name="generator" content="javadoc/SingleIndexWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
@@ -65,6 +65,8 @@ <h2 class="title" id="I:G">G</h2>
6565
<dl class="index">
6666
<dt><span class="member-name-link"><a href="io/xmljim/algorithms/client/AlgorithmClient.html#getCoefficientFactory()">getCoefficientFactory()</a></span> - Method in class io.xmljim.algorithms.client.<a href="io/xmljim/algorithms/client/AlgorithmClient.html" title="class in io.xmljim.algorithms.client">AlgorithmClient</a></dt>
6767
<dd>&nbsp;</dd>
68+
<dt><span class="member-name-link"><a href="io/xmljim/algorithms/client/AlgorithmClient.html#getFinancial()">getFinancial()</a></span> - Method in class io.xmljim.algorithms.client.<a href="io/xmljim/algorithms/client/AlgorithmClient.html" title="class in io.xmljim.algorithms.client">AlgorithmClient</a></dt>
69+
<dd>&nbsp;</dd>
6870
<dt><span class="member-name-link"><a href="io/xmljim/algorithms/client/AlgorithmClient.html#getFunctionProvider()">getFunctionProvider()</a></span> - Method in class io.xmljim.algorithms.client.<a href="io/xmljim/algorithms/client/AlgorithmClient.html" title="class in io.xmljim.algorithms.client">AlgorithmClient</a></dt>
6971
<dd>&nbsp;</dd>
7072
<dt><span class="member-name-link"><a href="io/xmljim/algorithms/client/AlgorithmClient.html#getMatrixFactory()">getMatrixFactory()</a></span> - Method in class io.xmljim.algorithms.client.<a href="io/xmljim/algorithms/client/AlgorithmClient.html" title="class in io.xmljim.algorithms.client">AlgorithmClient</a></dt>

client/target/apidocs/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>client 1.0-SNAPSHOT API</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="index redirect">
1010
<meta name="generator" content="javadoc/IndexRedirectWriter">
1111
<link rel="canonical" href="io/xmljim/algorithms/client/package-summary.html">

client/target/apidocs/io/xmljim/algorithms/client/AlgorithmClient.html

+19-8
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>AlgorithmClient (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="declaration: package: io.xmljim.algorithms.client, class: AlgorithmClient">
1010
<meta name="generator" content="javadoc/ClassWriterImpl">
1111
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
@@ -16,7 +16,7 @@
1616
<script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script>
1717
</head>
1818
<body class="class-declaration-page">
19-
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10};
19+
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10};
2020
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
2121
var altColor = "alt-color";
2222
var rowColor = "row-color";
@@ -131,31 +131,36 @@ <h2>Method Summary</h2>
131131
<td class="col-last">&nbsp;</td>
132132
</tr>
133133
<tr class="row-color" id="i1">
134+
<td class="col-first"><code>io.xmljim.algorithms.functions.financial.Financial</code></td>
135+
<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getFinancial()">getFinancial</a></span>()</code></th>
136+
<td class="col-last">&nbsp;</td>
137+
</tr>
138+
<tr class="alt-color" id="i2">
134139
<td class="col-first"><code>io.xmljim.algorithms.functions.provider.FunctionProvider</code></td>
135140
<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getFunctionProvider()">getFunctionProvider</a></span>()</code></th>
136141
<td class="col-last">&nbsp;</td>
137142
</tr>
138-
<tr class="alt-color" id="i2">
143+
<tr class="row-color" id="i3">
139144
<td class="col-first"><code>io.xmljim.algorithms.model.provider.MatrixFactory</code></td>
140145
<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getMatrixFactory()">getMatrixFactory</a></span>()</code></th>
141146
<td class="col-last">&nbsp;</td>
142147
</tr>
143-
<tr class="row-color" id="i3">
148+
<tr class="alt-color" id="i4">
144149
<td class="col-first"><code>io.xmljim.algorithms.model.provider.ModelProvider</code></td>
145150
<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getModelProvider()">getModelProvider</a></span>()</code></th>
146151
<td class="col-last">&nbsp;</td>
147152
</tr>
148-
<tr class="alt-color" id="i4">
153+
<tr class="row-color" id="i5">
149154
<td class="col-first"><code>io.xmljim.algorithms.model.provider.ParameterFactory</code></td>
150155
<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getParameterFactory()">getParameterFactory</a></span>()</code></th>
151156
<td class="col-last">&nbsp;</td>
152157
</tr>
153-
<tr class="row-color" id="i5">
158+
<tr class="alt-color" id="i6">
154159
<td class="col-first"><code>io.xmljim.algorithms.functions.statistics.Statistics</code></td>
155160
<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getStatistics()">getStatistics</a></span>()</code></th>
156161
<td class="col-last">&nbsp;</td>
157162
</tr>
158-
<tr class="alt-color" id="i6">
163+
<tr class="row-color" id="i7">
159164
<td class="col-first"><code>io.xmljim.algorithms.model.provider.VectorFactory</code></td>
160165
<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getVectorFactory()">getVectorFactory</a></span>()</code></th>
161166
<td class="col-last">&nbsp;</td>
@@ -216,6 +221,12 @@ <h3>getStatistics</h3>
216221
</section>
217222
</li>
218223
<li>
224+
<section class="detail" id="getFinancial()">
225+
<h3>getFinancial</h3>
226+
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">io.xmljim.algorithms.functions.financial.Financial</span>&nbsp;<span class="member-name">getFinancial</span>()</div>
227+
</section>
228+
</li>
229+
<li>
219230
<section class="detail" id="getParameterFactory()">
220231
<h3>getParameterFactory</h3>
221232
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">io.xmljim.algorithms.model.provider.ParameterFactory</span>&nbsp;<span class="member-name">getParameterFactory</span>()</div>

client/target/apidocs/io/xmljim/algorithms/client/ProviderNotAvailableException.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>ProviderNotAvailableException (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="declaration: package: io.xmljim.algorithms.client, class: ProviderNotAvailableException">
1010
<meta name="generator" content="javadoc/ClassWriterImpl">
1111
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

client/target/apidocs/io/xmljim/algorithms/client/class-use/AlgorithmClient.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>Uses of Class io.xmljim.algorithms.client.AlgorithmClient (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="use: package: io.xmljim.algorithms.client, class: AlgorithmClient">
1010
<meta name="generator" content="javadoc/ClassUseWriter">
1111
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

client/target/apidocs/io/xmljim/algorithms/client/class-use/ProviderNotAvailableException.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>Uses of Class io.xmljim.algorithms.client.ProviderNotAvailableException (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="use: package: io.xmljim.algorithms.client, class: ProviderNotAvailableException">
1010
<meta name="generator" content="javadoc/ClassUseWriter">
1111
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

client/target/apidocs/io/xmljim/algorithms/client/package-summary.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>io.xmljim.algorithms.client (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="declaration: package: io.xmljim.algorithms.client">
1010
<meta name="generator" content="javadoc/PackageWriterImpl">
1111
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

client/target/apidocs/io/xmljim/algorithms/client/package-tree.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>io.xmljim.algorithms.client Class Hierarchy (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="tree: package: io.xmljim.algorithms.client">
1010
<meta name="generator" content="javadoc/PackageTreeWriter">
1111
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

client/target/apidocs/io/xmljim/algorithms/client/package-use.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>Uses of Package io.xmljim.algorithms.client (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="use: package: io.xmljim.algorithms.client">
1010
<meta name="generator" content="javadoc/PackageUseWriter">
1111
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

client/target/apidocs/member-search-index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/target/apidocs/overview-tree.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>Class Hierarchy (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="class tree">
1010
<meta name="generator" content="javadoc/TreeWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

client/target/apidocs/serialized-form.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (15) on Mon Aug 23 19:02:24 MDT 2021 -->
5+
<!-- Generated by javadoc (15) on Fri Sep 03 11:16:10 MDT 2021 -->
66
<title>Serialized Form (client 1.0-SNAPSHOT API)</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2021-08-23">
8+
<meta name="dc.created" content="2021-09-03">
99
<meta name="description" content="serialized forms">
1010
<meta name="generator" content="javadoc/SerializedFormWriterImpl">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
Binary file not shown.
59 Bytes
Binary file not shown.

client/target/client-1.0-SNAPSHOT.jar

17 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)