1 / 7

ITTF Object Communication

ITTF Object Communication. Mike Miller Yale University. Outline. Introduce StiIOBroker Introduce Observer/Subscriber Pattern List objects that communicate via Observer/Subscriber. StiIOBroker. Goal: centralize all dynamic parameters in one place class StiIOBroker

romeo
Download Presentation

ITTF Object Communication

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ITTF Object Communication Mike Miller Yale University

  2. Outline • Introduce StiIOBroker • Introduce Observer/Subscriber Pattern • List objects that communicate via Observer/Subscriber

  3. StiIOBroker • Goal: centralize all dynamic parameters in one place • class StiIOBroker • Abstract class to define get/set methods • Singleton • class StiRootIOBroker : public StiIOBroker • Available at the root prompt • Currently used to pass info at the macro level • class StiMySqlIOBroker : public StiIOBroker • Not yet implemented

  4. a=50 b=30 c=20 notification requests Subject/Observer Pattern (I) Guarantee dynamic propagation of information Define a one to many relationship Observer Observer Observer Subject

  5. class Subscriber { public: add(Observer*); detach(Observer*); notify(); private: vector<Observer*> mVec; }; Subject/Observer Pattern (II) class Observer { public: update(Subject*)=0; private: Subject* mSubject; }; Simply derive from these classes and dynamic updates are guaranteed!

  6. Subject StiIOBroker Observer Observer StiKalmanTrackFinder StiTrackMerger Observer Observer StiTrackFilter StiTrackSeedFinder ITTF Object Communication

  7. Conclusions • StiIOBroker defines the only entrance for run-time parameters • Update of StiMySqlBroker in StiMaker::InitRun() will fully propagate through the entire object structure

More Related