{"data":{"markdownRemark":{"html":"<h2 id=\"introduction\"><a href=\"#introduction\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Introduction</h2>\n<p>The <code class=\"language-text\">LoadingBay</code> class provides the user with a useful structure for representing a loading docks (both inbound &#x26; outbound) with a transport queue that can hole <code class=\"language-text\">TransportMessage</code> messages and can be initialized with a capacity.</p>\n<p>Users can add as many loading bays as they require to represent different types of docks, whether they be inbound docks, outbound docks, etc.</p>\n<h2 id=\"loading-bay-class\"><a href=\"#loading-bay-class\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Loading Bay Class</h2>\n<p>The <code class=\"language-text\">LoadingBay</code> class contains 3 fields:</p>\n<div class=\"gatsby-highlight\" data-language=\"java\"><pre class=\"language-java\"><code class=\"language-java\"><span class=\"token keyword\">int</span> capacity<span class=\"token punctuation\">;</span>\nMap<span class=\"token generics function\"><span class=\"token punctuation\">&lt;</span>Long<span class=\"token punctuation\">,</span> TransportMessage<span class=\"token punctuation\">></span></span> transportQueue<span class=\"token punctuation\">;</span>\nMap<span class=\"token generics function\"><span class=\"token punctuation\">&lt;</span>Integer<span class=\"token punctuation\">,</span> TransportMessage<span class=\"token punctuation\">></span></span> loadingDocks<span class=\"token punctuation\">;</span></code></pre></div>\n<p>The <code class=\"language-text\">capacity</code> parameter is used to initialize the size of the <code class=\"language-text\">loadingDock</code> creating a loadingDock <code class=\"language-text\">Map</code> of size <code class=\"language-text\">capacity</code>.</p>\n<p>The 'transportQueue' can either be initialized as an empty <code class=\"language-text\">Map</code> or initialized with a starting set of <code class=\"language-text\">TransportMessage</code> messages for creating an initial state of the system.</p>\n<p>A <code class=\"language-text\">LoadingBay</code> can be initialized using two constructors seen below:</p>\n<div class=\"gatsby-highlight\" data-language=\"java\"><pre class=\"language-java\"><code class=\"language-java\"><span class=\"token keyword\">new</span> <span class=\"token class-name\">LoadingBay</span><span class=\"token punctuation\">(</span><span class=\"token keyword\">int</span> capacity<span class=\"token punctuation\">)</span>\n        \n<span class=\"token keyword\">new</span> <span class=\"token class-name\">LoadingBay</span><span class=\"token punctuation\">(</span><span class=\"token keyword\">int</span> capacity<span class=\"token punctuation\">,</span> List<span class=\"token generics function\"><span class=\"token punctuation\">&lt;</span>TransportMessage<span class=\"token punctuation\">></span></span> initialTransportQueue<span class=\"token punctuation\">)</span></code></pre></div>\n<p>When creating your <code class=\"language-text\">LoadingBay</code> classes in your <code class=\"language-text\">Facility</code> agent, custom logic can be implemented for how <code class=\"language-text\">TransportMessage</code> priority is handled. An example can be found in the sample code provided.</p>","headings":[{"value":"Introduction","depth":2},{"value":"Loading Bay Class","depth":2}],"frontmatter":{"title":"Loading Bay","toc":null,"experimental":false}},"site":{"siteMetadata":{"title":"Simudyne Docs","latestVersion":"2.6"}}},"pageContext":{"absolutePath":"/home/vsts/work/1/s/content/2.6/docs/supply_chain_toolkit/loading_bay.md","versioned":false,"version":"2.6","kind":"docs","pagePath":"/supply_chain_toolkit/loading_bay","chronology":{"prev":{"name":"Transport Message","path":"/supply_chain_toolkit/transport_message"},"next":{"name":"Product","path":"/supply_chain_toolkit/product"}},"lastUpdated":"2026-04-21T13:56:54.867Z"}}