Skip to content

Instantly share code, notes, and snippets.

@chul-hyun
Created May 18, 2017 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chul-hyun/833c07e4475a4a950c3b34d47f1982e2 to your computer and use it in GitHub Desktop.
Save chul-hyun/833c07e4475a4a950c3b34d47f1982e2 to your computer and use it in GitHub Desktop.
uml
class Context{
- StrategyA strategyA
- StrategyB strategyB
}
package PackageStrategyA {
interface StrategyA{
+ excute()
}
class ConcreteStrategyA1{
+ excute()
}
class ConcreteStrategyA2{
+ excute()
}
}
package PackageStrategyB {
interface StrategyB{
+ excute()
}
class ConcreteStrategyB1{
+ excute()
}
class ConcreteStrategyB2{
+ excute()
}
class ConcreteStrategyB3{
+ excute()
}
}
Context *-- StrategyA
StrategyA <|.. ConcreteStrategyA1
StrategyA <|.. ConcreteStrategyA2
Context *-- StrategyB
StrategyB <|.. ConcreteStrategyB1
StrategyB <|.. ConcreteStrategyB2
StrategyB <|.. ConcreteStrategyB3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment