{"id":24716868,"url":"https://github.com/samyam81/observer_designer","last_synced_at":"2026-05-09T13:03:13.137Z","repository":{"id":219568696,"uuid":"749363210","full_name":"samyam81/Observer_Designer","owner":"samyam81","description":"Observer design is a methodology in control systems engineering that involves designing an observer to estimate the unmeasurable internal states of a system based on available measurements.","archived":false,"fork":false,"pushed_at":"2024-05-21T06:50:41.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T09:24:49.429Z","etag":null,"topics":["cpp","csharp","java","observer-design-pattern"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samyam81.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-28T11:15:27.000Z","updated_at":"2024-06-23T12:07:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0f76bdb-4cb9-466b-9add-ff4c6c9663ee","html_url":"https://github.com/samyam81/Observer_Designer","commit_stats":null,"previous_names":["samyam81/observer_designer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samyam81/Observer_Designer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FObserver_Designer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FObserver_Designer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FObserver_Designer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FObserver_Designer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samyam81","download_url":"https://codeload.github.com/samyam81/Observer_Designer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FObserver_Designer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32820171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","csharp","java","observer-design-pattern"],"created_at":"2025-01-27T09:14:29.875Z","updated_at":"2026-05-09T13:03:13.095Z","avatar_url":"https://github.com/samyam81.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Observer Designer\n\nThis repository contains implementations of the Observer design pattern in various programming languages. The Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.\n\n## Java Implementation\n\n### `ObserverDesign` Package\n\n#### `Channel` Class\n- Represents a channel that subscribers can subscribe to.\n- Methods:\n  - `Subscribe(Subscriber sub)`: Subscribes a subscriber to the channel.\n  - `UnSubscribe(Subscriber sub)`: Unsubscribes a subscriber from the channel.\n  - `NotifySubscriber()`: Notifies all subscribers when an upload occurs.\n  - `Upload(String title)`: Uploads a new video with the given title.\n\n#### `Subscriber` Interface\n- Represents an observer that can subscribe to channels.\n- Methods:\n  - `Update()`: Method to be implemented by concrete subscribers to update them about changes.\n  - `SubscribeChannel(Channel ch)`: Subscribes the observer to a specific channel.\n\n#### `Main` Class\n- Contains the main method for testing the Observer pattern implementation.\n\n## C++ Implementation\n\n### `ObserverDesign` Namespace\n\n#### `IObserver` Class\n- Abstract class representing an observer.\n- Methods:\n  - `Update()`: Virtual method to be overridden by concrete observers.\n\n#### `Channel` Class\n- Represents a channel that observers can subscribe to.\n- Methods:\n  - `Subscribe(IObserver* observer)`: Subscribes an observer to the channel.\n  - `UnSubscribe(IObserver* observer)`: Unsubscribes an observer from the channel.\n  - `NotifyObservers()`: Notifies all subscribed observers.\n  - `Upload(std::string title)`: Uploads a new video with the given title.\n\n#### `Subscriber` Class\n- Represents a subscriber that observes a channel.\n- Methods:\n  - `Update()`: Updates the subscriber about changes in the channel.\n\n#### `Main` Function\n- Contains the main function for testing the C++ Observer pattern implementation.\n\n## C# Implementation\n\n### `ObserverDesign` Namespace\n\n#### `Channel` Class\n- Represents a channel that subscribers can subscribe to.\n- Methods:\n  - `Subscribe(Subscriber sub)`: Subscribes a subscriber to the channel.\n  - `UnSubscribe(Subscriber sub)`: Unsubscribes a subscriber from the channel.\n  - `NotifySubscriber()`: Notifies all subscribers when an upload occurs.\n  - `Upload(String title)`: Uploads a new video with the given title.\n\n#### `IObserver` Interface\n- Represents an observer that can subscribe to channels.\n- Methods:\n  - `Update()`: Method to be implemented by concrete subscribers to update them about changes.\n  - `SubscribeChannel(Channel ch)`: Subscribes the observer to a specific channel.\n\n#### `Subscriber` Class\n- Represents a subscriber that observes a channel.\n- Methods:\n  - `Update()`: Updates the subscriber about changes in the channel.\n\n#### `Youtube` Class\n- Contains the main method for testing the C# Observer pattern implementation.\n\nFeel free to explore each language-specific implementation for more details and usage examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyam81%2Fobserver_designer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyam81%2Fobserver_designer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyam81%2Fobserver_designer/lists"}