SlideShare una empresa de Scribd logo
1 de 8
QmPe
                                                initiative




STRATEGY PATTERN explained !




                                 Prepared by Annamalai C


           Copyright 2006-2011
Strategy Pattern in Real Life


File Storage is the required output.
There could be different strategies applied for File Storage
Stored into Open Cupboards, File Cabinet, Digital Storage




Strategy Pattern is a behavioral pattern.
Strategy




                                   Copyright 2006-2011
Strategy Pattern in Java




                           Copyright 2006-2011
Real Life vs Java Object




                           Copyright 2006-2011
Real Life vs Java Object




                           Copyright 2006-2011
How Strategy Pattern works in Real Life ?


Boss decides to arrange and store the files.
Strategy is then decided based on Cost, Durability etc.




                                   Copyright 2006-2011
How Strategy Pattern works in Java ?




                               Copyright 2006-2011
THANK YOU


                   Please visit
www.eclipseinclips.com | www.ancitconsulting.com

     Write to us on info@ancitconsulting.com




                  QmPe
                  initiative


                   Copyright 2006-2011

Más contenido relacionado

Similar a Design patterns - Strategy Pattern

Casewise EA Foundation (EN) Episode 1/4
Casewise EA Foundation (EN) Episode 1/4Casewise EA Foundation (EN) Episode 1/4
Casewise EA Foundation (EN) Episode 1/4Jean-Patrick Ascenci
 
Florida Crystals Leverages SAP-EWM to Optimize Business Operations
Florida Crystals Leverages SAP-EWM to Optimize Business Operations Florida Crystals Leverages SAP-EWM to Optimize Business Operations
Florida Crystals Leverages SAP-EWM to Optimize Business Operations Capgemini
 
Casewise EA Foundation (EN) Episode 0/4
Casewise EA Foundation (EN) Episode 0/4Casewise EA Foundation (EN) Episode 0/4
Casewise EA Foundation (EN) Episode 0/4Jean-Patrick Ascenci
 
SAFe (Scaled Agile Framework) 5 mins overview - Roni Tamari
SAFe (Scaled Agile Framework) 5 mins overview - Roni TamariSAFe (Scaled Agile Framework) 5 mins overview - Roni Tamari
SAFe (Scaled Agile Framework) 5 mins overview - Roni TamariAgileSparks
 
Be Agile Scale Up Stay Lean for AgileNCR India April 4, 2014
Be Agile Scale Up Stay Lean for AgileNCR India  April 4, 2014Be Agile Scale Up Stay Lean for AgileNCR India  April 4, 2014
Be Agile Scale Up Stay Lean for AgileNCR India April 4, 2014Colin O'Neill
 
at ADAPT: AgileEVM Delivering Value within Constrained Systems
at ADAPT: AgileEVM Delivering Value within Constrained Systemsat ADAPT: AgileEVM Delivering Value within Constrained Systems
at ADAPT: AgileEVM Delivering Value within Constrained SystemsBrent Barton
 
Removing the Friction Between Project and Portfolio Management and Agile
Removing the Friction Between Project and Portfolio Management and AgileRemoving the Friction Between Project and Portfolio Management and Agile
Removing the Friction Between Project and Portfolio Management and AgileCA Technologies
 
Slides: Five Data Valuation Pillars
Slides:  Five Data Valuation PillarsSlides:  Five Data Valuation Pillars
Slides: Five Data Valuation PillarsJohn Furrier
 
Secret To Successful Execution Share
Secret To Successful Execution ShareSecret To Successful Execution Share
Secret To Successful Execution ShareAquent
 
Twm Display Portfolio 0911 Dk
Twm Display Portfolio 0911 DkTwm Display Portfolio 0911 Dk
Twm Display Portfolio 0911 Dkdwk77
 
Productivity-Comparison-Pega-7-vs-Java-EE-FINAL
Productivity-Comparison-Pega-7-vs-Java-EE-FINALProductivity-Comparison-Pega-7-vs-Java-EE-FINAL
Productivity-Comparison-Pega-7-vs-Java-EE-FINALFrancisco Sanchez-Maroto
 

Similar a Design patterns - Strategy Pattern (13)

Process Excellence Network take aways
Process Excellence Network take awaysProcess Excellence Network take aways
Process Excellence Network take aways
 
Dynamic Adaptation
Dynamic AdaptationDynamic Adaptation
Dynamic Adaptation
 
Casewise EA Foundation (EN) Episode 1/4
Casewise EA Foundation (EN) Episode 1/4Casewise EA Foundation (EN) Episode 1/4
Casewise EA Foundation (EN) Episode 1/4
 
Florida Crystals Leverages SAP-EWM to Optimize Business Operations
Florida Crystals Leverages SAP-EWM to Optimize Business Operations Florida Crystals Leverages SAP-EWM to Optimize Business Operations
Florida Crystals Leverages SAP-EWM to Optimize Business Operations
 
