try {
pulseTimeSeries.clear();
WatchDataSource pulse = service.fetch("pulse");
for(Calculable c : pulse.getCalculable()) {
lastPulse = (CalculablePatient)c;
pulseTimeSeries.addOrUpdate(new FixedMillisecond(c.getWhen()), c.getValue());
}
} catch (RemoteException e) {
e.printStackTrace();
}
try {
temperatureTimeSeries.clear();
WatchDataSource temperature = service.fetch("temperature");
for(Calculable c : temperature.getCalculable()) {
lastTemperature = c;
temperatureTimeSeries.add(new FixedMillisecond(c.getWhen()), c.getValue());
}
} catch (RemoteException e) {
e.printStackTrace();
}
}