Exemplo n.º 1
0
 def __init__(self):
     Configuration.__init__(self, config)
     self.merge(my_configuration)
     if not my_configuration[
             'creating_baseyear_cache_configuration'].cache_from_database:
         del self[
             "input_configuration"]  # don't bother with the database if everything is in cache
Exemplo n.º 2
0
 def __init__(self):
     my_config = self._get_initial_config()
     Configuration.__init__(self, my_config)
Exemplo n.º 3
0
 def __init__(self):
     Configuration.__init__(self, config)
     self.merge(my_configuration)
     if not my_configuration['creating_baseyear_cache_configuration'].cache_from_database:
         del self["input_configuration"] # don't bother with the database if everything is in cache
Exemplo n.º 4
0
 def __init__(self):
     Configuration.__init__(self, self.__my_configuration())
Exemplo n.º 5
0
 def __init__(self):
     Configuration.__init__(
         self,
         data={
             "scenario_database_configuration": ScenarioDatabaseConfiguration(database_name="washtenaw_class"),
             "datasets_to_cache_after_each_model": [],
             "low_memory_mode": False,
             "creating_baseyear_cache_configuration": CreatingBaseyearCacheConfiguration(
                 unroll_gridcells=True,
                 cache_from_database=False,
                 baseyear_cache=BaseyearCacheConfiguration(
                     existing_cache_to_copy="/urbansim_cache/workshop/cache_source",
                     # years_to_cache  = range(1996,2001)
                 ),
                 tables_to_cache=[
                     "annual_employment_control_totals",
                     "annual_household_control_totals",
                     "buildings",
                     "building_types",
                     "development_event_history",
                     "gridcells",
                     "households",
                     "job_building_types",
                     "jobs",
                     "travel_data",
                     "zones",
                     "counties",
                     "commercial_development_location_choice_model_coefficients",
                     "commercial_development_location_choice_model_specification",
                     "commercial_employment_location_choice_model_coefficients",
                     "commercial_employment_location_choice_model_specification",
                     "home_based_employment_location_choice_model_specification",
                     "home_based_employment_location_choice_model_coefficients",
                     "industrial_employment_location_choice_model_coefficients",
                     "industrial_employment_location_choice_model_specification",
                     "industrial_development_location_choice_model_coefficients",
                     "industrial_development_location_choice_model_specification",
                     "residential_development_location_choice_model_coefficients",
                     "residential_development_location_choice_model_specification",
                     "fazes",
                     "urbansim_constants",
                     "household_location_choice_model_coefficients",
                     "household_location_choice_model_specification",
                     "land_price_model_coefficients",
                     "land_price_model_specification",
                     "residential_land_share_model_coefficients",
                     "residential_land_share_model_specification",
                     "plan_type_group_definitions",
                     "plan_type_groups",
                     "large_areas",
                     "household_characteristics_for_ht",
                     "development_types",
                     "development_type_group_definitions",
                     "development_constraints",
                     "annual_relocation_rates_for_households",
                     "annual_relocation_rates_for_jobs",
                     "base_year",
                     "cities",
                     "development_events",
                     "development_type_groups",
                     "employment_adhoc_sector_group_definitions",
                     "employment_adhoc_sector_groups",
                     "employment_sectors",
                     "plan_types",
                     "race_names",
                     "target_vacancies",
                     "jobs_for_estimation",
                     "households_for_estimation",
                     "development_events_exogenous",
                     "job_building_types",
                 ],
                 tables_to_cache_nchunks={"gridcells": 1},
                 tables_to_copy_to_previous_years={
                     "development_type_group_definitions": 1995,
                     "development_type_groups": 1995,
                     "development_types": 1995,
                     "development_constraints": 1995,
                     "urbansim_constants": 1995,
                 },
             ),
             "dataset_pool_configuration": DatasetPoolConfiguration(
                 package_order=["washtenaw", "urbansim", "opus_core"]
             ),
             "base_year": 2000,
             "years": (2000, 2000),
         },
     )
 def __init__(self):
     Configuration.__init__(self)
     estimation_changes = self._get_estimation_changes()
     self.merge(estimation_changes)
