From b91ad81b68635537d75dbdae04f344b3cf7d8a56 Mon Sep 17 00:00:00 2001 From: Petrutiu Mihai Date: Thu, 14 Jul 2016 11:04:36 +0300 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d3bdb3a..53c2a6f 100644 --- a/README.md +++ b/README.md @@ -214,8 +214,10 @@ Mediator class diagram, while it is hard to make a generic one, as it can vary, * Don't know ### f. Examples +[StockExchangeMediator]: https://github.com/MihaiTheCoder/BehavioralPatterns/blob/master/BehavioralPatternsDiagrams/Mediator/AirTraficControllerClassDiagram.PNG "stock exchange mediator class diagram" * StockExchange example: Starting class: StockExchange.StockExchangeExample * Have multiple traders Buy/Sell actions from stock exchange (simplified) + * Classs diagram: ![alt text][StockExchangeMediator] * Ground-Air traffic control example: Starting class: GroupAirTrafficControl.GroundAirTrafficControlExample * Have 4 planes that want to land on an airport, the airport has 4 lines (one not working). They all talk to air traffic control(mediator) to ask permission to land, instead of talking to each other