hotlink.html
api/sleela/3.1/version-020/package/hotlink.html · 350 line(s) · html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Package hotlink — SleelaDoc API</title>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<header class="top">
<div class="brand"><a href="../index.html">SleelaDoc API</a></div>
<div class="tag">HTML documentation for the SLeeLa standard library (/lib)</div>
</header>
<div class="wrap">
<nav class="side">
<a href="../index.html"><strong>Home</strong></a>
<a href="../packages.html"><strong>All packages</strong></a>
<a href="../glossary.html"><strong>Glossary</strong></a>
<a href="../authorship.html"><strong>Authorship</strong></a>
<h2>Packages</h2><ul>
<li><a href="../package/advantage.html">advantage</a></li>
<li><a href="../package/alphabet.html">alphabet</a></li>
<li><a href="../package/antivirus.html">antivirus</a></li>
<li><a href="../package/api.html">api</a></li>
<li><a href="../package/array.html">array</a></li>
<li><a href="../package/audio.html">audio</a></li>
<li><a href="../package/autocad.html">autocad</a></li>
<li><a href="../package/ballum.html">ballum</a></li>
<li><a href="../package/bash.html">bash</a></li>
<li><a href="../package/boolean.html">boolean</a></li>
<li><a href="../package/cdma.html">cdma</a></li>
<li><a href="../package/char.html">char</a></li>
<li><a href="../package/character.html">character</a></li>
<li><a href="../package/character-recognition.html">character-recognition</a></li>
<li><a href="../package/churn.html">churn</a></li>
<li><a href="../package/citizen.html">citizen</a></li>
<li><a href="../package/codecs.html">codecs</a></li>
<li><a href="../package/collections.html">collections</a></li>
<li><a href="../package/common-rails.html">common-rails</a></li>
<li><a href="../package/compiler.html">compiler</a></li>
<li><a href="../package/compression.html">compression</a></li>
<li><a href="../package/config.html">config</a></li>
<li><a href="../package/connector.html">connector</a></li>
<li><a href="../package/coorenagraph.html">coorenagraph</a></li>
<li><a href="../package/core.html">core</a></li>
<li><a href="../package/cpu.html">cpu</a></li>
<li><a href="../package/crypto.html">crypto</a></li>
<li><a href="../package/data.html">data</a></li>
<li><a href="../package/data-structures.html">data-structures</a></li>
<li><a href="../package/database.html">database</a></li>
<li><a href="../package/debugger.html">debugger</a></li>
<li><a href="../package/decompiler.html">decompiler</a></li>
<li><a href="../package/deliberation.html">deliberation</a></li>
<li><a href="../package/drivers.html">drivers</a></li>
<li><a href="../package/examples.html">examples</a></li>
<li><a href="../package/filesystem.html">filesystem</a></li>
<li><a href="../package/gameplay.html">gameplay</a></li>
<li><a href="../package/governance.html">governance</a></li>
<li><a href="../package/gui.html">gui</a></li>
<li><a href="../package/guidoc.html">guidoc</a></li>
<li><a href="../package/hotlink.html">hotlink</a></li>
<li><a href="../package/html.html">html</a></li>
<li><a href="../package/http.html">http</a></li>
<li><a href="../package/http-1.0.html">http-1.0</a></li>
<li><a href="../package/http-2.0.html">http-2.0</a></li>
<li><a href="../package/http-3.0.html">http-3.0</a></li>
<li><a href="../package/http-4.0.html">http-4.0</a></li>
<li><a href="../package/http-5.0.html">http-5.0</a></li>
<li><a href="../package/http-6.0.html">http-6.0</a></li>
<li><a href="../package/http-7.0.html">http-7.0</a></li>
<li><a href="../package/http-8.0.html">http-8.0</a></li>
<li><a href="../package/http-9.0.html">http-9.0</a></li>
<li><a href="../package/http-servers.html">http-servers</a></li>
<li><a href="../package/ide.html">ide</a></li>
<li><a href="../package/ide-workbench.html">ide-workbench</a></li>
<li><a href="../package/idea.html">idea</a></li>
<li><a href="../package/inference-model.html">inference-model</a></li>
<li><a href="../package/inputs.html">inputs</a></li>
<li><a href="../package/international-criminal-court.html">international-criminal-court</a></li>
<li><a href="../package/io.html">io</a></li>
<li><a href="../package/java.html">java</a></li>
<li><a href="../package/java28.html">java28</a></li>
<li><a href="../package/journey.html">journey</a></li>
<li><a href="../package/languages.html">languages</a></li>
<li><a href="../package/large-language-models.html">large-language-models</a></li>
<li><a href="../package/ledger.html">ledger</a></li>
<li><a href="../package/linux-editors.html">linux-editors</a></li>
<li><a href="../package/manifesto.html">manifesto</a></li>
<li><a href="../package/math.html">math</a></li>
<li><a href="../package/memory.html">memory</a></li>
<li><a href="../package/modules.html">modules</a></li>
<li><a href="../package/moral-capacitor.html">moral-capacitor</a></li>
<li><a href="../package/munction.html">munction</a></li>
<li><a href="../package/native.html">native</a></li>
<li><a href="../package/net.html">net</a></li>
<li><a href="../package/neural-nets.html">neural-nets</a></li>
<li><a href="../package/nordshrift.html">nordshrift</a></li>
<li><a href="../package/observer.html">observer</a></li>
<li><a href="../package/opcodes.html">opcodes</a></li>
<li><a href="../package/operating-system.html">operating-system</a></li>
<li><a href="../package/os-level-support.html">os-level-support</a></li>
<li><a href="../package/philosophers.html">philosophers</a></li>
<li><a href="../package/philosophy.html">philosophy</a></li>
<li><a href="../package/politico.html">politico</a></li>
<li><a href="../package/process.html">process</a></li>
<li><a href="../package/psychiatry.html">psychiatry</a></li>
<li><a href="../package/public.html">public</a></li>
<li><a href="../package/reflection.html">reflection</a></li>
<li><a href="../package/regex.html">regex</a></li>
<li><a href="../package/registry.html">registry</a></li>
<li><a href="../package/rmi.html">rmi</a></li>
<li><a href="../package/rrs.html">rrs</a></li>
<li><a href="../package/runtime.html">runtime</a></li>
<li><a href="../package/security.html">security</a></li>
<li><a href="../package/server-edition.html">server-edition</a></li>
<li><a href="../package/signal-processing.html">signal-processing</a></li>
<li><a href="../package/sldocument.html">sldocument</a></li>
<li><a href="../package/sleela.html">sleela</a></li>
<li><a href="../package/sleela-sql.html">sleela-sql</a></li>
<li><a href="../package/sleela-terminal.html">sleela-terminal</a></li>
<li><a href="../package/sleeladoc.html">sleeladoc</a></li>
<li><a href="../package/slrtp.html">slrtp</a></li>
<li><a href="../package/social-model.html">social-model</a></li>
<li><a href="../package/softlisten.html">softlisten</a></li>
<li><a href="../package/sommeliers.html">sommeliers</a></li>
<li><a href="../package/spatial.html">spatial</a></li>
<li><a href="../package/sst.html">sst</a></li>
<li><a href="../package/synchro.html">synchro</a></li>
<li><a href="../package/systems.html">systems</a></li>
<li><a href="../package/telephony-skya.html">telephony-skya</a></li>
<li><a href="../package/terminal.html">terminal</a></li>
<li><a href="../package/terminal_pixel.html">terminal_pixel</a></li>
<li><a href="../package/text.html">text</a></li>
<li><a href="../package/ui.html">ui</a></li>
<li><a href="../package/us-infrastructure.html">us-infrastructure</a></li>
<li><a href="../package/user-interface.html">user-interface</a></li>
<li><a href="../package/video.html">video</a></li>
<li><a href="../package/vm.html">vm</a></li>
<li><a href="../package/web-server-technology.html">web-server-technology</a></li>
<li><a href="../package/website.html">website</a></li>
<li><a href="../package/wifi.html">wifi</a></li>
<li><a href="../package/xlt.html">xlt</a></li>
<li><a href="../package/xml.html">xml</a></li>
</ul>
</nav>
<main>
<div class="crumbs"><a href="../index.html">Home</a> › <a href="../packages.html">Packages</a> › hotlink</div>
<h1>Package <code>hotlink</code></h1>
<div class="lead">This package contains <strong>5</strong> source unit(s) defining <strong>5</strong> class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.</div>
<input class="search" placeholder="Filter on this page (Ctrl+F also works)…" oninput="flt(this.value)">
<h2 class="section" data-u="hotlink-demo">hotlink-demo <span class="pill syntax">#sleela 3.0</span> <span class="muted" style="font-size:13px">(lib/hotlink/hotlink-demo.sleela)</span></h2>
<div data-u="hotlink-demo hotlinkdemo">
<h3 id="HotLinkDemo">HotLinkDemo <span class="pill">class</span></h3>
<p class="desc">Runnable, self-checking demonstrator for the hot-link backing model. It seeds the standard matrix, then drives the linker: observer modules are hot-attached, the vertical-integration stack is expanded one tier per kind (0 to 16), connections are allowed only where the matrix declares them, value moves only along approved connections, and the refusal paths (cold type, trust floor, caps, duplicate, cycle, native authorizer and pinned digest, detach) all fail closed. Prints PASS or FAIL per check and a tally.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>passed</code></td><td><span class="sig">int passed</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>failed</code></td><td><span class="sig">int failed</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>check</code></td><td><span class="sig">void check(String label, boolean ok)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>banner</code></td><td><span class="sig">void banner(String t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slhotlinker">SLHotLinker <span class="pill syntax">#sleela 3.0</span> <span class="muted" style="font-size:13px">(lib/hotlink/SLHotLinker.sleela)</span></h2>
<div data-u="slhotlinker slhotlinker">
<h3 id="SLHotLinker">SLHotLinker <span class="pill">class</span></h3>
<p class="desc">Defines SLHotLinker — the gate every hot-loaded instance and every connection passes through. It checks an instance against its matrix row (known type, hot, trust floor, per-type cap, unique name, and for native code the host authorizer plus the host-pinned digest), records it, and for observer modules admits the port to the SLDocumentObserver. A connection is allowed only if the matrix declares the type pair, fan-out stays under the limit, and no instance-level cycle results. The linker approves; it never loads code itself. Everything is audited.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>matrix</code></td><td><span class="sig">SLHotLinkMatrix matrix</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>observer</code></td><td><span class="sig">SLDocumentObserver observer</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>names</code></td><td><span class="sig">String[] names</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>types</code></td><td><span class="sig">String[] types</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>states</code></td><td><span class="sig">int[] states</span></td><td class="desc">0 free, 1 linked, 2 detached</td></tr>
<tr><td><code>instCount</code></td><td><span class="sig">int instCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>linkFrom</code></td><td><span class="sig">int[] linkFrom</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>linkTo</code></td><td><span class="sig">int[] linkTo</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>linkLive</code></td><td><span class="sig">int[] linkLive</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>linkCount</code></td><td><span class="sig">int linkCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pinTypes</code></td><td><span class="sig">String[] pinTypes</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pinDigests</code></td><td><span class="sig">String[] pinDigests</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pinCount</code></td><td><span class="sig">int pinCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>authorizerGranted</code></td><td><span class="sig">int authorizerGranted</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>allowUnverified</code></td><td><span class="sig">int allowUnverified</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>trail</code></td><td><span class="sig">String[] trail</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>trailCount</code></td><td><span class="sig">int trailCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>trailLost</code></td><td><span class="sig">int trailLost</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>refused</code></td><td><span class="sig">int refused</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>preflightWhy</code></td><td><span class="sig">String preflightWhy</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">boolean configure(SLHotLinkMatrix m, SLDocumentObserver o)</span></td><td class="desc">The matrix must be sealed; an unsealed matrix is refused.</td></tr>
<tr><td><code>model</code></td><td><span class="sig">SLHotLinkMatrix model()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>instanceTotal</code></td><td><span class="sig">int instanceTotal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>refusedCount</code></td><td><span class="sig">int refusedCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>trailSize</code></td><td><span class="sig">int trailSize()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>trailOverflow</code></td><td><span class="sig">int trailOverflow()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>trailAt</code></td><td><span class="sig">String trailAt(int i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>audit</code></td><td><span class="sig">void audit(String entry)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>refuse</code></td><td><span class="sig">int refuse(String why)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>grantAuthorizer</code></td><td><span class="sig">void grantAuthorizer()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>permitUnverified</code></td><td><span class="sig">void permitUnverified(boolean on)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>revokeAuthorizer</code></td><td><span class="sig">void revokeAuthorizer()</span></td><td class="desc">Revoking the authorizer detaches every linked native-code instance.</td></tr>
<tr><td><code>pinIndex</code></td><td><span class="sig">int pinIndex(String typeId)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pinDigest</code></td><td><span class="sig">boolean pinDigest(String typeId, String digest)</span></td><td class="desc">Pin the expected digest of a host-pinned type. Allowed once; never changed.</td></tr>
<tr><td><code>indexOfName</code></td><td><span class="sig">int indexOfName(String name)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isLinked</code></td><td><span class="sig">boolean isLinked(String name)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>typeOfName</code></td><td><span class="sig">String typeOfName(String name)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>countOfType</code></td><td><span class="sig">int countOfType(String typeId)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>liveCount</code></td><td><span class="sig">int liveCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>preflight</code></td><td><span class="sig">int preflight(String typeId, String name, int trust, String digest)</span></td><td class="desc">Dry run of every attach check, changing and auditing nothing. Returns 0 when attach would succeed, 1 when it is refused for a reason that may pass later (cap reached, authorizer or digest not yet provided, unverified type not yet permitted), 2 when it is refused for good. preflightWhy holds the reason. attach() uses this same method, so the two can never disagree.</td></tr>
<tr><td><code>attach</code></td><td><span class="sig">int attach(String typeId, String name, int trust, String digest)</span></td><td class="desc">Approve one instance of a class type. Returns its slot, or -1 (audited). `digest` is only consulted for host-pinned types; pass "" otherwise.</td></tr>
<tr><td><code>attachModule</code></td><td><span class="sig">int attachModule(String typeId, String name, int trust, SLObserverPort port)</span></td><td class="desc">Approve an observer module and admit its port. The port name must equal the instance name. If the observer refuses, the attach is rolled back.</td></tr>
<tr><td><code>detach</code></td><td><span class="sig">boolean detach(String name)</span></td><td class="desc">Detach an instance: its links go, and an observer module is retired.</td></tr>
<tr><td><code>mayControl</code></td><td><span class="sig">boolean mayControl(String name, int trust, String verb)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pauseModule</code></td><td><span class="sig">boolean pauseModule(String name, int trust)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>resumeModule</code></td><td><span class="sig">boolean resumeModule(String name, int trust)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>alterModule</code></td><td><span class="sig">boolean alterModule(String name, int trust, int ins, int rep, int del, int first, int last)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>replaceModule</code></td><td><span class="sig">boolean replaceModule(String name, int trust, SLObserverPort fresh)</span></td><td class="desc">Hot-swap: the instance keeps its name, type, links and slot; only the port behind it changes.</td></tr>
<tr><td><code>reinstateModule</code></td><td><span class="sig">boolean reinstateModule(String name, int trust)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>linkIndex</code></td><td><span class="sig">int linkIndex(int a, int b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isConnected</code></td><td><span class="sig">boolean isConnected(String from, String to)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>liveLinks</code></td><td><span class="sig">int liveLinks()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>fanoutOf</code></td><td><span class="sig">int fanoutOf(int a, String toType)</span></td><td class="desc">Live links from instance a to any instance of type `toType`.</td></tr>
<tr><td><code>reaches</code></td><td><span class="sig">boolean reaches(int from, int to)</span></td><td class="desc">Does a live path lead from instance `from` to instance `to`?</td></tr>
<tr><td><code>linkPair</code></td><td><span class="sig">boolean linkPair(String from, String to)</span></td><td class="desc">Connect two linked instances. Allowed only if the matrix declares the type pair, fan-out is under the limit, the pair is new, and no instance cycle results. A contain self-type link between DIFFERENT instances is the only same-type link the matrix ever permits.</td></tr>
<tr><td><code>modeBetween</code></td><td><span class="sig">String modeBetween(String from, String to)</span></td><td class="desc">The matrix mode of a live connection (feed, subscribe, contain), or "".</td></tr>
<tr><td><code>unlinkPair</code></td><td><span class="sig">boolean unlinkPair(String from, String to)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slhotlinkintegration">SLHotLinkIntegration <span class="pill syntax">#sleela 3.0</span> <span class="muted" style="font-size:13px">(lib/hotlink/SLHotLinkIntegration.sleela)</span></h2>
<div data-u="slhotlinkintegration slhotlinkintegration">
<h3 id="SLHotLinkIntegration">SLHotLinkIntegration <span class="pill">class</span></h3>
<p class="desc">Defines SLHotLinkIntegration — the vertical-integration side of the backing model. It owns an SLVerticalIntegration and grows it only through the SLHotLinker: a tier is added by expand(), which first has the linker approve the compartment type for that kind. Value moves only where the linker says two instances are connected: deposit() puts units into a compartment from a connected module, and feed() moves units downstream between connected, adjacent tiers.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>model</code></td><td><span class="sig">SLVerticalIntegration model</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>linker</code></td><td><span class="sig">SLHotLinker linker</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>tierNames</code></td><td><span class="sig">String[] tierNames</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>tierTotal</code></td><td><span class="sig">int tierTotal</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String modelName, SLHotLinker l)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>stack</code></td><td><span class="sig">SLVerticalIntegration stack()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>tiers</code></td><td><span class="sig">int tiers()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>tierOf</code></td><td><span class="sig">int tierOf(String name)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>expand</code></td><td><span class="sig">SLCompartment expand(String name, String label, int kind, int trust)</span></td><td class="desc">Grow the stack by one tier of the given kind, if the linker approves. Returns the compartment, or null (the refusal is in the linker audit).</td></tr>
<tr><td><code>deposit</code></td><td><span class="sig">int deposit(String fromName, String toName, int amount)</span></td><td class="desc">A connected module puts units into a compartment. Returns units stored.</td></tr>
<tr><td><code>feed</code></td><td><span class="sig">int feed(String fromTier, String toTier, int amount)</span></td><td class="desc">Move units downstream between two connected tiers that are adjacent.</td></tr>
</table>
</div>
<h2 class="section" data-u="slhotlinkmatrix">SLHotLinkMatrix <span class="pill syntax">#sleela 3.0</span> <span class="muted" style="font-size:13px">(lib/hotlink/SLHotLinkMatrix.sleela)</span></h2>
<div data-u="slhotlinkmatrix slhotlinkmatrix">
<h3 id="SLHotLinkMatrix">SLHotLinkMatrix <span class="pill">class</span></h3>
<p class="desc">Defines SLHotLinkMatrix — the backing model of the hot-link matrix: which types of class may be hot-loaded, and which types may be connected to which. Everything is validated as it is added and a bad row or link is refused (fail closed). seal() freezes the matrix; SLHotLinker only accepts a sealed one. standard() seeds the matrix declared in hotlink-matrix.xml, and tools/validate_hotlink_matrix.py checks the two agree.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>rows</code></td><td><span class="sig">SLHotLinkRow[] rows</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rowCount</code></td><td><span class="sig">int rowCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>edgeFrom</code></td><td><span class="sig">String[] edgeFrom</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>edgeTo</code></td><td><span class="sig">String[] edgeTo</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>edgeMode</code></td><td><span class="sig">String[] edgeMode</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>edgeFanout</code></td><td><span class="sig">int[] edgeFanout</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>edgeCount</code></td><td><span class="sig">int edgeCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>frozen</code></td><td><span class="sig">int frozen</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>refused</code></td><td><span class="sig">int refused</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rowTotal</code></td><td><span class="sig">int rowTotal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>linkTotal</code></td><td><span class="sig">int linkTotal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>refusedCount</code></td><td><span class="sig">int refusedCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isSealed</code></td><td><span class="sig">boolean isSealed()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>seal</code></td><td><span class="sig">void seal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>indexOf</code></td><td><span class="sig">int indexOf(String typeId)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>find</code></td><td><span class="sig">SLHotLinkRow find(String typeId)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rowAt</code></td><td><span class="sig">SLHotLinkRow rowAt(int i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>typeForKind</code></td><td><span class="sig">String typeForKind(int kind)</span></td><td class="desc">The type that realises an SLIntegrationKind ordinal, or "" if none.</td></tr>
<tr><td><code>oneOf2</code></td><td><span class="sig">boolean oneOf2(String v, String a, String b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>oneOf3</code></td><td><span class="sig">boolean oneOf3(String v, String a, String b, String c)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>addRow</code></td><td><span class="sig">boolean addRow(String typeId, String code, String instance, String link,</span></td><td class="desc">Add a row. Refused (returns false, nothing changes) when sealed, when a field is out of vocabulary or range, or when the combination is unsafe: native code must require the authorizer and a host-pinned digest, and a compartment row must name a kind range that no other row already covers.</td></tr>
<tr><td><code>edgeIndex</code></td><td><span class="sig">int edgeIndex(String from, String to)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>typeReaches</code></td><td><span class="sig">boolean typeReaches(String from, String to)</span></td><td class="desc">Does the type graph already reach `to` from `from`? (self-links ignored)</td></tr>
<tr><td><code>addEdge</code></td><td><span class="sig">boolean addEdge(String from, String to, String mode, int fanout)</span></td><td class="desc">Add a permitted connection. Both ends must be hot types. Refused when sealed, unknown, duplicate, out of range, cycle-making, or a self-link in any mode other than contain.</td></tr>
<tr><td><code>edgeAllowed</code></td><td><span class="sig">boolean edgeAllowed(String from, String to)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>fanoutLimit</code></td><td><span class="sig">int fanoutLimit(String from, String to)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>edgeModeOf</code></td><td><span class="sig">String edgeModeOf(String from, String to)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>standard</code></td><td><span class="sig">int standard()</span></td><td class="desc">Seed the matrix declared in hotlink-matrix.xml and seal it. Returns the number of seeds that were refused (0 when everything is consistent).</td></tr>
</table>
</div>
<h2 class="section" data-u="slhotlinkrow">SLHotLinkRow <span class="pill syntax">#sleela 3.0</span> <span class="muted" style="font-size:13px">(lib/hotlink/SLHotLinkRow.sleela)</span></h2>
<div data-u="slhotlinkrow slhotlinkrow">
<h3 id="SLHotLinkRow">SLHotLinkRow <span class="pill">class</span></h3>
<p class="desc">Defines SLHotLinkRow — one row of the hot-link matrix: a TYPE of class that may join a running system, how its code and instances arrive, its contract with the host, the trust needed to bring it, and its cap. Mirrors a classType element of hotlink-matrix.xsd.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>id</code></td><td><span class="sig">String id</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>codeArrival</code></td><td><span class="sig">String codeArrival</span></td><td class="desc">linked | native</td></tr>
<tr><td><code>instanceArrival</code></td><td><span class="sig">String instanceArrival</span></td><td class="desc">hot | cold</td></tr>
<tr><td><code>contract</code></td><td><span class="sig">String contract</span></td><td class="desc">port | compartment | native-abi</td></tr>
<tr><td><code>minTrust</code></td><td><span class="sig">int minTrust</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>maxInstances</code></td><td><span class="sig">int maxInstances</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>kindFirst</code></td><td><span class="sig">int kindFirst</span></td><td class="desc">SLIntegrationKind range this type covers; -1 and -1 when not a compartment</td></tr>
<tr><td><code>kindLast</code></td><td><span class="sig">int kindLast</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>requiresAuthorizer</code></td><td><span class="sig">int requiresAuthorizer</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>digestPolicy</code></td><td><span class="sig">String digestPolicy</span></td><td class="desc">none | host-pinned</td></tr>
<tr><td><code>status</code></td><td><span class="sig">String status</span></td><td class="desc">verified | declared | unverified</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String typeId, String code, String instance, String link,</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getId</code></td><td><span class="sig">String getId()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getCodeArrival</code></td><td><span class="sig">String getCodeArrival()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getInstanceArrival</code></td><td><span class="sig">String getInstanceArrival()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getContract</code></td><td><span class="sig">String getContract()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getMinTrust</code></td><td><span class="sig">int getMinTrust()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getMaxInstances</code></td><td><span class="sig">int getMaxInstances()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getKindFirst</code></td><td><span class="sig">int getKindFirst()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getKindLast</code></td><td><span class="sig">int getKindLast()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>needsAuthorizer</code></td><td><span class="sig">boolean needsAuthorizer()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getDigestPolicy</code></td><td><span class="sig">String getDigestPolicy()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getStatus</code></td><td><span class="sig">String getStatus()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isHot</code></td><td><span class="sig">boolean isHot()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isNativeCode</code></td><td><span class="sig">boolean isNativeCode()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>coversKind</code></td><td><span class="sig">boolean coversKind(int kind)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<script>function flt(q){q=q.toLowerCase();document.querySelectorAll('[data-u]').forEach(function(el){el.style.display = el.getAttribute('data-u').indexOf(q)>=0||q==''?'':'none';});}</script>
<footer>
Generated by <code>tools/generate-sleeladoc-api.py</code> from the live
<code>/lib</code> tree on 2026-11-15 02:48 UTC.
SleelaDoc — the SLeeLa documentation brand. SLeeLa — MEARVK LLC · Max Rupplin · UNCW, NCSU, Harvard · 2026 · George Soros 2507-2608.
</footer>
</main>
</div>
</body>
</html>