Exemplo n.º 7
0
 def __init__(self):
     Configuration.__init__(self, self.__my_configuration())
Exemplo n.º 8
0
 def __init__(self):
     Configuration.__init__(
         self,
         data={
             'scenario_database_configuration':
             ScenarioDatabaseConfiguration(
                 database_name="washtenaw_class", ),
             'datasets_to_cache_after_each_model': [],
             'low_memory_mode':
             False,
             'creating_baseyear_cache_configuration':
             CreatingBaseyearCacheConfiguration(
                 unroll_gridcells=True,
                 cache_from_database=False,
                 baseyear_cache=BaseyearCacheConfiguration(
                     existing_cache_to_copy=
                     '/urbansim_cache/workshop/cache_source',
                     #years_to_cache  = range(1996,2001)
                 ),
                 tables_to_cache=[
                     'annual_employment_control_totals',
                     'annual_household_control_totals', 'buildings',
                     'building_types', 'development_event_history',
                     'gridcells', 'households', 'job_building_types',
                     'jobs', 'travel_data', 'zones', 'counties',
                     'commercial_development_location_choice_model_coefficients',
                     'commercial_development_location_choice_model_specification',
                     'commercial_employment_location_choice_model_coefficients',
                     'commercial_employment_location_choice_model_specification',
                     'home_based_employment_location_choice_model_specification',
                     'home_based_employment_location_choice_model_coefficients',
                     'industrial_employment_location_choice_model_coefficients',
                     'industrial_employment_location_choice_model_specification',
                     'industrial_development_location_choice_model_coefficients',
                     'industrial_development_location_choice_model_specification',
                     'residential_development_location_choice_model_coefficients',
                     'residential_development_location_choice_model_specification',
                     'fazes', 'urbansim_constants',
                     'household_location_choice_model_coefficients',
                     'household_location_choice_model_specification',
                     'land_price_model_coefficients',
                     'land_price_model_specification',
                     'residential_land_share_model_coefficients',
                     'residential_land_share_model_specification',
                     'plan_type_group_definitions', 'plan_type_groups',
                     'large_areas', 'household_characteristics_for_ht',
                     'development_types',
                     'development_type_group_definitions',
                     'development_constraints',
                     'annual_relocation_rates_for_households',
                     'annual_relocation_rates_for_jobs', 'base_year',
                     'cities', 'development_events',
                     'development_type_groups',
                     'employment_adhoc_sector_group_definitions',
                     'employment_adhoc_sector_groups', 'employment_sectors',
                     'plan_types', 'race_names', 'target_vacancies',
                     'jobs_for_estimation', 'households_for_estimation',
                     'development_events_exogenous', 'job_building_types'
                 ],
                 tables_to_cache_nchunks={'gridcells': 1},
                 tables_to_copy_to_previous_years={
                     'development_type_group_definitions': 1995,
                     'development_type_groups': 1995,
                     'development_types': 1995,
                     'development_constraints': 1995,
                     'urbansim_constants': 1995,
                 },
             ),
             'dataset_pool_configuration':
             DatasetPoolConfiguration(
                 package_order=['washtenaw', 'urbansim', 'opus_core'], ),
             'base_year':
             2000,
             'years': (2000, 2000),
         })
