We also create a number of utility functions that extract or create data regarding the economy. One set of utilities extracts data from an economy or its various subcomponents. Another set inserts data into an economy or its various subcomponents. [Note9]
Getting Data from the Automaton
One set of utilities extracts data from the automaton. Here is an example of the code.
Setting Data in the Automaton
A second set of utilities inserts data into an economy. Here is an example of the code.
Other utilities calculate the amount of each commodity produced by the sites in the economy. The following code provides an example.
Copyright © 2001 Wolfram Media, Inc. All rights reserved.