행동 패턴 (Behavioral pattern)이란?
소프트웨어 공학에서, 행동패턴이란, 객체 간의 일반적인 커뮤니케이션 패턴을 식별하는 디자인 패턴이다.
그렇게 함으로써, 행동패턴은 커뮤니케이션 수행의 유연성을 높인다.
https://sourcemaking.com/design_patterns/interpreter
행동 패턴의 예시
- 책임 연쇄 (Chain of responsibility)
연쇄적으로 연결된 객체들간의 요청을 전달하는 방법이다. - 커맨드 (Command)
명령요청을 객체로 캡슐화하는 방법이다. - 인터프리터 (Interpreter)
프로그램에 언어요소를 포함하는 방법이다. - 반복자 (Iterator)
콜렉션의 요소에 순차적으로 접근하는 방법이다. - 중재자 (Mediator)
클래스간의 단순화된 커뮤니케이션을 정의하는 방법이다. - 메멘토 (Memento)
객체의 내부상태를 캡쳐하고 복원하는 방법이다. - 널 객체 (Null Object)
객체의 기본값으로 작동하도록 디자인하는 방법이다. - 옵서버 (Observer)
여러 클래스들의 변경사항을 알리는 방법이다. - 상태 (State)
객체의 상태가 변화했을때, 객체의 동작을 변경하는 방법이다. - 전략 (Strategy)
클래스 내부의 알고리즘을 캡슐화하는 방법이다. - 템플릿 메소드 (Template method)
알고리즘의 구체적인 단계를 하위클래스에 연기하는 방법이다. - 비지터 (Visitor)
클래스를 변경하지 않고 새로운 작업을 정의하는 방법이다.
https://en.wikipedia.org/wiki/Behavioral_pattern
Software design pattern - Wikipedia
From Wikipedia, the free encyclopedia Jump to navigation Jump to search Reusable solution to a commonly occurring software problem In software engineering, a software design pattern is a general, reusable solution to a commonly occurring problem within a g
en.wikipedia.org
'IT > Design Patterns' 카테고리의 다른 글
[Design Pattern] 빌더 (Builder) (0) | 2021.08.07 |
---|---|
[Design Pattern] 추상 팩토리 (Abstract factory) (0) | 2021.07.25 |
[Design Pattern] 구조패턴(Structural pattern) (0) | 2021.07.18 |
[Design Pattern] 생성패턴(Creational pattern) (0) | 2021.07.03 |
디자인패턴(Design Patterns) (0) | 2021.06.26 |