Skip to content
Nomnoml templates

Strategy Pattern (Nomnoml)

A context choosing between strategies.

Template previewNomnoml
[Context]o->[Strategy|+execute()] [ConcreteA]-:>[Strategy] [ConcreteB]-:>[Strategy] Context Strategy +execute() ConcreteA ConcreteB

What this template contains

Source
3 lines

Make it your own.

[Context]o->[Strategy|+execute()]
[ConcreteA]-:>[Strategy]
[ConcreteB]-:>[Strategy]