Casewise EA Foundation (EN) Episode 0/4
Casewise EA Foundation (EN) Episode 0/4Casewise EA Foundation (EN) Episode 0/4
Casewise EA Foundation (EN) Episode 0/4
 
SAFe (Scaled Agile Framework) 5 mins overview - Roni Tamari
SAFe (Scaled Agile Framework) 5 mins overview - Roni TamariSAFe (Scaled Agile Framework) 5 mins overview - Roni Tamari
SAFe (Scaled Agile Framework) 5 mins overview - Roni Tamari
 
Be Agile Scale Up Stay Lean for AgileNCR India April 4, 2014
Be Agile Scale Up Stay Lean for AgileNCR India  April 4, 2014Be Agile Scale Up Stay Lean for AgileNCR India  April 4, 2014
Be Agile Scale Up Stay Lean for AgileNCR India April 4, 2014
 
at ADAPT: AgileEVM Delivering Value within Constrained Systems
at ADAPT: AgileEVM Delivering Value within Constrained Systemsat ADAPT: AgileEVM Delivering Value within Constrained Systems
at ADAPT: AgileEVM Delivering Value within Constrained Systems
 
Removing the Friction Between Project and Portfolio Management and Agile
Removing the Friction Between Project and Portfolio Management and AgileRemoving the Friction Between Project and Portfolio Management and Agile
Removing the Friction Between Project and Portfolio Management and Agile
 
Slides: Five Data Valuation Pillars
Slides:  Five Data Valuation PillarsSlides:  Five Data Valuation Pillars
Slides: Five Data Valuation Pillars
 
Secret To Successful Execution Share
Secret To Successful Execution ShareSecret To Successful Execution Share
Secret To Successful Execution Share
 
Twm Display Portfolio 0911 Dk
Twm Display Portfolio 0911 DkTwm Display Portfolio 0911 Dk
Twm Display Portfolio 0911 Dk
 
Productivity-Comparison-Pega-7-vs-Java-EE-FINAL
Productivity-Comparison-Pega-7-vs-Java-EE-FINALProductivity-Comparison-Pega-7-vs-Java-EE-FINAL
Productivity-Comparison-Pega-7-vs-Java-EE-FINAL
 

Más de Annamalai Chockalingam

Más de Annamalai Chockalingam (11)

Hello World e4 Application Part 7
Hello World e4 Application Part 7Hello World e4 Application Part 7
Hello World e4 Application Part 7
 
Hello World e4 Application Part 6
Hello World e4 Application Part 6Hello World e4 Application Part 6
Hello World e4 Application Part 6
 
Hello World e4 Application Part 2
Hello World e4 Application   Part 2Hello World e4 Application   Part 2
Hello World e4 Application Part 2
 
Hello World e4 Application Part 3
Hello World e4 Application  Part 3Hello World e4 Application  Part 3
Hello World e4 Application Part 3
 
Design patterns - Observer Pattern
Design patterns - Observer PatternDesign patterns - Observer Pattern
Design patterns - Observer Pattern
 
Design patterns - Factory Pattern
Design patterns - Factory PatternDesign patterns - Factory Pattern
Design patterns - Factory Pattern
 
Design patterns - Decorator pattern
Design patterns -   Decorator patternDesign patterns -   Decorator pattern
Design patterns - Decorator pattern
 
Design patterns - Abstract Factory Pattern
Design patterns  - Abstract Factory PatternDesign patterns  - Abstract Factory Pattern
Design patterns - Abstract Factory Pattern
 
Eclipse Spykit Project
Eclipse Spykit ProjectEclipse Spykit Project
Eclipse Spykit Project
 
Setting up Sphinx Development Environment
Setting up Sphinx Development EnvironmentSetting up Sphinx Development Environment
Setting up Sphinx Development Environment
 
Eclipse Ecosystem in India
Eclipse Ecosystem in IndiaEclipse Ecosystem in India
Eclipse Ecosystem in India
 

Último

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 

Último (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

Design patterns - Strategy Pattern

  • 1. QmPe initiative STRATEGY PATTERN explained ! Prepared by Annamalai C Copyright 2006-2011
  • 2. Strategy Pattern in Real Life File Storage is the required output. There could be different strategies applied for File Storage Stored into Open Cupboards, File Cabinet, Digital Storage Strategy Pattern is a behavioral pattern. Strategy Copyright 2006-2011
  • 3. Strategy Pattern in Java Copyright 2006-2011
  • 4. Real Life vs Java Object Copyright 2006-2011
  • 5. Real Life vs Java Object Copyright 2006-2011
  • 6. How Strategy Pattern works in Real Life ? Boss decides to arrange and store the files. Strategy is then decided based on Cost, Durability etc. Copyright 2006-2011
  • 7. How Strategy Pattern works in Java ? Copyright 2006-2011
  • 8. THANK YOU Please visit www.eclipseinclips.com | www.ancitconsulting.com Write to us on info@ancitconsulting.com QmPe initiative Copyright 2006-2011