Reference 〉Class

Good( )

Stores data on registered goods. Should not be instantiated directly; instead, use model.addGood(). The properties of the Good object correspond to the arguments of that function.

Properties

  • color Color

    A Color object storing the color used to plot the good. This can be passed instead of a hex value in most places that take a color as an argument.

  • color2 Color

    A lighter color used for secondary plotting.

  • endowment num|func

    If a number, the amount of the good agents begin with. If a function, takes the breed as an argument and returns the amount given to agents initially.

  • money bool

    Whether the good is being used as a numeraire or not. At most one good in any model should have this property set to True, the good corresponding to model.moneyGood.

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.