{"id":225,"date":"2011-03-26T21:56:26","date_gmt":"2011-03-27T05:56:26","guid":{"rendered":"http:\/\/sambaker.net\/neattools\/?p=225"},"modified":"2011-03-26T21:56:54","modified_gmt":"2011-03-27T05:56:54","slug":"connections-take-one","status":"publish","type":"post","link":"https:\/\/sambaker.net\/neattools\/?p=225","title":{"rendered":"Connections: Take one"},"content":{"rendered":"<p>So like last time, i&#8217;m starting by hard-wiring a connection to start with, then I&#8217;ll go back to how to create them dynamically.\u00c2\u00a0\u00c2\u00a0 And since my last post, I&#8217;ve rethought the connections questions and I&#8217;m going to make it more outside in, rather than trying to figure out some hacky way of having children and grandchildren telling parents what to do. So&#8230; to that end, I created a neatWorkspace class. Structure as follows:<\/p>\n<p>Workspace is the parent of everything (so far). It has children button  and LED. They have children input and output (or in buttons case, inputs and outputs) Workspace also has a child Connection A, which contains a reference to  button and LED, and which output of button will be connecting to what input of LED. Connection A has a child neatWire (the graphic  connection) which is a line from button output, to LED input.<\/p>\n<p><div id=\"swf9ef61\">This movie requires Flash Player 9<\/div>\n<script type=\"text\/javascript\">\n\tswfobject.embedSWF(\"source\/neattools29.swf\", \"swf9ef61\", \"400\", \"400\", \"9.0.0\", \"\", {}, {wmode: \"window\", menu: \"false\", quality: \"high\", bgcolor: \"#FFFFFF\", allowScriptAccess: \"always\"}, {});\n<\/script>\n<\/p>\n<p>the wires fail if you try to create new ones by dragging out lines, but they&#8217;re just holdovers, I haven&#8217;t revisited them yet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So like last time, i&#8217;m starting by hard-wiring a connection to start with, then I&#8217;ll go back to how to create them dynamically.\u00c2\u00a0\u00c2\u00a0 And since my last post, I&#8217;ve rethought the connections questions and I&#8217;m going to make it more outside in, rather than trying to figure out some hacky way of having children and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/225"}],"collection":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=225"}],"version-history":[{"count":6,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":231,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions\/231"}],"wp:attachment":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}