设计模式UML关系图
2021-02-20 15:43:39 0 举报
设计模式UML关系图
作者其他创作
大纲/内容
ConcreteDecoratorB
+ addBehavior( ) :void+ operator( ) :void
行为型
Adaptee
+ specificRequest( ) :void
创建型
Client
ConcreteClass
+ method1( ) :void+ method2( ) :void
依赖
<<abstract>>AbstractFactory
+ createProductA( ) :void+ createProductB( ) :void
Iterator
+ first( ) :void+ next( ) :void+ isDone( ) :bool+ currentItem( ) :Aggregate
ConcreteMediator
+ operator(int) :void+ register(Colleague *) :void
Adapter
Mediator
+ operation( ) :void+ register(Colleague *) :void
ConcreteFactory1
ConcreteFactory2
+ createProductA( ) :void+ createProductB( ) :void
ConcreteSrategyA
+ algorithm( ) :void
SimpleFactory
Singleton
结构型
Subject
+ request( ) :void
ConcreteColleagueA
+ sendmsg(int) :void+ setMediator(Mediator *) :void
Factory
+ createProduct(string) :Product
Context
+ changeState(State *) :void+ request( ) :void
泛化
ConcreteStateA
+ handle( ) :void
<<abstract>>Factory
+ factoryMethod( ) :Product
realSubject
Template
自行车
Component
+ operator( ) :void
- instance :Singleton *
+ getInstance( ) :Singleton *+ singletonOperation( ) :void<<constructor>>- Singleton( ) :void
Aggregate
+ createIterator( ) :Iterator
ConcreteIterator
Decorator
Flyweight
+ operation( ) :void
小汽车
ConcreteFactory
ConcreteSubject
- state :int
+ getState( ) :void+ setState( ) :void
Target
+ request( ) :void
ConcreteManager2
+ handleRequest( ) :void
SystemA
+ operationA( ) :void
Leaf
+ operation( ) :void
身份证
发动机
Product
ConcreteStrategyB
+ algorithm( ) :void
Bridge
<<templateMethod>>this->method1();this->method2();
Composite
+ operation( ) :void+ add(Component) :void+ remove(Component) :void+ getChild(int) :Component
Implementor
+ operatorImpl( ) :void
轮胎
Observer
+ update( ) :void
聚合
ConcreteManager1
Invoker
+ call( ) :void
ConcreteDecoratorA
Facade
+ wrapOperator( ) :void
ProductB2
+ eat( ) :void
- adaptee :Adaptee *
+ request() :void
Proxy
+ preRequest( ) :void+ request( ) :void+ afterRequest( ) :void
+ operation( ) :void+ add(Component) :void+ remove(Component) :void+ getChild(int) :Component
ConcreteBuilder
+ BuildPartA( ) :void+ BuildPartB( ) :void+ BuildPartC( ) :void
FactoryMethod
AbstractFactory
ConcreteProductB
+ use( ) :void
Colleague
+ receivemsg( ) :void+ sendmsg(int) :void+ setMediator(Mediator *) :void
UML关系图
<<abstract>>AbstractProductB
+ eat( ) :void
<<abstract>>车
Command
+ execute( ) :void
Abstraction
- pImpl :Implementor *
+ operator( ) :void<<constructor>>+ Abstraction(Implementor*) :void
ConcreteProductA
Receiver
+action( ) :void
实现
Strategy
ConcreteObserver
- observerState :int
+ update( ) :void
UnsharedConcreteFlyWeight
- allState :int
+ operation( ) :void
Builder
<<abstract>>Product
+ use( ) :void
AbstractClass
+ templateMethod( ) :void+ method1( ) :void+ method2( ) :void
组合
ProductB1
ChainofResponsibility
ConcreteColleagueB
+ sendmsg(int) :void+ setMediator(Mediator *) :void
ConcreteCommand
+ execute( ) :void
学生
SUV
SystemC
+ operationC( ) :void
SystemB
+ operationB( ) :void
ContreteImplementorB
+ operator( ) :void
班级
+ algorithm( ) :void
ConcreteFlyWeight
- intrisicState :int
+ operation( ) :void
ProductA2
+ use( ) :void
State
+ handle( ) :void
RealSubjectSubject
+ request( ) :void
ContreteImplementorA
Director
- pBuilder :Builder *
+ constuct( ) :Product*+ setBuilder(Builder*) :void
ProductA1
ConcreteComponent
+ operator( ) :void
关联
+ algorithm( ) :void+ setStrategy(Strategy *) :void
- objlist :list<Observer *>
+ attach( ) :void+ detach() :void+ notify( ) :void
Manager
- next :Manager
+ getNext( ) :Manager+ setNext(Manager) :void+ handleRequest( ) :void
RefinedAbstrction
+ operator( ) :void<<constructor>>+ RefinedAbstraction(Implementor*) :void
FlyweightFactory
+ getFlyweight(string) :void
<<abstract>>AbstractProductA
+ use( ) :void
收藏
0 条评论
回复 删除
下一页