next up previous index
Next: Model Configuration Up: Events Coordinator Previous: Events Coordinator   Index

The Run Method

Input:
model_configuration
- a Configuration object that determines project types and settings for each type (see Model Configuration of Section 23.4.2).
location_set
- a Dataset object to be updated.
development_event_set
- a DevelopmentEventDataset with development events to be used to update the locations.
development_type_set
- an object of class DevelopmentTypeDataset.
current_year
- an integer value determining the year of events by which the locations are updated.

Algorithm:
The method adds/replaces/removes development contained in development_event_set to/by/from location_set. It updates the location attributes given by 'units' of model_configuration. The type of change can be given in event set attribute 'type_of_change' as 'A' for add, 'R' for replace and 'D' for delete. The default type of change is 'A'. The method also determines a new development type for each location depending on the existing development.

Output
Returns a tuple of indices of locations that were modified, and indices of development events that were processed.


next up previous index
Next: Model Configuration Up: Events Coordinator Previous: Events Coordinator   Index
info (at) urbansim.org