Exemplo n.º 9
0
 def __init__(self, data={}):
     """The argument 'data' is a python native dictionary (class 'dict').
     """
     Configuration.__init__(self, data)
    def __init__(self):
        Configuration.__init__(self)
        self['models'] = [
                'real_estate_price_model',
                'development_project_transition_model',
                'commercial_development_project_location_choice_model',
                'industrial_development_project_location_choice_model',
                'residential_development_project_location_choice_model',
                'add_projects_to_buildings',
                'household_transition_model',
                'employment_transition_model',
                'household_relocation_model',
                'household_location_choice_model',
                'employment_relocation_model',
                {   'employment_location_choice_model': {   'group_members': '_all_'}},
                'distribute_unplaced_jobs_model',
                ]
        self['model_system'] = 'urbansim.model_coordinators.model_system'
        my_controller_configuration = {
        'real_estate_price_model': RealEstatePriceModelConfigurationCreator(
            dataset='building', 
            outcome_attribute = 'ln_unit_price=ln(building.avg_value)',
            submodel_string = 'building_type_id',
            filter_variable = None,
            ).execute(),
        'residential_development_project_location_choice_model': DevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'residential',
                        coefficients_table = 'residential_development_location_choice_model_coefficients',
                        specification_table = 'residential_development_location_choice_model_specification',
                        units = 'residential_units',
                        sampler = None,
                        capacity_string = 'urbansim_zone.zone.developable_residential_units',
                        ).execute(),
        'commercial_development_project_location_choice_model': DevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'commercial',
                        coefficients_table = 'commercial_development_location_choice_model_coefficients',
                        specification_table = 'commercial_development_location_choice_model_specification',
                        units = 'commercial_job_spaces',
                        sampler = None,
                        ).execute(),
        'industrial_development_project_location_choice_model': DevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'industrial',
                        coefficients_table = 'industrial_development_location_choice_model_coefficients',
                        specification_table = 'industrial_development_location_choice_model_specification',
                        units = 'industrial_job_spaces',
                        sampler = None,
                        ).execute(),
         'development_project_transition_model': DevelopmentProjectTransitionModelConfigurationCreator(
                        vacancy_variables = {"commercial": "urbansim_zone.zone.number_of_vacant_commercial_jobs",
                                             "industrial": "urbansim_zone.zone.number_of_vacant_industrial_jobs"
                                            },
                        output_results = 'dptm_results',
                        ).execute(),
        'add_projects_to_buildings': AddProjectsToBuildingsConfigurationCreator().execute(), 
        'employment_transition_model': 
                  EmploymentTransitionModelConfigurationCreator(
            location_id_name="zone_id",
            ).execute(),
        'household_transition_model': 
                  HouseholdTransitionModelConfigurationCreator(
            location_id_name="zone_id",
            ).execute(),
 
        'employment_relocation_model': 
                  EmploymentRelocationModelConfigurationCreator(
                               location_id_name = 'zone_id',
                               output_index = 'erm_index').execute(),
                               
        'household_relocation_model': HouseholdRelocationModelConfigurationCreator(
                        location_id_name = 'zone_id',
                        output_index = 'hrm_index',
                        ).execute(),
        'household_location_choice_model': HouseholdLocationChoiceModelConfigurationCreator(
                        location_set = "zone",
                        capacity_string = 'urbansim_zone.zone.vacant_residential_units',
                        estimation_weight_string = 'urbansim_zone.zone.vacant_residential_units',
                        portion_to_unplace = 1/3.0,
                        nchunks = 3,
                        number_of_units_string = None,                       
                        input_index = 'hrm_index',
                        ).execute(),
         'employment_location_choice_model': 
                   EmploymentLocationChoiceModelConfigurationCreator(
                                location_set = "zone",
                                input_index = 'erm_index',
                                agents_for_estimation_table = "jobs_for_estimation",
                                estimation_weight_string = None,
                                number_of_units_string = None,
                                portion_to_unplace = 0,
                                capacity_string = "urbansim_zone.zone.number_of_vacant_SSS_jobs",
                                ).execute(),
                                       
          'home_based_employment_location_choice_model': 
                   EmploymentLocationChoiceModelConfigurationCreator(
                                location_set = "zone",
                                input_index = 'erm_index',
                                estimation_weight_string = "urbansim.zone.number_of_households",
                                agents_for_estimation_table = None, # will take standard jobs table 
                                estimation_size_agents = 0.5,
                                number_of_units_string = None,
                                portion_to_unplace = 0,
                                capacity_string = "urbansim.zone.number_of_households",
                                ).execute(),
            'governmental_employment_location_choice_model': 
                   GovernmentalEmploymentLocationChoiceModelConfigurationCreator(
                        input_index = 'erm_index',
                        location_set = 'zone'
                        ).execute(),      
            'distribute_unplaced_jobs_model':  DistributeUnplacedJobsModelConfigurationCreator(
                                    location_set = 'zone'
                                            ).execute(),   
        }
        self['models_configuration'] = {}
        for model in my_controller_configuration.keys():
            if model not in self["models_configuration"].keys():
                self["models_configuration"][model] = {}
            self['models_configuration'][model]['controller'] = my_controller_configuration[model]

                
        self["datasets_to_preload"] = {
                'building':{},
                'zone':{},
                'household':{},
                'job': {},
                'job_building_type':{},
                'target_vacancy':{},
                'development_event_history':{},
                'building_type': {}
                }
Exemplo n.º 11
0
    def __init__(self):
        Configuration.__init__(self)
        self['residential_regional_development_project_location_choice_model'] = {
                    'controller': RegionalDevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'residential',
                        coefficients_table = 'residential_development_location_choice_model_coefficients',
                        specification_table = 'residential_development_location_choice_model_specification',
                        #submodel_string = None
                        ).execute(),
                    }
        self['commercial_regional_development_project_location_choice_model'] = {
                    'controller': RegionalDevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'commercial',
                        coefficients_table = 'commercial_development_location_choice_model_coefficients',
                        specification_table = 'commercial_development_location_choice_model_specification',
                        #submodel_string = None
                        ).execute(),
                    }
        self['industrial_regional_development_project_location_choice_model'] = {
                    'controller': RegionalDevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'industrial',
                        coefficients_table = 'industrial_development_location_choice_model_coefficients',
                        specification_table = 'industrial_development_location_choice_model_specification',
                        #submodel_string = None
                        ).execute(),
                    }
        self['regional_development_project_transition_model'] =  {
                    'controller': RegionalDevelopmentProjectTransitionModelConfigurationCreator(
                        output_results = 'dptm_results',
                        ).execute(),
                    }
        self['regional_household_transition_model'] = {
                    'controller': RegionalHouseholdTransitionModelConfigurationCreator().execute(),
                    }
        self['regional_employment_transition_model'] = {
                    'controller': RegionalEmploymentTransitionModelConfigurationCreator().execute(),
                    }
        self['regional_employment_location_choice_model'] = {
                    'controller': RegionalEmploymentLocationChoiceModelConfigurationCreator(
                        ).execute(),
                    }
        self['home_based_regional_employment_location_choice_model'] = {
                    'controller': HomeBasedRegionalEmploymentLocationChoiceModelConfigurationCreator(
                        ).execute(),
                    }
        self['governmental_regional_employment_location_choice_model'] = {
                    'controller': GovernmentalRegionalEmploymentLocationChoiceModelConfigurationCreator(
                        ).execute(),
                    }
        self['regional_household_location_choice_model'] = {
                    'controller': RegionalHouseholdLocationChoiceModelConfigurationCreator(
                        ).execute(),
                                                            }
        self['regional_household_relocation_model'] = {
                    'controller': RegionalHouseholdRelocationModelConfigurationCreator(
                        ).execute(),
                    }
        self['regional_employment_relocation_model'] = {
                    'controller': RegionalEmploymentRelocationModelConfigurationCreator(
                        ).execute(),
                    }
        self['regional_distribute_unplaced_jobs_model'] = {
                    'controller': RegionalDistributeUnplacedJobsModelConfigurationCreator(
                        ).execute(),
                    }
        self['jobs_event_model'] = {
                    'controller': JobsEventModelConfigurationCreator(
                        ).execute(),
                    }
        self['households_event_model'] = {
                    'controller': HouseholdsEventModelConfigurationCreator(
                        ).execute(),
                    }

#if __name__ == '__main__':
#    ControllerConfiguration()
 def __init__(self):
     Configuration.__init__(self, data = {
         'scenario_database_configuration':ScenarioDatabaseConfiguration(
             database_name = "washtenaw_class",
             ),
         'datasets_to_cache_after_each_model':[],
         'low_memory_mode':False,
         'creating_baseyear_cache_configuration':CreatingBaseyearCacheConfiguration(
             unroll_gridcells = True,
             cache_from_database = False,
             baseyear_cache = BaseyearCacheConfiguration(
                 existing_cache_to_copy = '/urbansim_cache/workshop/cache_source',
                 #years_to_cache  = range(1996,2001)
                 ),
             tables_to_cache = [
                 'annual_employment_control_totals',
                 'annual_household_control_totals',
                 'buildings',
                 'building_types',
                 'development_event_history',
                 'gridcells',
                 'households',
                 'job_building_types',
                 'jobs',
                 'travel_data',
                 'zones',
                 'counties',
                 'commercial_development_location_choice_model_coefficients',
                 'commercial_development_location_choice_model_specification',
                 'commercial_employment_location_choice_model_coefficients',
                 'commercial_employment_location_choice_model_specification',
                 'home_based_employment_location_choice_model_specification',
                 'home_based_employment_location_choice_model_coefficients',
                 'industrial_employment_location_choice_model_coefficients',
                 'industrial_employment_location_choice_model_specification',
                 'industrial_development_location_choice_model_coefficients',
                 'industrial_development_location_choice_model_specification',
                 'residential_development_location_choice_model_coefficients',
                 'residential_development_location_choice_model_specification',
                 'fazes',
                 'urbansim_constants',
                 'household_location_choice_model_coefficients',
                 'household_location_choice_model_specification',
                 'land_price_model_coefficients',
                 'land_price_model_specification',
                 'residential_land_share_model_coefficients',
                 'residential_land_share_model_specification',
                 'plan_type_group_definitions',
                 'plan_type_groups',
                 'large_areas',
                 'household_characteristics_for_ht',
                 'development_types',
                 'development_type_group_definitions',
                 'development_constraints',
                 'annual_relocation_rates_for_households',
                 'annual_relocation_rates_for_jobs',
                 'base_year',
                 'cities',
                 'development_events',
                 'development_type_groups',
                 'employment_adhoc_sector_group_definitions',
                 'employment_adhoc_sector_groups',
                 'employment_sectors',
                 'plan_types',
                 'race_names',
                 'target_vacancies',
                 'jobs_for_estimation',
                 'households_for_estimation',
                 'development_events_exogenous',
                 'job_building_types'
                 ],
             tables_to_cache_nchunks = {'gridcells':1},
             tables_to_copy_to_previous_years = {
                 'development_type_group_definitions':1995,
                 'development_type_groups':1995,
                 'development_types':1995,
                 'development_constraints':1995,
                 'urbansim_constants':1995,
                 },
             ),
         'dataset_pool_configuration': DatasetPoolConfiguration(
             package_order=['washtenaw', 'urbansim', 'opus_core'],
             ),
         'base_year': 2000,
         'years': (2000,2000),
         })
