Skip to content
Snippets Groups Projects
Commit fcd00593 authored by treinar's avatar treinar
Browse files

Refactoring Result object

parent 202ea7cf
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ public class NaerstadModel extends I18nImpl implements Model{
{
Result result = new ResultImpl();
result.setResultValidTime(thePresent);
result.setValidTimeStart(thePresent);
Double RISK = this.backgroundData.getParamDoubleValueForDate(thePresent, NaerstadModelBackgroundDataMatrix.RISK);
// TODO: Find better way of terminating?
if(RISK == null)
......
......@@ -122,12 +122,12 @@ public class NaerstadModelTest extends TestCase {
cal.set(Calendar.MILLISECOND, 0);
for(Result res:results)
{
if(res.getResultValidTime().compareTo(cal.getTime()) == 0)
if(res.getValidTimeStart().compareTo(cal.getTime()) == 0)
{
assertTrue(res.getValue(instance.getModelId().toString(),"RISK").equals("5.36"));
}
System.out.println("Res[" + res.getResultValidTime() + "]:" + res.getAllValues());
System.out.println("Res[" + res.getValidTimeStart()+ "]:" + res.getAllValues());
}
assertTrue(results.size() == 209);
} catch (ConfigValidationException | ModelExcecutionException ex) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment