pjf57 / mat-server-side

Server side code for Market Analysis Toolkit
2 stars 0 forks source link

Need to determine simulator timebase #5

Closed pjf57 closed 12 years ago

pjf57 commented 12 years ago

Simulator should produce relative timing that is similar to the hardware. In particular, the ratio of latencies between different elements should be the same in the simulator as the hw, and rate of data production by a market feed element should bear some relationship to the processing rate of elements and the tick rate of the clock.

pjf57 commented 12 years ago

make each event have a latency in some internal timebase period. The Router can accept events and place them in buckets according to their validiy time. It can then receive clock ticks and send out events from each bucket in time order.

pjf57 commented 12 years ago

implemented with Clock, Router, LookupHandler classes. Committed to sim-clk-time branch