Exemplo n.º 13
0
    def __init__(self):
        Configuration.__init__(self)
        self['models'] = [
            'real_estate_price_model',
            'development_project_transition_model',
            'commercial_development_project_location_choice_model',
            'industrial_development_project_location_choice_model',
            'residential_development_project_location_choice_model',
            'add_projects_to_buildings',
            'household_transition_model',
            'employment_transition_model',
            'household_relocation_model',
            'household_location_choice_model',
            'employment_relocation_model',
            {
                'employment_location_choice_model': {
                    'group_members': '_all_'
                }
            },
            'distribute_unplaced_jobs_model',
        ]
        self['model_system'] = 'urbansim.model_coordinators.model_system'
        my_controller_configuration = {
            'real_estate_price_model':
            RealEstatePriceModelConfigurationCreator(
                dataset='building',
                outcome_attribute='ln_unit_price=ln(building.avg_value)',
                submodel_string='building_type_id',
                filter_variable=None,
            ).execute(),
            'residential_development_project_location_choice_model':
            DevelopmentProjectLocationChoiceModelConfigurationCreator(
                project_type='residential',
                coefficients_table=
                'residential_development_location_choice_model_coefficients',
                specification_table=
                'residential_development_location_choice_model_specification',
                units='residential_units',
                sampler=None,
                capacity_string=
                'urbansim_zone.zone.developable_residential_units',
            ).execute(),
            'commercial_development_project_location_choice_model':
            DevelopmentProjectLocationChoiceModelConfigurationCreator(
                project_type='commercial',
                coefficients_table=
                'commercial_development_location_choice_model_coefficients',
                specification_table=
                'commercial_development_location_choice_model_specification',
                units='commercial_job_spaces',
                sampler=None,
            ).execute(),
            'industrial_development_project_location_choice_model':
            DevelopmentProjectLocationChoiceModelConfigurationCreator(
                project_type='industrial',
                coefficients_table=
                'industrial_development_location_choice_model_coefficients',
                specification_table=
                'industrial_development_location_choice_model_specification',
                units='industrial_job_spaces',
                sampler=None,
            ).execute(),
            'development_project_transition_model':
            DevelopmentProjectTransitionModelConfigurationCreator(
                vacancy_variables={
                    "commercial":
                    "urbansim_zone.zone.number_of_vacant_commercial_jobs",
                    "industrial":
                    "urbansim_zone.zone.number_of_vacant_industrial_jobs"
                },
                output_results='dptm_results',
            ).execute(),
            'add_projects_to_buildings':
            AddProjectsToBuildingsConfigurationCreator().execute(),
            'employment_transition_model':
            EmploymentTransitionModelConfigurationCreator(
                location_id_name="zone_id", ).execute(),
            'household_transition_model':
            HouseholdTransitionModelConfigurationCreator(
                location_id_name="zone_id", ).execute(),
            'employment_relocation_model':
            EmploymentRelocationModelConfigurationCreator(
                location_id_name='zone_id',
                output_index='erm_index').execute(),
            'household_relocation_model':
            HouseholdRelocationModelConfigurationCreator(
                location_id_name='zone_id',
                output_index='hrm_index',
            ).execute(),
            'household_location_choice_model':
            HouseholdLocationChoiceModelConfigurationCreator(
                location_set="zone",
                capacity_string='urbansim_zone.zone.vacant_residential_units',
                estimation_weight_string=
                'urbansim_zone.zone.vacant_residential_units',
                portion_to_unplace=1 / 3.0,
                nchunks=3,
                number_of_units_string=None,
                input_index='hrm_index',
            ).execute(),
            'employment_location_choice_model':
            EmploymentLocationChoiceModelConfigurationCreator(
                location_set="zone",
                input_index='erm_index',
                agents_for_estimation_table="jobs_for_estimation",
                estimation_weight_string=None,
                number_of_units_string=None,
                portion_to_unplace=0,
                capacity_string="urbansim_zone.zone.number_of_vacant_SSS_jobs",
            ).execute(),
            'home_based_employment_location_choice_model':
            EmploymentLocationChoiceModelConfigurationCreator(
                location_set="zone",
                input_index='erm_index',
                estimation_weight_string="urbansim.zone.number_of_households",
                agents_for_estimation_table=
                None,  # will take standard jobs table 
                estimation_size_agents=0.5,
                number_of_units_string=None,
                portion_to_unplace=0,
                capacity_string="urbansim.zone.number_of_households",
            ).execute(),
            'governmental_employment_location_choice_model':
            GovernmentalEmploymentLocationChoiceModelConfigurationCreator(
                input_index='erm_index', location_set='zone').execute(),
            'distribute_unplaced_jobs_model':
            DistributeUnplacedJobsModelConfigurationCreator(
                location_set='zone').execute(),
        }
        self['models_configuration'] = {}
        for model in my_controller_configuration.keys():
            if model not in self["models_configuration"].keys():
                self["models_configuration"][model] = {}
            self['models_configuration'][model][
                'controller'] = my_controller_configuration[model]

        self["datasets_to_preload"] = {
            'building': {},
            'zone': {},
            'household': {},
            'job': {},
            'job_building_type': {},
            'target_vacancy': {},
            'development_event_history': {},
            'building_type': {}
        }
