Beispiel #1
0
 def __init__(self,ident,parent, modes, edges, **kwargs):
         self._init_objman(  ident,parent=parent,
                             name = 'Mode OD tables',
                             info = 'Contains for each transport mode an OD trip table.',
                             xmltag = ('modesods','modeods','ids_mode'), **kwargs)
         
         print 'TurnflowModes.__init__',modes
         self.add_col(am.IdsArrayConf( 'ids_mode', modes, 
                                         groupnames = ['state'], 
                                         choices = MODES,
                                         name = 'ID mode', 
                                         is_index = True,
                                         #xmltag = 'vClass',
                                         info = 'ID of transport mode.',
                                         ))
         print '  self.ids_mode.is_index',self.ids_mode.is_index()
                                                                                       
         self.add_col(cm.ObjsConf( 'flowtables', 
                                         groupnames = ['state'], 
                                         name = 'Flows', 
                                         info = 'Flow generation per edge for a specific mode.',
                                         ))
         
         self.add_col(cm.ObjsConf( 'turntables', 
                                         groupnames = ['state'], 
                                         name = 'Turns', 
                                         info = 'Turn probabilities between edges for a specific mode.',
                                         ))
                                                                         
         self.add( cm.ObjConf( edges, is_child = False,groups = ['_private']))
Beispiel #2
0
    def __init__(self, ident, parent, modes, zones, **kwargs):
        self._init_objman(
            ident,
            parent=parent,
            name='Mode OD tables',
            info='Contains for each transport mode an OD trip table.',
            xmltag=('modesods', 'modeods', 'ids_mode'),
            **kwargs)

        self.add_col(
            am.IdsArrayConf(
                'ids_mode',
                modes,
                groupnames=['state'],
                choices=MODES,
                name='ID mode',
                xmltag='vClass',
                info='ID of transport mode.',
            ))

        self.add_col(
            cm.ObjsConf(
                'odtrips',
                groupnames=['state'],
                is_save=True,
                name='OD matrix',
                info=
                'Matrix with trips from origin to destintion for a specific mode.',
            ))

        self.add(cm.ObjConf(zones, is_child=False, groups=['_private']))
    def __init__(self, ident='odintervals',  parent=None, net=None, zones=None, **kwargs):
        self._init_objman(ident, parent=parent,  # = demand
                          name='OD Demand',
                          info='Contains origin-to-destination zone transport demand for different time intervals.',
                          xmltag=('odintervals', 'odinteval', None), **kwargs)

        self.add_col(am.ArrayConf('times_start', 0,
                                  groupnames=['state'],
                                  perm='rw',
                                  name='Start time',
                                  unit='s',
                                  info='Start time of interval in seconds (no fractional seconds).',
                                  xmltag='t_start',
                                  ))

        self.add_col(am.ArrayConf('times_end', 3600,
                                  groupnames=['state'],
                                  perm='rw',
                                  name='End time',
                                  unit='s',
                                  info='End time of interval in seconds (no fractional seconds).',
                                  xmltag='t_end',
                                  ))

        self.add_col(cm.ObjsConf('odmodes',
                                 groupnames=['state'],
                                 is_save=True,
                                 name='OD modes',
                                 info='OD transport demand for all transport modes within the respective time interval.',
                                 ))
        self.add(cm.ObjConf(net, is_child=False, groups=['_private']))
        self.add(cm.ObjConf(zones, is_child=False, groups=['_private']))
Beispiel #4
0
 def __init__(self, ident, demand, net, **kwargs):
         self._init_objman(  ident,parent = demand,# = demand
                             name = 'Turnflow Demand',
                             info = 'Contains flows and turn probailities for different modes and time intervals. Here demand data is ordered by time intervals.',
                             xmltag = ('turnflows','interval',None), **kwargs)
         
         
         
         self.add_col(am.ArrayConf(  'times_start', 0,
                                 groupnames = ['state'], 
                                 perm='rw', 
                                 name = 'Start time', 
                                 unit = 's',
                                 info = 'Start time of interval in seconds (no fractional seconds).',
                                 xmltag = 't_start',
                                 ))
         
         self.add_col(am.ArrayConf('times_end', 3600,
                                 groupnames = ['state'], 
                                 perm='rw', 
                                 name = 'End time', 
                                 unit = 's',
                                 info = 'End time of interval in seconds (no fractional seconds).',
                                 xmltag = 't_end',
                                 ))
                                 
         self.add_col(cm.ObjsConf( 'turnflowmodes', 
                                 groupnames = ['state'], 
                                 is_save = True,
                                 name = 'Turnflows by modes', 
                                 info = 'Turnflow transport demand for all transport modes within the respective time interval.',
                                 )) 
Beispiel #5
0
    def __init__(self,
                 ident='odintervals',
                 parent=None,
                 net=None,
                 zones=None,
                 **kwargs):
        self._init_objman(
            ident,
            parent=parent,  # = demand
            name='OD Demand',
            info=
            'Contains origin-to-destination zone transport demand for different time intervals.',
            xmltag=('odintervals', 'odinteval', None),
            **kwargs)

        self.add_col(
            am.ArrayConf(
                'times_start',
                0,
                groupnames=['state'],
                perm='rw',
                name='Start time',
                unit='s',
                info=
                'Start time of interval in seconds (no fractional seconds).',
                xmltag='t_start',
            ))

        self.add_col(
            am.ArrayConf(
                'times_end',
                3600,
                groupnames=['state'],
                perm='rw',
                name='End time',
                unit='s',
                info='End time of interval in seconds (no fractional seconds).',
                xmltag='t_end',
            ))

        activitytypes = self.parent.activitytypes
        self.add_col(
            am.IdsArrayConf(
                'ids_activitytype_orig',
                activitytypes,
                groupnames=['parameters'],
                perm='rw',
                #choices = activitytypes.names.get_indexmap(),
                name='Activity type at orig.',
                symbol='Act. orig.',
                info='Type of activity performed at origin, before the trip.',
                #xmltag = 'actType',
                #xmlmap = get_inversemap( activitytypes.names.get_indexmap()),
            ))

        self.add_col(
            am.IdsArrayConf(
                'ids_activitytype_dest',
                activitytypes,
                groupnames=['parameters'],
                perm='rw',
                #choices = activitytypes.names.get_indexmap(),
                name='Activity type at dest.',
                symbol='Act. dest.',
                info=
                'Type of activity performed at destination, after the trip.',
                #xmltag = 'actType',
                #xmlmap = get_inversemap( activitytypes.names.get_indexmap()),
            ))

        self.add_col(
            cm.ObjsConf(
                'odmodes',
                groupnames=['state'],
                is_save=True,
                name='OD modes',
                info=
                'OD transport demand for all transport modes within the respective time interval.',
            ))
        self.add(cm.ObjConf(net, is_child=False, groups=['_private']))
        self.add(cm.ObjConf(zones, is_child=False, groups=['_private']))