SlideShare a Scribd company logo
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

More Related Content

Similar to Design patterns - Strategy Pattern

Process Excellence Network take aways
Process Excellence Network take awaysProcess Excellence Network take aways
Process Excellence Network take aways
The Quality Group, Inc
 
Dynamic Adaptation
Dynamic AdaptationDynamic Adaptation
Dynamic Adaptation
Project Management Academy
 
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
Jean-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/4
Jean-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 Tamari
AgileSparks
 
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
Colin 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 Systems
Brent 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 Agile
CA Technologies
 
Slides: Five Data Valuation Pillars
Slides:  Five Data Valuation PillarsSlides:  Five Data Valuation Pillars
Slides: Five Data Valuation Pillars
John Furrier
 
Secret To Successful Execution Share
Secret To Successful Execution ShareSecret To Successful Execution Share
Secret To Successful Execution Share
Aquent
 
Twm Display Portfolio 0911 Dk
Twm Display Portfolio 0911 DkTwm Display Portfolio 0911 Dk
Twm Display Portfolio 0911 Dk
dwk77
 
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
Francisco Sanchez-Maroto
 

Similar to 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
 

More from Annamalai Chockalingam

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

More from 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
 

Recently uploaded

Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
FODUU
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 

Recently uploaded (20)

Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 

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