private void AddNewValuesToBuffer() { ITimeSpaceValueSet decoratedOutputItemValues = (ITimeSpaceValueSet)Adaptee.Values; if (decoratedOutputItemValues == null) { throw new Exception("AdaptedOutput \"" + Id + "\" did not receive values from Decorated OutputItem \"" + Adaptee.Id + "\""); } for (int t = 0; t < _adaptee.TimeSet.Times.Count; t++) { ITime time = _adaptee.TimeSet.Times[t]; IList elementSetValues = decoratedOutputItemValues.GetElementValuesForTime(t); _buffer.SetOrAddValues(time, elementSetValues); } }