示例#1
0
def creat_traffic_zone_4node():
#   add_zone(key, activity_list, node_list, access_list, population)
    add_zone(10,   ['home-am','home-pm'], 30000)
    add_zone(20,   ['school'],            0)
    add_zone(30,   ['shopping', 'restaurant'],          0)
    add_zone(40,   ['work'],              0)
    elem.zone_list.sort()
示例#2
0
def creat_traffic_zone_6node():
#   add_zone(key, activity_list)
    add_work(10,   10000, 0.0)
    add_work(20,   10000, 10.0)
    add_home(30,   20000, 0.0)
    # add_home(40,   20000, 0.0)
    
    # persons in the household
    add_person(1, 10, 30, 10000)
    add_person(2, 20, 30, 10000)

    add_zone(40,   ['restaurent', 'joint-restaurent'])
    add_zone(50,   ['shopping', 'joint-shopping'])
    add_zone(60,   ['shopping', 'restaurent'])

    elem.zone_list.sort()