{"id":423,"date":"2014-12-09T16:19:13","date_gmt":"2014-12-09T16:19:13","guid":{"rendered":"http:\/\/onefact-migrate.zipfish-sites.io\/?p=165"},"modified":"2020-12-16T16:10:29","modified_gmt":"2020-12-16T16:10:29","slug":"brake_model_snippet","status":"publish","type":"post","link":"https:\/\/onefact.net\/brake_model_snippet\/","title":{"rendered":"Electric Parking Brake Model Snippet"},"content":{"rendered":"<p><a href=\"https:\/\/onefact.net\/wp-content\/uploads\/2014\/12\/brake_model.png\"><img fetchpriority=\"high\" alt='brake_model-1735599' class=\"alignnone wp-image-166\" src='https:\/\/onefact.net\/wp-content\/uploads\/2014\/12\/brake_model-1735599.png' alt=\"brake_model\" width=\"566\" height=\"384\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>In today&#8217;s model snippet of the day I post a first draft class diagram\u00a0of an <strong>electric parking brake<\/strong>. \u00a0The classes are <em>rotor<\/em>, <em>caliper<\/em>, <em>gear box<\/em> and <em>motor<\/em>. \u00a0Attributes are placed such that the <em>rotor<\/em> has a <em>diameter<\/em>. \u00a0The <em>caliper<\/em> is in a <em>current_position. \u00a0<\/em>The\u00a0<em>gear box<\/em> must have gears that provide a <em>reduction<\/em>. \u00a0The <em>motor<\/em> has a <em>power<\/em> rating and generates a quantity of\u00a0<em>torque<\/em>.<\/p>\n<p>Although not shown,\u00a0the <em>motor<\/em> and <em>caliper<\/em> have lifecycles defined by state machines. \u00a0You can tell this because of the state machine glyph on the classes. \u00a0The associations labeled <em>R1<\/em>, <em>R2<\/em> and <em>R3<\/em> relate instances of the classes together.<\/p>\n<p>When the brake <em>motor<\/em> is activated it <em>drives<\/em> the <em>gear box<\/em> providing mechanical advantage through its <em>reduction<\/em>. \u00a0The <em>gear box<\/em> <em>closes<\/em> the <em>caliper<\/em> changing its <em>current_position<\/em>. \u00a0The <em>caliper<\/em> <em>squeezes<\/em> the <em>rotor<\/em> providing frictional forces to prevent the <em>rotor<\/em> from turning, and thus keeping the car in its parking space. \u00a0Note that we can read the associations in the opposite direction and state that the <em>rotor<\/em> <em>is squeezed by<\/em> the <em>caliper<\/em> which <em>is closed by<\/em> the <em>gear box<\/em> which <em>is driven<\/em> <em>by<\/em> the <em>motor<\/em>.<\/p>\n<p><a href=\"https:\/\/onefact.net\/wp-content\/uploads\/2014\/12\/brake.jpg\"><img alt='brake-3495461' class=\"alignnone size-medium wp-image-167\" src='https:\/\/onefact.net\/wp-content\/uploads\/2014\/12\/brake-3495461.jpg' alt=\"brake\" width=\"300\" height=\"203\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; In today&#8217;s model snippet of the day I post a first draft class diagram\u00a0of an electric parking brake. \u00a0The classes are rotor, caliper, gear box and motor. \u00a0Attributes are placed such that the rotor has a diameter. \u00a0The caliper is in a current_position. \u00a0The\u00a0gear box must have gears that provide a reduction. \u00a0The motor [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1301,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements"],"jetpack_featured_media_url":"https:\/\/onefact.net\/wp-content\/uploads\/2014\/12\/brake-3495461.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/comments?post=423"}],"version-history":[{"count":1,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/423\/revisions"}],"predecessor-version":[{"id":1599,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/423\/revisions\/1599"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/media\/1301"}],"wp:attachment":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/categories?post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/tags?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}