Exemplo n.º 14
0
 def __init__(self):
     Configuration.__init__(self)
     estimation_changes = self._get_estimation_changes()
     self.merge(estimation_changes)
 def __init__(self):
     my_config = self._get_initial_config()
     Configuration.__init__(self, my_config)
Exemplo n.º 16
0
    def __init__(self):
        Configuration.__init__(self)
        self['residential_regional_development_project_location_choice_model'] = {
                    'controller': RegionalDevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'residential',
                        coefficients_table = 'residential_development_location_choice_model_coefficients',
                        specification_table = 'residential_development_location_choice_model_specification',
                        #submodel_string = None
                        ).execute(),
                    }
        self['commercial_regional_development_project_location_choice_model'] = {
                    'controller': RegionalDevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'commercial',
                        coefficients_table = 'commercial_development_location_choice_model_coefficients',
                        specification_table = 'commercial_development_location_choice_model_specification',
                        #submodel_string = None
                        ).execute(),
                    }
        self['industrial_regional_development_project_location_choice_model'] = {
                    'controller': RegionalDevelopmentProjectLocationChoiceModelConfigurationCreator(
                        project_type = 'industrial',
                        coefficients_table = 'industrial_development_location_choice_model_coefficients',
                        specification_table = 'industrial_development_location_choice_model_specification',
                        #submodel_string = None
                        ).execute(),
                    }
        self['regional_development_project_transition_model'] =  {
                    'controller': RegionalDevelopmentProjectTransitionModelConfigurationCreator(
                        output_results = 'dptm_results',
                        ).execute(),
                    }
        self['regional_household_transition_model'] = {
                    'controller': RegionalHouseholdTransitionModelConfigurationCreator().execute(),
                    }
        self['regional_employment_transition_model'] = {
                    'controller': RegionalEmploymentTransitionModelConfigurationCreator().execute(),
                    }
        self['regional_employment_location_choice_model'] = {
                    'controller': RegionalEmploymentLocationChoiceModelConfigurationCreator(
                        ).execute(),
                    }
        self['home_based_regional_employment_location_choice_model'] = {
                    'controller': HomeBasedRegionalEmploymentLocationChoiceModelConfigurationCreator(
                        ).execute(),
                    }
        self['governmental_regional_employment_location_choice_model'] = {
                    'controller': GovernmentalRegionalEmploymentLocationChoiceModelConfigurationCreator(
                        ).execute(),
                    }
        self['regional_household_location_choice_model'] = {
                    'controller': RegionalHouseholdLocationChoiceModelConfigurationCreator(
                        ).execute(),
                                                            }
        self['regional_household_relocation_model'] = {
                    'controller': RegionalHouseholdRelocationModelConfigurationCreator(
                        ).execute(),
                    }
        self['regional_employment_relocation_model'] = {
                    'controller': RegionalEmploymentRelocationModelConfigurationCreator(
                        ).execute(),
                    }
        self['regional_distribute_unplaced_jobs_model'] = {
                    'controller': RegionalDistributeUnplacedJobsModelConfigurationCreator(
                        ).execute(),
                    }
        self['jobs_event_model'] = {
                    'controller': JobsEventModelConfigurationCreator(
                        ).execute(),
                    }
        self['households_event_model'] = {
                    'controller': HouseholdsEventModelConfigurationCreator(
                        ).execute(),
                    }

#if __name__ == '__main__':
#    ControllerConfiguration()
Exemplo n.º 17
0
 def __init__(self, data={}):
     """The argument 'data' is a python native dictionary (class 'dict').
     """ 
     Configuration.__init__(self, data)