-symbolic_container(sys::MySolutionWrapper) = sys.sol</code></pre><p><code>MySolutionWrapper</code> wraps an <code>AbstractTimeseriesSolution</code> which already implements the interface. Since <code>symbolic_container</code> will return the wrapped solution, all method calls such as <code>is_parameter(sys::MySolutionWrapper, sym)</code> will be forwarded to <code>is_parameter(sys.sol, sym)</code>.</p><p>In cases where some methods need to function differently than those of the wrapped type, they can be selectively defined. For example, suppose <code>MySolutionWrapper</code> does not support observed quantities. The following method can be defined (in addition to the one above):</p><pre><code class="language-julia hljs">is_observed(sys::MySolutionWrapper, sym) = false</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../complete_sii/">« Implementing the Complete Symbolic Indexing Interface</a><a class="docs-footer-nextpage" href="../api/">API »</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="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.10.1 on <span class="colophon-date" title="Tuesday 8 April 2025 12:07">Tuesday 8 April 2025</span>. Using Julia version 1.11.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
0 commit comments