コード例 #1
0
 def __init__(self, subarea_name, model_name=None, model_short_name=None, *args, **kwargs):
     if model_name:
         self.model_name = model_name
     if model_short_name:
         self.model_short_name = model_short_name
     Model.__init__(self, *args, **kwargs)
     self.subarea_name=subarea_name
コード例 #2
0
 def __init__(self, location_dataset_name=None, job_location_id_name=None, dataset_pool=None):
     Model.__init__(self)
     self.dataset_pool = self.create_dataset_pool(dataset_pool)
     self._location_dataset_name = self._location_dataset_name_default
     self._job_location_id_name = self._job_location_id_name_default
     if location_dataset_name is not None:
         self._location_dataset_name = location_dataset_name
     if job_location_id_name is not None:
         self._job_location_id_name = job_location_id_name
     self.location_dataset = self.dataset_pool.get_dataset(self._location_dataset_name)
コード例 #3
0
 def __init__(self,
              location_dataset_name=None,
              job_location_id_name=None,
              dataset_pool=None):
     Model.__init__(self)
     self.dataset_pool = self.create_dataset_pool(dataset_pool)
     self._location_dataset_name = self._location_dataset_name_default
     self._job_location_id_name = self._job_location_id_name_default
     if location_dataset_name is not None:
         self._location_dataset_name = location_dataset_name
     if job_location_id_name is not None:
         self._job_location_id_name = job_location_id_name
     self.location_dataset = self.dataset_pool.get_dataset(
         self._location_dataset_name)
コード例 #4
0
 def __init__(self, model_name=None, *args, **kwargs):
     Model.__init__(self, *args, **kwargs)
     if model_name is not None:
         self.model_name = model_name
コード例 #5
0
 def __init__(self, model_name=None, *args, **kwargs):
     Model.__init__(self, *args, **kwargs)
     if model_name is not None:
         self.model_name = model_name
コード例 #6
0
ファイル: chunk_model.py プロジェクト: urban-ai/VIBe2UrbanSim
 def __init__(self, *args, **kwargs):
     self.number_of_chunks = 1
     self.index_of_current_chunk = 0
     Model.__init__(self, *args, **kwargs)
コード例 #7
0
ファイル: chunk_model.py プロジェクト: urban-ai/VIBe2UrbanSim
 def _get_status_piece_description(self):
     return "%s chunk: %s" % (Model._get_status_piece_description(self),
                              self.get_index_of_current_chunk() + 1)
コード例 #8
0
 def _get_status_piece_description(self):
     return "%s chunk: %s" % (Model._get_status_piece_description(self), self.get_index_of_current_chunk()+1)
コード例 #9
0
 def __init__(self, *args, **kwargs):
     self.number_of_chunks = 1
     self.index_of_current_chunk = 0
     Model.__init__(self, *args, **kwargs)