{"id":2513,"date":"2018-10-25T02:14:01","date_gmt":"2018-10-24T17:14:01","guid":{"rendered":"http:\/\/okamurax.com\/?p=2513"},"modified":"2020-05-05T01:02:50","modified_gmt":"2020-05-04T16:02:50","slug":"%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3%e4%b8%80%e8%a8%80%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=2513","title":{"rendered":"\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u4e00\u8a00\u30e1\u30e2"},"content":{"rendered":"<h2>Adapter<\/h2>\n<p>IAdapter\u304cAdaptee\u306b\u59d4\u8b72\u3002<\/p>\n<p>\u7d99\u627f\u3067\u5b9f\u73fe\u3059\u308b\u5834\u5408\u3082\u3042\u308b\u3002<\/p>\n<h2>Prototype<\/h2>\n<p>IPrototype\u304c\u81ea\u8eab\u3092\u8907\u88fd\u3002<\/p>\n<h2>Memento<\/h2>\n<p>Originator\u304cMemento\u3092\u4f5c\u6210\u3001\u5fa9\u5143\u3002<\/p>\n<h2>State\/Strategy<\/h2>\n<p>IState\/IStrategy\u3067\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306fclient\u304b\u3089IState\/IStrategy\u3092\u5229\u7528\u3057\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3082client\u5185\u3067\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3002<br \/>\n\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u6642\u306b\u6761\u4ef6\u5206\u5c90\u7b49\u3067\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u5207\u66ff\u3048\u3001\u72b6\u614b\u306e\u5207\u66ff\u3048\u3092\u5b9f\u65bd\u3002<\/p>\n<h2>Decorator<\/h2>\n<p>IComponent\u3092\u5171\u901a\u3067\u5b9f\u88c5\u3002<br \/>\nConcreateComponent\u304b\u3089Decorator\u306b\u51e6\u7406\u3092\u59d4\u8b72\u3002<\/p>\n<h2>Composite<\/h2>\n<p>IComponent\u3092\u5171\u901a\u3067\u5b9f\u88c5\u3002<br \/>\nComposite\u3068Leaf\u304c\u3042\u308b\u3002<br \/>\nCompsite\u304cIComponent\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4fdd\u6301\u3002<\/p>\n<h2>Proxy<\/h2>\n<p>ISubject\u3092\u5171\u901a\u3067\u5b9f\u88c5\u3002<br \/>\nProxy\u304c\u81ea\u5206\u3067\u51e6\u7406\u3092\u3059\u308b\u3053\u3068\u3082\u5fc5\u8981\u306a\u3089RealSubject\u306b\u51e6\u7406\u3092\u59d4\u8b72\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/p>\n<h2>Flyweight<\/h2>\n<p>FlyweightFactory\u3067Flyweigth\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3057\u81ea\u8eab\u306epool\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u4fdd\u5b58\u3002<br \/>\n\u5229\u7528\u6642\u3082\u65e2\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u5b58\u5728\u3059\u308c\u3070\u3001\u305d\u308c\u3092\u5229\u7528\u3059\u308b\u3002<\/p>\n<h2>Singleton<\/h2>\n<p>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092private\u306b\u3059\u308b\u3002<br \/>\n\u81ea\u8eab\u306estatic\u30e1\u30f3\u30d0\u30fc\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4fdd\u5b58<\/p>\n<h2>Iterator<\/h2>\n<p>IIterator\u306bIAggregate\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4fdd\u6301\u3059\u308b\u3002<br \/>\nIAggregate\u3067IIterator\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u3057\u3066\u5229\u7528\u3059\u308b\u3002<\/p>\n<h2>Template Method<\/h2>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9\u306fabstract\u30e1\u30bd\u30c3\u30c9\u306e\u307f\u4f7f\u3046\u3002<br \/>\n\u30b5\u30d6\u30af\u30e9\u30b9\u3067abstract\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3002<br \/>\n\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u304c\u30b5\u30d6\u30af\u30e9\u30b9\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3002<\/p>\n<h2>Builder<\/h2>\n<p>Director\u306fIBuilder\u3067\u5b9a\u7fa9\u3057\u305f\u30e1\u30bd\u30c3\u30c9\u306e\u307f\u4f7f\u3046\u3002<br \/>\nDirector\u304cBuilder\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3002<\/p>\n<h2>Factory Method<\/h2>\n<p>Template Method\u3068\u540c\u3058\u69cb\u9020\u3002<br \/>\n\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u304c\u5fc5\u8981\u306a\u90e8\u5206\u3092\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u5b9f\u88c5\u3002<\/p>\n<p>Factory\u62bd\u8c61\u30af\u30e9\u30b9\u306e\u4e2d\u3067\u5b9f\u88c5\u3057\u305fcreate\u3067\u62bd\u8c61createProduct\u306a\u3069\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u306e\u624b\u9806\u3092\u5b9a\u7fa9\u3057\u3001\u30b5\u30d6\u30af\u30e9\u30b9\u3067createProduct\u3092\u5b9f\u88c5\u3059\u308b\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u5f97\u308b\u3068\u3044\u3046\u70b9\u304b\u3089\u4e0b\u8a18\u306e\u3088\u3046\u306a\u65b9\u6cd5\u304c\u6709\u540d\u3002<br \/>\n(Factory Method\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u5316)<\/p>\n<p><span style=\"color: #0000ff;\">Class Test {<\/span><br \/>\n<span style=\"color: #0000ff;\">Test(int type){<\/span><br \/>\n<span style=\"color: #0000ff;\">_type = type;<\/span><br \/>\n<span style=\"color: #0000ff;\">}<\/span><br \/>\n<span style=\"color: #0000ff;\">}<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u2193<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Class Test{<\/span><br \/>\n<span style=\"color: #0000ff;\">private Test(int type){ \/\/\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092private<\/span><br \/>\n<span style=\"color: #0000ff;\">_type = type;<\/span><br \/>\n<span style=\"color: #0000ff;\">}<\/span><br \/>\n<span style=\"color: #0000ff;\">static create(int type){ \/\/\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u30e1\u30bd\u30c3\u30c9\u3092\u6e96\u5099<\/span><br \/>\n<span style=\"color: #0000ff;\">return new Test(type);<\/span><br \/>\n<span style=\"color: #0000ff;\">}<\/span><br \/>\n<span style=\"color: #0000ff;\">}<\/span><\/p>\n<h2>Abstract Factory<\/h2>\n<p>IFactory\u3067IProduct1,IProduct2\u306e\u751f\u6210\u3092\u5b9a\u7fa9\u3002<br \/>\n\u3069\u306e\u3088\u3046\u306a\u90e8\u54c1\u30bb\u30c3\u30c8(1,2)\u306a\u306e\u304b\u3092IFactory\u3067\u5b9a\u7fa9\u3057\u3001IProduct\u3067\u305d\u308c\u305e\u308c\u306e\u51e6\u7406\u3092\u5b9a\u7fa9\u3002<\/p>\n<h2>Bridge<\/h2>\n<p>\u7d99\u627f\u3068\u5b9f\u88c5\u3092\u5206\u96e2\u3002<br \/>\n\u6a5f\u80fd\u8ffd\u52a0\u306f\u3001Abstraction\u3092\u7d99\u627f\u3057\u305fRefinedAbstraction\u306b\u3002<br \/>\n\u5b9f\u88c5\u306f\u3001Abstraction\u3088\u308a\u59d4\u8b72\u3055\u308c\u305fImplementor\u306b\u3002<\/p>\n<h2>Visitor<\/h2>\n<p>IVisitor\u306f\u30c7\u30fc\u30bf\u69cb\u9020\u3054\u3068\u306evisit\u3092\u5b9f\u88c5\u3059\u308b\u3002<br \/>\nIAcceptor\u306eaccept\u306e\u4e2d\u3067visit\u3092\u547c\u3073\u3001\u81ea\u8eab\u3092visit\u306b\u6e21\u3059\u3002<br \/>\n\u30c0\u30d6\u30eb\u30c7\u30a3\u30d1\u30c3\u30c1\u3002<\/p>\n<h2>Chain of Responsibility<\/h2>\n<p>IHandler\u306f\u8ee2\u9001\u5148\u306eIHandler\u3092\u81ea\u8eab\u306b\u6301\u3061<br \/>\n\u51e6\u7406\u304c\u5b8c\u4e86\u304b\u6b21\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u304d\u4ee5\u5916\u306f\u6b21\u306b\u8ee2\u9001\u3057\u7d9a\u3051\u308b\u3002<\/p>\n<h2>Facade<\/h2>\n<p>\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u5316\u3057\u3001\u5358\u7d14\u306a\u7a93\u53e3\u3092\u63d0\u4f9b\u3002<\/p>\n<h2>Mediator<\/h2>\n<p>IMediator\u3067IColleauge\u3092\u751f\u6210\u3057\u30e1\u30f3\u30d0\u30fc\u3068\u3057\u3066\u4fdd\u6301\u3001\u3055\u3089\u306bIColleauge.SetMediator\u3067\u81ea\u8eab\u3092\u6e21\u3059\u3002<br \/>\nIColleauge\u306f\u81ea\u8eab\u306b\u5909\u66f4\u304c\u3042\u3063\u305f\u3089IMediator.ColleagueChanged\u3067IMediator\u306b\u901a\u77e5\u3002<br \/>\nIMediator\u306fColleagueChanged\u304c\u547c\u3070\u308c\u305f\u3068\u304d\u3001\u4fdd\u6301\u3059\u308bIColleauge\u3059\u3079\u3066\u306e\u72b6\u614b\u304b\u3089\u30ed\u30b8\u30c3\u30af\u3092\u5224\u65ad\u3059\u308b\u3002<\/p>\n<h2>Observer<\/h2>\n<p>ISubject\u304cIObserver\u3092\u4fdd\u6301\u3057ISubject\u304c\u5909\u5316\u3057\u305f\u3089IObserver.Update\u3092\u547c\u3076\u3002<br \/>\n\u88ab\u9a13\u8005\u304c\u89b3\u5bdf\u8005\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4fdd\u6301\u3059\u308b\u3002<\/p>\n<h2>Command<\/h2>\n<p>\u51e6\u7406\u306e\u547c\u3073\u51fa\u3057\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3059\u308b\u3002<\/p>\n<p>ICommand\u306fExecute\u3092\u5b9a\u7fa9\u3057\u3001Receiver\u3092\u4fdd\u6301\u3002<br \/>\nReceiver\u306f\u5b9f\u969b\u306eAction\u3092\u5b9a\u7fa9\u3057ICommand.Excute\u306e\u4e2d\u3067Receiver.Action\u3092\u547c\u3076\u3002<br \/>\nInvoker\u306f\u8d77\u52d5\u8005\u3067\u30dc\u30bf\u30f3\u306e\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3002<\/p>\n<h2>Interpreter<\/h2>\n<p>\u72ec\u81ea\u69cb\u6587\u306e\u6587\u5b57\u5217\u3092Context\u306b\u6e21\u3057\u30c8\u30fc\u30af\u30f3\u89e3\u6790\u3059\u308b\u3002<br \/>\nContext\u306fhasNext\u3084nextToken\u306a\u3069\u3067\u89e3\u6790\u3057\u305f\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3067\u304d\u308b\u3002<\/p>\n<p>\u69cb\u6587\u89e3\u6790\u30af\u30e9\u30b9\u306f\u6587\u6cd5\u3054\u3068\u306bIAbstractExpression\u5b9f\u88c5\u3057\u305f<br \/>\nTerminalExpression\u3001NonterminalExpression\u3092\u6e96\u5099\u3002<br \/>\nNonterminalExpression1\u3001NonterminalExpression2\u3001TerminalExpression<br \/>\n\u306e\u3088\u3046\u306b\u305d\u308c\u305e\u308c\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>\u5b9f\u969b\u306f\u3001<br \/>\nNonterminalExpression1.Parse(new Context(\u6587\u5b57\u5217))\u306e\u3088\u3046\u306b\u6e21\u3055\u308c\u308b\u3068\u3001<br \/>\nNonterminalExpression1\u306e\u5185\u90e8\u3067new NonterminalExpression2.Parse(context)<br \/>\n\u306e\u3088\u3046\u306b\u6700\u5f8c\u306eTerminalExpression\u307e\u3067\u5185\u90e8\u3067\u547c\u3076\u3002<\/p>\n<h2>Null Object<\/h2>\n<p>IAbstraction\u3092RealObject\u3068NullObject\u304c\u5b9f\u88c5\u3002<br \/>\nIAbstraction.Request()\u3067RealObject\u3092\u8fd4\u3059\u304c\u3001Request()\u304cNull\u3092\u8fd4\u3059\u5834\u5408\u306fNullObject\u3092\u8fd4\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adapter IAdapter\u304cAdaptee\u306b\u59d4\u8b72\u3002 \u7d99\u627f\u3067\u5b9f\u73fe\u3059\u308b\u5834\u5408\u3082\u3042\u308b\u3002 Prototype IPrototype\u304c\u81ea\u8eab\u3092\u8907\u88fd\u3002 Memento Originator\u304cMemento\u3092\u4f5c\u6210\u3001\u5fa9\u5143\u3002 State &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=2513\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u4e00\u8a00\u30e1\u30e2&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[144],"class_list":["post-2513","post","type-post","status-publish","format-standard","hentry","category-1","tag-144"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/2513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2513"}],"version-history":[{"count":11,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/2513\/revisions"}],"predecessor-version":[{"id":2549,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/2513\/revisions\/2549"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}