Created
May 18, 2017 11:49
-
-
Save chul-hyun/833c07e4475a4a950c3b34d47f1982e2 to your computer and use it in GitHub Desktop.
uml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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