public void SetCumulator(CumulationFunc cumulationFunc) { Contract.Requires(cumulationFunc != null); this.cumulator = cumulationFunc; }