하나의 객체가 변경사항이 생기면 다른객체에 전달하여 적절한 액션을 취할수 있도록 하는 패턴이다.주로 발행한다. 는 의미가 강함http://warmz.tistory.com/751 , http://wiki.gurubee.net/pages/viewpage.action?pageId=1507370 의 알람옵저버패턴을 보면이해가 될것이다.http://hyeonstorage.tistory.com/165http://tiboy.tistory.com/entry/Observer-Pattern자바스트립트 옵저버 패턴? http://jsfiddle.net/vasco989k/HPsFp/http://www.javajigi.net/display/SWD/ch02_observerpatternobject-c 옵저버패턴 h...
-
This is Slide 1 Title
This is slide 1 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...
-
This is Slide 2 Title
This is slide 2 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...
-
This is Slide 3 Title
This is slide 3 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...
2015년 4월 17일 금요일
1.디자인패턴-strategy pattern( 전략,전술 패턴)
Stat 패턴과 차이점이 잇는데 , 패턴내부에서 스스로 객체로 변경하는 것은 state 패턴이고외부에서 객체를 지정해줘야 상태변경이 가능한 것이 strategy 이다-------------------------------Strategy 패턴은 주요객체는 공통된 기능(메쏘드)을 상속공유한다는 전제로서, 각 객체의 행동이 독립적인 속성을 가지고자 할때 유용한 패턴이다.또한 abstract 로 선언된 공통된 기능을 포함한 추상클래스에고정적으로 선언된 독립된 인터페이스(또는 레퍼런스)를 통해 하위 속성을지정하는 것만으로도 객체의 특징속성(차는 원래 굴러다니지만, 날개를 붙이면 날라다닐수도 있다)을변경가능한것이 용이하다는 장점이 있다.이를 통해 객체의 속성을 실시간으로 변경할수도 있다.다만 최상위...