Adaptive analysis of sequential behaviour : oscillators as rational mechanisms