*
* @param cycle the view cycle, not null
* @param cache the cache of results, not null
*/
/* package */void updateResults(ViewCycle cycle, ResultsCache cache) {
ComputationCycleQuery query = new ComputationCycleQuery();
query.setCalculationConfigurationName(_calcConfigName);
query.setValueSpecifications(_gridStructure.getValueSpecifications());
ComputationResultsResponse resultsResponse = cycle.queryResults(query);
cache.put(_calcConfigName, resultsResponse.getResults(), cycle.getDuration());
Pair<ViewportResults, State> resultsAndState = _gridStructure.createResults(_viewportDefinition, cache, _latestResults);
_latestResults = resultsAndState.getFirst();
_state = resultsAndState.getSecond();