{"id":954,"date":"2016-09-06T22:12:34","date_gmt":"2016-09-07T03:12:34","guid":{"rendered":"http:\/\/rpchurchill.com\/?p=954"},"modified":"2016-09-06T22:12:34","modified_gmt":"2016-09-07T03:12:34","slug":"a-simple-discrete-event-simulation-part-5","status":"publish","type":"post","link":"https:\/\/rpchurchill.com\/wordpress\/posts\/2016\/09\/06\/a-simple-discrete-event-simulation-part-5\/","title":{"rendered":"A Simple Discrete-Event Simulation: Part 5"},"content":{"rendered":"<p>Adding a second entity works correctly.<\/p>\n<pre class=\"toolbar-overlay:false wrap:false height-set:true lang:default decode:true \">\r\n    var entityA = new entity(1,11.0,10.0,100.0);\r\n    \r\n    var entityB = new entity(2,13.0,13.0,100.0);\r\n<\/pre>\n<p><code><br \/>\n104 minutes<\/p>\n<p>entity 1 created at time 0<br \/>\nentity 2 created at time 0<br \/>\nentity 1 updated at time 11<br \/>\nentity 2 updated at time 13<br \/>\nentity 1 updated at time 21<br \/>\nentity 2 updated at time 26<br \/>\nentity 1 updated at time 31<br \/>\nentity 2 updated at time 39<br \/>\nentity 1 updated at time 41<br \/>\nentity 1 updated at time 51<br \/>\nentity 2 updated at time 52<br \/>\nentity 1 updated at time 61<br \/>\nentity 2 updated at time 65<br \/>\nentity 1 updated at time 71<br \/>\nentity 2 updated at time 78<br \/>\nentity 1 updated at time 81<br \/>\nentity 2 updated at time 91<br \/>\nentity 1 updated at time 91<br \/>\nentity 1 terminated at time 101<br \/>\nentity 2 terminated at time 104<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding a second entity works correctly. var entityA = new entity(1,11.0,10.0,100.0); var entityB = new entity(2,13.0,13.0,100.0); 104 minutes entity 1 created at time 0 entity 2 created at time 0 entity 1 updated at time 11 entity 2 updated at &hellip; <a href=\"https:\/\/rpchurchill.com\/wordpress\/posts\/2016\/09\/06\/a-simple-discrete-event-simulation-part-5\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60],"tags":[121,49],"_links":{"self":[{"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/posts\/954"}],"collection":[{"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/comments?post=954"}],"version-history":[{"count":1,"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/posts\/954\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/posts\/954\/revisions\/955"}],"wp:attachment":[{"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/media?parent=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/categories?post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rpchurchill.com\/wordpress\/wp-json\/wp\/v2\/tags?post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}