commit | 56c7cde3ed009d0df86303c806d666b86fe9c0e8 | [log] [tgz] |
---|---|---|
author | Stefan Edlund <sedlund@us.ibm.com> | Thu Feb 21 15:45:45 2019 -0800 |
committer | Stefan Edlund <sedlund@us.ibm.com> | Thu Feb 21 15:45:45 2019 -0800 |
tree | fd8bce9058acf13a935c3544a589c9bd3ff4b71e | |
parent | 0bb93dd1c8ad504454a6f5d1be219313309ce364 [diff] |
fix timeseries problem
diff --git a/org.eclipse.stem/core/org.eclipse.stem.solvers.stochastic/src/org/eclipse/stem/solvers/stochastic/impl/StandardStochasticImpl.java b/org.eclipse.stem/core/org.eclipse.stem.solvers.stochastic/src/org/eclipse/stem/solvers/stochastic/impl/StandardStochasticImpl.java index c640c06..881a344 100644 --- a/org.eclipse.stem/core/org.eclipse.stem.solvers.stochastic/src/org/eclipse/stem/solvers/stochastic/impl/StandardStochasticImpl.java +++ b/org.eclipse.stem/core/org.eclipse.stem.solvers.stochastic/src/org/eclipse/stem/solvers/stochastic/impl/StandardStochasticImpl.java
@@ -558,6 +558,12 @@ } private void copyCurrentToNext(IntegrationLabel iLabel) { + // SED FIX 2019/02/21. + // Need to set tbhe next label valid so that notifications occurs on the GraphImpl switchToNextValue() call, + // or things like TimeSeries won't work. + + iLabel.setNextValueValid(true); + IntegrationLabelValue iLabelValueCurrent = (IntegrationLabelValue)iLabel.getCurrentValue(); IntegrationLabelValue iLabelValueNext = (IntegrationLabelValue)iLabel.getNextValue(); iLabelValueNext.set(iLabelValueCurrent);