Outline of OscillationServiceBase and downsampling algorithm finished.
Still need to implements subroutines.