Reference 〉 Function

Param.addKey(keystr)

If a per-breed or per-good parameter is instantiated and then a breed or good is added, this function updates the parameter with the new breed or good and assigns it the default value specified at the Param object’s instantiation.

This function should not be called directly; it is called automatically by model.addBreed() and Goods.add() as necessary.

WARNING: This is an internal function. Its use in user code is not recommended or supported, and its signature can change in future updates without warning. Use one of the suggested functions above instead, if applicable.

Parameters

  • key str, required

    The name of the breed or good to be added.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.