Skip to content

Commit

Permalink
build based on 7b8a63a
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Feb 22, 2024
1 parent 70f283a commit 0d1fb2e
Show file tree
Hide file tree
Showing 10 changed files with 386 additions and 386 deletions.
2 changes: 1 addition & 1 deletion dev/design.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
@control system control(system) &quot;temperature control&quot;</code></pre><p>At each step, the solver will call the function <code>() -&gt; control(system)</code> (a closure is taken at the time when <code>@future</code> is invoked).</p><h3 id="Instantious-Interactions"><a class="docs-heading-anchor" href="#Instantious-Interactions">Instantious Interactions</a><a id="Instantious-Interactions-1"></a><a class="docs-heading-anchor-permalink" href="#Instantious-Interactions" title="Permalink"></a></h3><p>You may schedule additional interactions which exist within a single step of the model; such actions are modeled as named tuples <code>(id, priority=0., call)</code>. Here, <code>call</code> is a (parameterless) anonymous function.</p><p>They exist within a single step of the model and are executed after the calls to <code>_prestep!</code> and <code>_step!</code> finish, in the order of the assigned priorities.</p><p>In particular, you may schedule interactions of two kinds:</p><ul><li><code>poke(agent, priority)</code>, which will translate into a call <code>() -&gt; _interact!(agent)</code>, with the specified priority,</li><li><code>@call opera expresion priority</code>, which will translate into a call <code>() -&gt; expression</code>, with the specified priority.</li></ul><p>See <a href="index.html#AlgebraicAgents.poke"><code>poke</code></a> and <a href="index.html#AlgebraicAgents.@call"><code>@call</code></a>.</p><h4 id="Examples"><a class="docs-heading-anchor" href="#Examples">Examples</a><a id="Examples-1"></a><a class="docs-heading-anchor-permalink" href="#Examples" title="Permalink"></a></h4><pre><code class="language-julia hljs"># `poke`
poke(agent, 1.) # call `_interact!(agent)`; this call is added to the instantious priority queue with priority 1</code></pre><pre><code class="language-julia hljs"># `@call`
bob_agent = only(getagent(agent, r&quot;bob&quot;))
@call agent wake_up(bob_agent) # translates into `() -&gt; wake_up(bob_agent)` with priority 0</code></pre></article><nav class="docs-footer"><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Thursday 22 February 2024 14:17">Thursday 22 February 2024</span>. Using Julia version 1.10.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
@call agent wake_up(bob_agent) # translates into `() -&gt; wake_up(bob_agent)` with priority 0</code></pre></article><nav class="docs-footer"><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Thursday 22 February 2024 15:19">Thursday 22 February 2024</span>. Using Julia version 1.10.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/design_mmd.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
@control system control(system) &quot;temperature control&quot;</code></pre><p>At each step, the solver will call the function <code>() -&gt; control(system)</code> (a closure is taken at the time when <code>@future</code> is invoked).</p><h3 id="Instantious-Interactions"><a class="docs-heading-anchor" href="#Instantious-Interactions">Instantious Interactions</a><a id="Instantious-Interactions-1"></a><a class="docs-heading-anchor-permalink" href="#Instantious-Interactions" title="Permalink"></a></h3><p>You may schedule additional interactions which exist within a single step of the model; such actions are modeled as named tuples <code>(id, priority=0., call)</code>. Here, <code>call</code> is a (parameterless) anonymous function.</p><p>They exist within a single step of the model and are executed after the calls to <code>_prestep!</code> and <code>_step!</code> finish, in the order of the assigned priorities.</p><p>In particular, you may schedule interactions of two kinds:</p><ul><li><code>poke(agent, priority)</code>, which will translate into a call <code>() -&gt; _interact!(agent)</code>, with the specified priority,</li><li><code>@call opera expresion priority</code>, which will translate into a call <code>() -&gt; expression</code>, with the specified priority.</li></ul><p>See <a href="index.html#AlgebraicAgents.poke"><code>poke</code></a> and <a href="index.html#AlgebraicAgents.@call"><code>@call</code></a>.</p><h4 id="Examples"><a class="docs-heading-anchor" href="#Examples">Examples</a><a id="Examples-1"></a><a class="docs-heading-anchor-permalink" href="#Examples" title="Permalink"></a></h4><pre><code class="language-julia hljs"># `poke`
poke(agent, 1.) # call `_interact!(agent)`; this call is added to the instantious priority queue with priority 1</code></pre><pre><code class="language-julia hljs"># `@call`
bob_agent = only(getagent(agent, r&quot;bob&quot;))
@call agent wake_up(bob_agent) # translates into `() -&gt; wake_up(bob_agent)` with priority 0</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="index.html">« API Documentation</a><a class="docs-footer-nextpage" href="integrations.html">Integrations »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Thursday 22 February 2024 14:17">Thursday 22 February 2024</span>. Using Julia version 1.10.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
@call agent wake_up(bob_agent) # translates into `() -&gt; wake_up(bob_agent)` with priority 0</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="index.html">« API Documentation</a><a class="docs-footer-nextpage" href="integrations.html">Integrations »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Thursday 22 February 2024 15:19">Thursday 22 February 2024</span>. Using Julia version 1.10.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 0d1fb2e

Please sign in to comment.