next up previous index
Next: Model Configuration Up: Development Event Transition Model Previous: Development Event Transition Model   Index

The Run Method

Input:
projects
- a dictionary where key is the type of development project and value is an instance of DevelopmentProjectDataset for that particular project type.
types
- a list of project types which the resulting event should consist of.
units
- a list of attribute names (defined as dataset qualified names) that determine the units for each project type (e.g. ``commercial_sqft'' for copmmercial type or ``residential_units'' for residential type). The ordering in the list must correspond to the ordering in types.
year
- an integer indicating for which year this events are created. Default value is 0.
location_id_name
- name of the project attribute that determines locations. Default value is ``grid_id''.

Algorithm:
It generates a distinct set of all locations in which at least one project is located. It creates a DevelopmentEventDataset of size of number of those locations. It has an attribute given in location_id_name with id values of the locations. Furthermore, it has all attributes given in the argument units. Values for each of these attributes are the sums of values of the attribute of the same name in the corresponding project dataset over the corresponding locations. It also has an attribute ``scheduled_year'' with the same value for each location, namely the one given in the argument year. Additional attributes type + ``_improvement_value'' contain the sum of the project set attribute ``improvement_value'' over the corresponding locations.

Output
The model returns an instance of DevelopmentEventDataset.


next up previous index
Next: Model Configuration Up: Development Event Transition Model Previous: Development Event Transition Model   Index
info (at) urbansim.org