Wednesday, October 12, 2011

Did more decoupling work on the media server

Yesterday, I did some more decoupling work on the Dexter media server. Basically, I added multiple uses of the http://www.blogger.com/img/blank.gifObserver Design Pattern which means that the timer class and the video renderer class are more decoupled from each other. Also the input class is more decoupled. When timing events and input events occur, they are broadcast to generic "observers" of which there can be an arbitrary amount. Before, they were broadcast to specific class instances which caused undesirable coupling.

No comments:

Post a Comment