# HG changeset patch # User Kazuma Takeda # Date 1486864003 -32400 # Node ID 49607e7d88714fe88894532f733810dc5aafbbac # Parent 7313ae32fa21efa1f1e45f0a614914ce97cf3c5f Add Scene, Item Tree Image. Update main.tex << CAP theorem etc. diff -r 7313ae32fa21 -r 49607e7d8871 paper/images/ItemTree.pdf Binary file paper/images/ItemTree.pdf has changed diff -r 7313ae32fa21 -r 49607e7d8871 paper/images/ItemTree_sub.graffle Binary file paper/images/ItemTree_sub.graffle has changed diff -r 7313ae32fa21 -r 49607e7d8871 paper/images/ItemTree_sub.pdf Binary file paper/images/ItemTree_sub.pdf has changed diff -r 7313ae32fa21 -r 49607e7d8871 paper/images/Tree.graffle --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paper/images/Tree.graffle Sun Feb 12 10:46:43 2017 +0900 @@ -0,0 +1,2269 @@ + + + + + ActiveLayerIndex + 0 + ApplicationVersion + + com.omnigroup.OmniGraffle6 + 169.23.0.276662 + + AutoAdjust + + BackgroundGraphic + + Bounds + {{0, 0}, {1677.8267011642456, 1565.779541015625}} + Class + SolidGraphic + ID + 2 + Style + + stroke + + Draws + NO + + + + BaseZoom + 0 + CanvasOrigin + {0, 0} + ColorProfiles + + + data + + AAACJGFwcGwEAAAAbW50clJHQiBYWVogB98ACgAOAA0ACAA5YWNz + cEFQUEwAAAAAQVBQTAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA + 0y1hcHBs5bsOmGe9Rs1LvkRuvRt1mAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAKZGVzYwAAAPwAAABlY3BydAAAAWQAAAAj + d3RwdAAAAYgAAAAUclhZWgAAAZwAAAAUZ1hZWgAAAbAAAAAUYlhZ + WgAAAcQAAAAUclRSQwAAAdgAAAAgY2hhZAAAAfgAAAAsYlRSQwAA + AdgAAAAgZ1RSQwAAAdgAAAAgZGVzYwAAAAAAAAALRGlzcGxheSBQ + MwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAB0ZXh0AAAAAENvcHlyaWdodCBBcHBsZSBJbmMuLCAyMDE1 + AABYWVogAAAAAAAA81EAAQAAAAEWzFhZWiAAAAAAAACD3wAAPb// + //+7WFlaIAAAAAAAAEq/AACxNwAACrlYWVogAAAAAAAAKDgAABEL + AADIuXBhcmEAAAAAAAMAAAACZmYAAPKwAAANUAAAE7YAAAn8c2Yz + MgAAAAAAAQxCAAAF3v//8yYAAAeTAAD9kP//+6L///2jAAAD3AAA + wG4= + + space + 0c23c45ae9b201f35db0195c7ae905477d83da5b + + + ColumnAlign + 1 + ColumnSpacing + 36 + CreationDate + 2016-11-09 22:49:51 +0000 + Creator + sister_clown + DisplayScale + 1.0000 cm = 1.0000 cm + GraphDocumentVersion + 12 + GraphicsList + + + Class + LineGraphic + FontInfo + + Font + Helvetica + Size + 12 + + Head + + ID + 62 + + ID + 90 + Points + + {630.63779960927059, 995.13387186808927} + {437.10232331438374, 888.72441829114518} + + Style + + shadow + + Draws + NO + + stroke + + HeadArrow + 0 + Legacy + + LineType + 1 + TailArrow + 0 + + + Tail + + ID + 86 + Info + 2 + + + + Bounds + {{477.63779960927059, 1093.1338718680836}, {306.00000000000006, 71}} + Class + ShapedGraphic + FitText + Vertical + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 20 + + ID + 89 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs40 \cf0 NodeName : Item\ +Type : string} + + TextRelativeArea + {{0, 0}, {1, 1}} + + + Bounds + {{599.63779960926934, 1002.1338718680892}, {62, 47}} + Class + ShapedGraphic + FitText + YES + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 24 + + ID + 88 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs48 \cf0 Item} + + TextRelativeArea + {{0, 0}, {1, 1}} + Wrap + NO + + + Bounds + {{477.63779960927059, 1048.1338718680877}, {306.00000000000006, 160}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 87 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{477.63779960927059, 995.13387186808927}, {306.00000000000006, 53}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 86 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Class + LineGraphic + FontInfo + + Font + Helvetica + Size + 12 + + Head + + ID + 62 + Info + 1 + + ID + 85 + Points + + {281.97637912297813, 995.13387186808916} + {437.10232331438374, 888.72441829114518} + + Style + + shadow + + Draws + NO + + stroke + + HeadArrow + 0 + Legacy + + LineType + 1 + TailArrow + 0 + + + Tail + + ID + 81 + + + + Bounds + {{128.9763791229781, 1093.1338718680834}, {306.00000000000006, 71}} + Class + ShapedGraphic + FitText + Vertical + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 20 + + ID + 84 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs40 \cf0 NodeName : Item\ +Type : string} + + TextRelativeArea + {{0, 0}, {1, 1}} + + + Bounds + {{250.97637912297628, 1002.133871868089}, {62, 47}} + Class + ShapedGraphic + FitText + YES + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 24 + + ID + 83 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs48 \cf0 Item} + + TextRelativeArea + {{0, 0}, {1, 1}} + Wrap + NO + + + Bounds + {{128.9763791229781, 1048.1338718680877}, {306.00000000000006, 160}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 82 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{128.9763791229781, 995.13387186808916}, {306.00000000000006, 53}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 81 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Class + LineGraphic + FontInfo + + Font + Helvetica + Size + 12 + + Head + + ID + 76 + Info + 2 + + ID + 80 + Points + + {1056.4724076741804, 577.31496471420087} + {1240.7243778498619, 670.39370686998552} + + Style + + shadow + + Draws + NO + + stroke + + HeadArrow + 0 + Legacy + + LineType + 1 + TailArrow + 0 + + + Tail + + ID + 67 + + + + Bounds + {{1087.7243778498619, 768.39370686998552}, {306.00000000000006, 71}} + Class + ShapedGraphic + FitText + Vertical + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 20 + + ID + 79 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs40 \cf0 NodeName : Item\ +Type : string} + + TextRelativeArea + {{0, 0}, {1, 1}} + + + Bounds + {{1209.7243778498587, 677.39370686998552}, {62, 47}} + Class + ShapedGraphic + FitText + YES + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 24 + + ID + 78 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs48 \cf0 Item} + + TextRelativeArea + {{0, 0}, {1, 1}} + Wrap + NO + + + Bounds + {{1087.7243778498619, 723.39370686998575}, {306.00000000000006, 160}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 77 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{1087.7243778498619, 670.39370686998552}, {306.00000000000006, 53}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 76 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Class + LineGraphic + Head + + ID + 71 + + ID + 75 + Points + + {1056.0441338134281, 577.57299862708101} + {901.98421729610766, 670.39370686998552} + + Style + + shadow + + Draws + NO + + stroke + + HeadArrow + 0 + Join + 0 + Legacy + + TailArrow + 0 + + + Tail + + ID + 67 + + + + Bounds + {{748.98421729610766, 768.39370686998552}, {306.00000000000006, 71}} + Class + ShapedGraphic + FitText + Vertical + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 20 + + ID + 74 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs40 \cf0 NodeName : Item\ +Type : string} + + TextRelativeArea + {{0, 0}, {1, 1}} + + + Bounds + {{870.98421729610629, 677.39370686998552}, {62, 47}} + Class + ShapedGraphic + FitText + YES + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 24 + + ID + 73 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs48 \cf0 Item} + + TextRelativeArea + {{0, 0}, {1, 1}} + Wrap + NO + + + Bounds + {{748.98421729610766, 723.39370686998575}, {306.00000000000006, 160}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 72 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{748.98421729610766, 670.39370686998552}, {306.00000000000006, 53}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 71 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Class + LineGraphic + Head + + ID + 66 + + ID + 70 + Points + + {812.59036717684864, 319.6075886823657} + {903.47240767418043, 390.81496471420076} + + Style + + shadow + + Draws + NO + + stroke + + HeadArrow + 0 + Join + 0 + Legacy + + TailArrow + 0 + + + Tail + + ID + 38 + + + + Bounds + {{903.47240767418032, 461.81496471420087}, {306.00000000000006, 41}} + Class + ShapedGraphic + FitText + Vertical + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 20 + + ID + 69 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs40 \cf0 NodeName : Stage} + + TextRelativeArea + {{0, 0}, {1, 1}} + + + Bounds + {{1016.9724076741794, 371.31496471420076}, {79, 47}} + Class + ShapedGraphic + FitText + YES + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 24 + + ID + 68 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs48 \cf0 Stage} + + TextRelativeArea + {{0, 0}, {1, 1}} + Wrap + NO + + + Bounds + {{903.47240767418032, 417.31496471420087}, {306.00000000000006, 160}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 67 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{903.47240767418032, 364.31496471420076}, {306.00000000000006, 53}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 66 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Class + LineGraphic + Head + + ID + 61 + + ID + 65 + Points + + {577.41728521740424, 577.31496471420087} + {437.10232331438374, 675.72441829114496} + + Style + + shadow + + Draws + NO + + stroke + + HeadArrow + 0 + Join + 0 + Legacy + + TailArrow + 0 + + + Tail + + ID + 58 + + + + Bounds + {{284.10232331438374, 773.72441829114496}, {306.00000000000006, 41}} + Class + ShapedGraphic + FitText + Vertical + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 20 + + ID + 64 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs40 \cf0 NodeName : HaveItem} + + TextRelativeArea + {{0, 0}, {1, 1}} + + + Bounds + {{376.10232331438294, 682.72441829114496}, {122, 47}} + Class + ShapedGraphic + FitText + YES + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 24 + + ID + 63 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs48 \cf0 HaveItem} + + TextRelativeArea + {{0, 0}, {1, 1}} + Wrap + NO + + + Bounds + {{284.10232331438374, 728.72441829114518}, {306.00000000000006, 160}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 62 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{284.10232331438374, 675.72441829114496}, {306.00000000000006, 53}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 61 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Class + LineGraphic + Head + + ID + 55 + + ID + 56 + Points + + {812.19678772401733, 319.29921356289429} + {730.41728521740424, 390.81496471420076} + + Style + + shadow + + Draws + NO + + stroke + + HeadArrow + 0 + Join + 0 + Legacy + + TailArrow + 0 + + + Tail + + ID + 38 + Info + 1 + + + + Bounds + {{659.19678772401733, 204.29921356289435}, {306.00000000000006, 41}} + Class + ShapedGraphic + FitText + Vertical + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 20 + + ID + 40 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs40 \cf0 NodeName : Scene} + + TextRelativeArea + {{0, 0}, {1, 1}} + + + Bounds + {{770.69678772401733, 112.29921356289415}, {83, 47}} + Class + ShapedGraphic + FitText + YES + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 24 + + ID + 39 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs48 \cf0 Scene} + + TextRelativeArea + {{0, 0}, {1, 1}} + Wrap + NO + + + Bounds + {{659.19678772401733, 159.29921356289429}, {306.00000000000006, 160}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 38 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{659.19678772401733, 106.29921356289404}, {306.00000000000006, 53}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 37 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{424.41728521740424, 462.31496471420076}, {306.00000000000006, 71}} + Class + ShapedGraphic + FitText + Vertical + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 20 + + ID + 57 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs40 \cf0 NodeName : Player\ +HP : int} + + TextRelativeArea + {{0, 0}, {1, 1}} + + + Bounds + {{535.91728521740367, 371.31496471420076}, {83, 47}} + Class + ShapedGraphic + FitText + YES + Flow + Resize + FontInfo + + Font + HiraKakuPro-W3 + Size + 24 + + ID + 54 + Shape + Circle + Style + + fill + + Color + + b + 0.97457300000000002 + g + 0.99806399999999995 + r + 1 + + Draws + NO + + shadow + + Color + + a + 0.75 + b + 0.94523000000000001 + g + 0.98711599999999999 + r + 1 + + Draws + NO + + stroke + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1504\cocoasubrtf810 +{\fonttbl\f0\fnil\fcharset128 HiraKakuPro-W3;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs48 \cf0 Player} + + TextRelativeArea + {{0, 0}, {1, 1}} + Wrap + NO + + + Bounds + {{424.41728521740424, 417.31496471420087}, {306.00000000000006, 160}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 58 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + Bounds + {{424.41728521740424, 364.31496471420076}, {306.00000000000006, 53}} + Class + ShapedGraphic + FontInfo + + Font + HiraKakuProN-W3 + Size + 12 + + ID + 55 + Magnets + + {0, 1} + {0, -1} + {1, 0} + {-1, 0} + + Style + + shadow + + Draws + NO + + + Text + + VerticalPad + 0.0 + + + + GridInfo + + GuidesLocked + NO + GuidesVisible + YES + HPages + 3 + ImageCounter + 1 + KeepToScale + + Layers + + + Lock + NO + Name + レイヤー 1 + Print + YES + Slices + NO + View + YES + + + LayoutInfo + + Animate + NO + circoMinDist + 18 + circoSeparation + 0.0 + layoutEngine + dot + neatoLineLength + 0.20000000298023224 + neatoSeparation + 0.0 + twopiSeparation + 0.0 + + LinksVisible + NO + MagnetsVisible + NO + MasterSheets + + ModificationDate + 2017-02-11 20:51:53 +0000 + Modifier + kazuma + NotesVisible + NO + Orientation + 2 + OriginVisible + NO + PageBreaks + YES + PrintInfo + + NSBottomMargin + + float + 41 + + NSHorizonalPagination + + coded + BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU051bWJlcgCEhAdOU1ZhbHVlAISECE5TT2JqZWN0AIWEASqEhAFxlwCG + + NSLeftMargin + + float + 18 + + NSPaperSize + + size + {595.27556705474854, 841.8897705078125} + + NSPrintReverseOrientation + + coded + BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU051bWJlcgCEhAdOU1ZhbHVlAISECE5TT2JqZWN0AIWEASqEhAFxlwCG + + NSRightMargin + + float + 18 + + NSTopMargin + + float + 18 + + + PrintOnePage + + ReadOnly + NO + RowAlign + 1 + RowSpacing + 36 + SheetTitle + キャンバス 1 + SmartAlignmentGuidesActive + YES + SmartDistanceGuidesActive + YES + UniqueID + 1 + UseEntirePage + + VPages + 2 + WindowInfo + + CurrentSheet + 0 + Expanded_Canvases + + Frame + {{0, 4}, {1440, 773}} + ShowInfo + + ShowRuler + + Sidebar + + SidebarWidth + 230 + TopSlabHeight + 33 + VisibleRegion + {{-817, -71}, {3313.8887572067811, 1705.5554877828695}} + Zoom + 0.36000001430511475 + ZoomValues + + + キャンバス 1 + 0.36000001430511475 + 0.35999999999999999 + + + + + diff -r 7313ae32fa21 -r 49607e7d8871 paper/images/Tree.pdf Binary file paper/images/Tree.pdf has changed diff -r 7313ae32fa21 -r 49607e7d8871 paper/images/data/benchmark.dat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paper/images/data/benchmark.dat Sun Feb 12 10:46:43 2017 +0900 @@ -0,0 +1,11 @@ +0.0221659999999991 0.00634254000000024 +0.0763213999999985 +0.134959100000002 +0.192013700000006 +0.245827100000001 +0.307068400000001 +0.378273300000001 +0.422391099999998 +0.479521799999997 +0.541746899999996 +0.629517200000003 diff -r 7313ae32fa21 -r 49607e7d8871 paper/images/itemTree.graffle Binary file paper/images/itemTree.graffle has changed diff -r 7313ae32fa21 -r 49607e7d8871 paper/main.pdf Binary file paper/main.pdf has changed diff -r 7313ae32fa21 -r 49607e7d8871 paper/main.tex --- a/paper/main.tex Fri Feb 10 21:13:16 2017 +0900 +++ b/paper/main.tex Sun Feb 12 10:46:43 2017 +0900 @@ -37,7 +37,7 @@ \setlength{\itemsep}{-1zh} \title{ゲームエンジンにおける木構造データベースJungleの提案} -%\title{Supporting NAT in Screen Sharing System TreeVNC} +\title{Proposal of tree structured database Jungle in Game Engine.} \icon{ \includegraphics[width=80mm,bb=0 0 595 642]{fig/ryukyu.pdf} %%元は 642じゃなくて842 } @@ -79,6 +79,7 @@ \chapter{ゲームエンジンにおけるデータベース} この章ではデータベースの種類であるRelational DatabaseとNoSQLについて述べる。 +次に分散システムにおいて重要なCAP定理に触れる。 \section{Relational Database} @@ -89,16 +90,107 @@ RDBは主として使われているデータベースであるが、苦手としている事がある。 それは、スキーマレスなデータの扱いやマシン台数を増やし処理速度を上げることである。 -% これは必要か?みたいなお話 -水平分割や垂直分割によりデータを分割できるが構造としては複雑化していく。 + +テーブルを水平分割や垂直分割によりデータを分割できるが構造としては複雑化していく。 + +\section{ACIDトランザクション} + +%書く + +ACID(Atomicity,Consistency,Isolation,Durability) は +データベースのトランザクションの処理が確実に実行されることを保証するものである\cite{amazonacid}。 + +ほとんどのRDBMSはACIDトランザクションを保証している。 + +\begin{itemize} +\item Atomicity(原子性) + +トランザクションを実行する際に、すべて成功するか、すべて失敗するか。 + +\item Consistency(一貫性) + +トランザクション開始時と終了時にデータが一貫していなければならない。 + +\item Isolation(独立性) + +他のトランザクションによる干渉を受けない。 + +\item Durability(永続性) + +コミットしたトランザクションのデータは保存される。 + +\end{itemize} \section{NoSQL} -NoSQLはNot Only SQLの略で、SQLを必要としない非リレーショナル型のデータベースである。 +NoSQLはNot Only SQLの略である。 + +通常NoSQLデータベースは非リレーショナル型であり、スキームの定義がない\cite{nosql}。 + +不定形の構造の変更をトランザクションとして、Jsonの一括変更という形で処理されてしまっており、並列アプリケーションには向いていない。 + +\section{CAP定理} + +分散システムにおいて、次の3つを同時に保証することは出来ない。 + +\begin{itemize} +\item Consistency(一貫性) + +すべてのノードはクエリが同じならば同じデータを返す。 + +\item Availability(可用性) + +あるノードに障害が発生しても、機能しているノードにより常にデータの読み書きが行える。 + +\item Partition-tolerance(分断耐性) + +ネットワーク障害によりノードの接続が切れてもデータベースは機能し続けることができる。 + +\end{itemize} + +これはCAP定理\cite{cap}と呼ばれる。 +データベースを利用する場合はCAP定理を意識しながら選択する。 + +一貫性と可用性を重視したデータベースがRDBである。 +分断耐性を必要とする場合はNoSQLデータベースとなる。 + +NoSQLデータベースでは一貫性を取るか、可用性を取るかによって選択するデータベースが変わる。 +以下にその2つの例を示す。 -JsonやXMLを扱えるデータベースでは通常スキームを必要としないため、特に扱うデータの型が決まっていなくても使うことができる。 +\begin{itemize} + +\item MongoDB + +MongoDBは2009年に公開されたNoSQLのデータベースである。 +ドキュメント指向型とされ、事前にテーブルの構造を決めておく必要がない。 +これをスキーマレスという。 + +MongoDBはマスター/スレーブ方式のReplicationを採用している。 +保存したデータ(マスター)を複数のサーバー(スレーブ)に複製を取る。 + +スレーブをReadさせることによって負荷分散も可能になる。 + +また、一台のサーバーにすべてのデータを持たず、複数のサーバーに分割して保持する。 +これをShardingという。 -しかし、不定形の構造の変更をトランザクションとして、Jsonの一括変更という形で処理されてしまっており、並列アプリケーションには向いていない。 +MongoDBはReplocationとShardingにより、分断耐性と一貫性を持つ。 + +\item Cassandra + +Cassandra\cite{cassandra}は2008年にFacebookによって公開されたKey-Value型のデータベースである。 +AmazonのDynamo\cite{amazonacid}とGoogleのBigTable\cite{bigtable}を合わせた特徴を持っている。 +Key-Valueであるため、スキーマレスなNoSQLとなる。 + +Bigtableから採用した、カラムファミリーと呼ばれる構造を基本としている。 + +カラムファミリーの行の部分はHashMapや連想配列のようにKey-Valueで複数格納している。 + +1つのKey-Valueの組をカラムと呼ぶ。 +RDBとは異なり、カラム名を事前に定義する必要がない。 + +分散構造 + +\end{itemize} \section{Jungleの提案} @@ -108,8 +200,10 @@ ウェブサイトの構造は大体が木構造であるため、データ構造として木構造を採用している。 しかし、ウェブサイトだけでなくゲームにおいてもデータ構造が木構造になっている。 -本研究ではJungleをUnityを用いたゲームで使用する方法を提案する。 +そこで、本研究ではJungleの木構造である特性を活かし、ゲームエンジンUnityで作成したゲームで使用する方法を提案する。 + データベースとしてJungle Databaseを採用する。 + JungleはJavaとHaskellによりそれぞれの言語で開発されている。 本研究で扱うのはJava版をC\#で再実装したものである。 @@ -287,16 +381,31 @@ この章ではゲームにおけるデータについて述べ、その後Jungleとの関係性や実装を記述する。 \section{ゲームのデータ} -ゲーム中のデータには幾つか考えられる。 + +ゲームを開発する際にデータの種類について知っておく必要がある。 +以下にゲームにおけるデータを記述する。 %% Attonさんの論文に書いてたitemizeを使うといいかも箇条書きっぽいかきかた。 -シーンのオブジェクトが持つパラメータ -ゲームのセーブデータ -ネットワーク上で使用するデータ +\begin{itemize} +\item オブジェクトが単体で持つデータ + +シーン内に存在するオブジェクトが持つパラメータ +例えばプレイヤーのHPや経験値、位置座標などを示す。 + +\item オブジェクト1つで複数持つデータ + +プレイヤーが持つアイテムデータなどを示す。 + +\item マスタデータ(ReadOnly)\cite{gamedata}\cite{gamedata2} + +アイテムの名前や敵の出現確率などを示す。 +ゲーム開発者のみが更新できる。 + +\end{itemize} \section{ゲームデータとデータベース} -ゲームのデータベースとして長年使われているのがRDBである。 +ゲームのデータベースとして使われているのがRDBである。 プログラム中のデータ構造とRDBの表構造のズレによりインピーダンスミスマッチという問題がある。 @@ -329,7 +438,6 @@ %% 思いついたこと入れた UnityでのJsonのお話 Unity5.3以降のバージョンでは標準でJsonが扱えるようになった。 これにより、インスタンスをJson化することができる。 -しかし、変数名をKeyとしてValueを取り出すといったことは出来ない。 \chapter{Jungle-Sharpの実装} @@ -340,6 +448,7 @@ \section{AtomicRefarenceの実装} Jungleの木の変更(commit)はCAS(Check and Set)を用いてatomicに行われる。競合している書き込み中に自分の書き込みが成功した場合に関数\verb+commit()+が成功する。 +失敗した場合ははじめからもう一度行う。 JavaではAtomicRefarenceが標準であるがC\#にはなかったためAtomicRefarenceのクラスを新たにつくった。 @@ -443,8 +552,6 @@ bindでのEitherをチェックしつつデータを格納する例を以下に記述する。 -%図を入れてもいいかも? - \begin{itembox}[l]{DataSaveTest.cs} \scriptsize{ \begin{verbatim} @@ -467,7 +574,7 @@ } \end{itembox} -bindの実装により、ユーザ側がEitherのErrorチェックを行う必要がなくなる。 +bindの実装により、ユーザ側でEitherのErrorチェックを行う必要がなくなる。 \chapter{Unityで実装したアプリケーション} @@ -481,7 +588,7 @@ \begin{figure}[h] \begin{center} -\includegraphics[height = 6cm , bb=0 0 568 455]{images/craft.png} +\includegraphics[width=10cm]{images/craft.png} \caption{craft} \label{craft} \end{center} @@ -496,22 +603,39 @@ 例題ゲームを構成するゲームの要素を記述する。 Unityではオブジェクトに対してコンポーネントが紐付けられる。 -クラスも同様にコンポーネントして扱える。 +クラスはMonoBehaviourを継承している場合のみコンポーネントして扱える。 %% ただし、MonoBehaviourを継承している場合インスタンスを生成することができない。 ステージを構成するブロックのコンポーネントして、ItemBoxクラスを紐付ける。 -ItemBoxの持つ変数を表\ref{itembox}に示す。 +ItemBoxの持つ変数を表\ref{itemboxes}に示す。 \begin{table}[htb] \begin{center} -\caption{ItemBoxクラスが持つAttribute} -\begin{tabular}{|p{8em}|p{14em}|} \hline -{\tt Broken }& -Itemの体力、0になると自身のItemBoxのオブジェクトを破壊\\ \hline -{\tt ColorCode} & +\caption{ItemBoxクラスが持つパラメータ} +\begin{tabular}{|p{14em}|p{14em}|} \hline +int {\tt Broken }& +Itemの耐久力、0になると自身のItemBoxのオブジェクトを破壊\\ \hline +Color {\tt ColorCode} & 自身のブロックの色 \\ \hline \end{tabular} -\label{itembox} +\label{itemboxes} +\end{center} +\end{table} + +ステージ上に回復アイテムをランダムに配置する。 +回復アイテムにはコンポーネントとして、ItemFoodクラスを紐付ける。 +ItemFoodが持つ変数を表\ref{itemfood}に示す。 + +\begin{table}[htb] +\begin{center} +\caption{FoodBoxクラスが持つパラメータ} +\begin{tabular}{|p{14em}|p{14em}|} \hline +string {\tt Name} & +食べ物の名前 \\ \hline +int {\tt Recovery}& +アイテムを取得時に回復する数\\ \hline +\end{tabular} +\label{itemfood} \end{center} \end{table} @@ -520,11 +644,11 @@ \begin{table}[htb] \begin{center} -\caption{Playerクラスが持つAttribute} -\begin{tabular}{|p{8em}|p{14em}|} \hline -{\tt HP }& +\caption{Playerクラスが持つパラメータ} +\begin{tabular}{|p{14em}|p{14em}|} \hline +int {\tt HP }& プレイヤーの体力、0になるとゲームオーバー\\ \hline -{\tt ItemList} & +List {\tt ItemList} & プレイヤーが持つアイテムのリスト \\ \hline \end{tabular} \label{player} @@ -534,23 +658,53 @@ \section{データ設計} Unityにおけるゲームの構成はObjectの親子関係、つまり木構造である。 -Jungle Databaseは木構造型のデータベースであるので、そのまま格納するという手法が考えられる。 -%% Unityでシーンを構成する際にデータの設計を気にしなくてもいい。 +同じくJungle Databaseは木構造である。 +% Unityでシーンを構成する際にデータの設計を気にしなくてもいい。 + +Jungleでは複数の木を持つことができる。 +ゲームのシーンを構成するGameTreeとアイテムを管理するItemTreeをJungle内に作る。 +ItemTreeは第4章で述べたマスターデータとして扱う。 + +GameTreeではシーン内にあるオブジェクトを格納している。 +例えばPlayerやStageを構成するCubeなどのことを指す。 図\ref{GameTree}ではJungleに格納する構造を示したものである。 + \begin{figure}[h] \begin{center} -\includegraphics[height = 6cm , bb=0 0 568 455]{images/GameTree.pdf} +\includegraphics[width=10cm]{images/Tree.pdf} \caption{GameTree} \label{GameTree} \end{center} \end{figure} +Jungleではオブジェクトが単体で持つデータとオブジェクトが複数持つデータを同時に表現できる。 + +ノード1つのAttributeに対してデータを格納する。 +図\ref{GameTree}のようにPlayerが持つアイテムを表現したい場合はPlayerノードの子としてHaveItemノードを作る。 +HaveItemノードの子として持っているアイテムを子ノードとすればよい。 + + +ItemTreeではItemの情報が格納されている。 +図\ref{ItemTree}ではJungleに格納しているItemの構造を示したものである。 + + +\begin{figure}[h] +\begin{center} +\includegraphics[width=10cm]{images/ItemTree.pdf} +\caption{ItemTree} +\label{ItemTree} +\end{center} +\end{figure} + +ItemTreeではRootノードはItemのTypeが書かれた子ノードを持っている。 +子ノードはStageを構成するBox Type、回復するためのアイテム、Food Typeの2種類である。 \section{Attributeの格納するデータの型} C\#の再実装を行った際にJavaのJungleに沿ってデータの型、つまりByte Arrayで設計を行っていた。 + データの格納を行うたびにByte Arrayへのキャストを行う必要がある。 しかし、キャストの処理は軽くはない。 @@ -591,16 +745,19 @@ データの型の再設計を行ったことによりシーン内のオブジェクトをそのまま格納が可能になった。 格納の際にByte Arrayに変換する必要がない。 + 分散構造や、ネットワークで必要な時だけ変換する。 \chapter{ベンチマーク} -本章ではC\#とJavaのJungleとの比較、Jungle-SharpとUnity上で使われるSQLite3、PlayerPrefsとの比較を行う。 +本章ではC\#とJava版Jungleとの比較、Jungle-SharpとUnity上で使われるSQLite3、PlayerPrefsとの比較を行う。 \section{Javaとの比較} 本論文ではJavaで書かれたJungle DatabaseをC\#で再実装した。 + 同じオペレーションでJavaとC\#で計測する。 + なお、1回目の処理はキャッシュを作り処理が遅くなるため、計測は行わず、2回目以降から行う。 計測時に使用したデータ挿入のオペレーションを以下に記述する。 @@ -648,15 +805,17 @@ \begin{figure}[h] \begin{center} -\includegraphics[height = 6cm , bb=0 0 568 455]{images/BenchMarkmark.pdf} +\includegraphics[width = 10cm]{images/benchmark.pdf} \caption{BenchMark} \label{BenchMark} \end{center} \end{figure} -Jungleの挿入の計算量はO(Log n)が期待される。 +Jungleでは木構造を変更する計算量として、O(1)からO(n)が期待される。 + 図\ref{BenchMark}より、Unityで実行した結果ではO(n)となっている。 Unityではレンダリングの機能も兼ねている。 + そのためプログラムを実行している間もレンダリングを行っているため、 純粋なPutAttributeの計算時間ではないと考えられる。 @@ -732,6 +891,7 @@ そのため通信を行わずにデータのやり取りができる。 SQLite3ではデータを挿入のSQLを実行するたびデータベースとの通信を行うため遅くなっている。 + PlayerPrefsはデータをまとめてセットすることができる。 しかし、バイナリ形式で保存されるため、書き出す時間がかかってしまう。 @@ -742,18 +902,22 @@ JavaとC\#は比較的似ている言語であるため移行は難しくはなかった。 性能としてもJava版に劣らない、もしくはそれ以上のパフォーマンスを出せる。 + Eitherでのbindの実装で、より関数型プログラミングを意識しながら記述することができる。 これはJava版にはない実装である。 Jungle DatabaseはもともとWeb向けに作られたデータベースである。 + Webではリニアにデータが書き換わることは多くない。 しかしゲームでは扱うデータが多くリニアに書き換わる。 そのため、Jungleの構成は保ちつつ、ゲームに合わせたJungleの拡張を行った。 + データの格納の際にByteBufferであったものをObject型に変更した。 これにより、シーンを構成するObjectを手間なく格納することを可能にした。 Jungleは非破壊であるため、過去の変更を持っている。 + ゲームにおいて過去の木を持ち続けることはパフォーマンスの低下につながる。 そのため、過去の木をどこまで必要かを検討しなければならない。 diff -r 7313ae32fa21 -r 49607e7d8871 paper/reference.bib --- a/paper/reference.bib Fri Feb 10 21:13:16 2017 +0900 +++ b/paper/reference.bib Sun Feb 12 10:46:43 2017 +0900 @@ -4,61 +4,55 @@ } @Misc{jungle, - author = "Shoshi Tamaki and Seiyu Tani and Shinji Kono", + author = "Shoshi Tamaki, Seiyu Tani, Shinji Kono", title = "Cassandraを使ったスケーラビリティのあるCMSの設計", year = 2011, journal = "情報処理学会システムソフトウェアとオペレーティング・システム研究会", } -@Misc{vnc, - author = "{RICHARDSON, T., STAFFORD-FRASER, Q., WOOD, K. R., AND HOPPER,}", - title = "A. Virtual Network Computing", +@Misc{nosql, + author = "PETTER NÄSHOLM", + title = "Extracting Data from NoSQL Databases", month = "jan", - year = 1998 + year = 2012 } -@Misc{zlib, - author = "{LOUP GAILLY, J., AND ADLER, M.}", - title = "zlib: A massively spiffy yet delicately unobtrusive compression library.", - howpublished = "\url{http://zlib.net}" +@Misc{gamedata, + author = "{Hitonishi Masaki}", + title = "ゲームエンジニアのためのデータベース設計", + howpublished = "\url{http://www.slideshare.net/sairoutine/ss-62485460}" } -@article{understandingScreenContents, - author = "{Surendar Chandra, Jacob T. Biehl, John Boreczky, Scott Carter, Lawrence A. Rowe}", - title = "Understanding Screen Contents for Building a High Performance, Real Time Screen Sharing System", - journal = "ACM Multimedia", - year = 2012, - month = "Oct" +@article{gamedata2, + author = "{Ryosuke Iwanaga}", + title = "ソーシャルゲームのためのMySQL入門", + howpublished = "\url{http://engineer.dena.jp/2010/11/mysql-for-socialgame.html}" } -@article{taninari:2011a, - author = "{Yu TANINARI and Nobuyasu OSHIRO and Shinji KONO}", - title = "VNCを用いた授業用画面共有システムの実装と設計", - journal = "日本ソフトウェア科学会第28回大会論文集", - month = "sep", - year = 2011 + +@article{cap, + author = "Nancy Lynch, Seth Gilbert", + title = "Brewer's conjecture and the feasibility of consistent, available, partition-tolerant web services", + journal = "ACM SIGACT News", + year = "2002" } -@article{taninari:2012a, - author = "{Yu TANINARI and Nobuyasu OSHIRO and Shinji KONO}", - title = "VNCを用いた授業用画面共有システムの設計・開発", - journal = "情報処理学会 システムソフトウェアとオペレーティング・システム研究会(OS)", - month = "may", - year = 2012 +@article{amazonacid, + author = "{Giuseppe DeCandia, Deniz Hastorun, Madan Jampani, Gunavardhan Kakulapati, Avinash Lakshman, Alex Pilchin, Swaminathan Sivasubramanian, Peter Vosshall and Werner Vogels}", + title = "Dynamo: Amazon’s Highly Available Key-value Store", + howpublished = "\url{http://www.read.seas.harvard.edu/~kohler/class/cs239-w08/decandia07dynamo.pdf}", + year = "2007" } -@article{parusu:2016a, - author = "{Tatsuki IHA and Shinji KONO}", - title = "有線LAN上のPC画面配信システムTreeVNCの改良", - journal = "第57回 プログラミング・シンポジウム", - month = "jan", - year = 2016 -} +@article{bigtable, + author = "Fay Changand Jeffrey Dean and Sanjay Ghemawat and Wilson C. Hsieh and Deborah A. Wallach and Mike Burrows and Tushar Chandra and Andrew Fikes and Robert E. Gruber", + title = "Bigtable : A Distributed Storege System for Structured Data" + } -@article{nozomi:2016a, - author = "{Nozomi TERUYA and Shinji KONO}", - title = "分散フレームワークAliceのPC画面配信システムへの応用", - journal = "第57回 プログラミング・シンポジウム", - month = "jan", - year = 2016 -} +@article{cassandra, + author = "Avinash Lakshman and Prashant Malik.", + title = "Cassandra - a decentralized structured storage system", + journal = "LADIS", + year = "2003", + month = "Mar" + }