356 lines
6.8 KiB
JSON
356 lines
6.8 KiB
JSON
{
|
|
"events": [
|
|
{
|
|
"type": "new_junction",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "j1",
|
|
"coor": [ 50, 50 ],
|
|
"ls_strategy": {
|
|
"type": "round_robin_lss",
|
|
"data": { "timeslot": 5 }
|
|
},
|
|
"dq_strategy": {
|
|
"type": "move_first_dqs",
|
|
"data": {}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "new_junction",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "j2",
|
|
"coor": [ 50, 150 ],
|
|
"ls_strategy": {
|
|
"type": "round_robin_lss",
|
|
"data": { "timeslot": 5 }
|
|
},
|
|
"dq_strategy": {
|
|
"type": "move_first_dqs",
|
|
"data": {}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "new_junction",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "j3",
|
|
"coor": [ 150, 100 ],
|
|
"ls_strategy": {
|
|
"type": "round_robin_lss",
|
|
"data": { "timeslot": 5 }
|
|
},
|
|
"dq_strategy": {
|
|
"type": "move_first_dqs",
|
|
"data": {}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "new_junction",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "j4",
|
|
"coor": [ 250, 100 ],
|
|
"ls_strategy": {
|
|
"type": "round_robin_lss",
|
|
"data": { "timeslot": 15 }
|
|
},
|
|
"dq_strategy": {
|
|
"type": "move_first_dqs",
|
|
"data": {}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "new_junction",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "j5",
|
|
"coor": [ 350, 50 ],
|
|
"ls_strategy": {
|
|
"type": "round_robin_lss",
|
|
"data": { "timeslot": 5 }
|
|
},
|
|
"dq_strategy": {
|
|
"type": "move_first_dqs",
|
|
"data": {}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "new_junction",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "j6",
|
|
"coor": [ 350, 150 ],
|
|
"ls_strategy": {
|
|
"type": "round_robin_lss",
|
|
"data": { "timeslot": 5 }
|
|
},
|
|
"dq_strategy": {
|
|
"type": "move_first_dqs",
|
|
"data": {}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "new_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r1",
|
|
"src": "j1",
|
|
"dest": "j3",
|
|
"length": 10000,
|
|
"co2limit": 15000,
|
|
"maxspeed": 120,
|
|
"weather": "SUNNY"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r2",
|
|
"src": "j2",
|
|
"dest": "j3",
|
|
"length": 10000,
|
|
"co2limit": 10000,
|
|
"maxspeed": 120,
|
|
"weather": "SUNNY"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_inter_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r3",
|
|
"src": "j3",
|
|
"dest": "j4",
|
|
"length": 5000,
|
|
"co2limit": 500,
|
|
"maxspeed": 120,
|
|
"weather": "SUNNY"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r4",
|
|
"src": "j4",
|
|
"dest": "j5",
|
|
"length": 10000,
|
|
"co2limit": 15000,
|
|
"maxspeed": 120,
|
|
"weather": "STORM"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r5",
|
|
"src": "j4",
|
|
"dest": "j6",
|
|
"length": 10000,
|
|
"co2limit": 15000,
|
|
"maxspeed": 120,
|
|
"weather": "RAINY"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r6",
|
|
"src": "j5",
|
|
"dest": "j1",
|
|
"length": 15000,
|
|
"co2limit": 25000,
|
|
"maxspeed": 120,
|
|
"weather": "CLOUDY"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r7",
|
|
"src": "j6",
|
|
"dest": "j2",
|
|
"length": 15000,
|
|
"co2limit": 35000,
|
|
"maxspeed": 120,
|
|
"weather": "WINDY"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_inter_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r8",
|
|
"src": "j1",
|
|
"dest": "j2",
|
|
"length": 5000,
|
|
"co2limit": 500,
|
|
"maxspeed": 120,
|
|
"weather": "SUNNY"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_inter_city_road",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "r9",
|
|
"src": "j5",
|
|
"dest": "j6",
|
|
"length": 5000,
|
|
"co2limit": 500,
|
|
"maxspeed": 120,
|
|
"weather": "SUNNY"
|
|
}
|
|
},
|
|
{
|
|
"type": "new_vehicle",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "v1",
|
|
"maxspeed": 100,
|
|
"class": 3,
|
|
"itinerary": [ "j1", "j3", "j4", "j5", "j6" ]
|
|
}
|
|
},
|
|
{
|
|
"type": "new_vehicle",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "v2",
|
|
"maxspeed": 50,
|
|
"class": 0,
|
|
"itinerary": [ "j2", "j3", "j4", "j6" ]
|
|
}
|
|
},
|
|
{
|
|
"type": "new_vehicle",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "v3",
|
|
"maxspeed": 120,
|
|
"class": 0,
|
|
"itinerary": [ "j4", "j5", "j1", "j2", "j3" ]
|
|
}
|
|
},
|
|
{
|
|
"type": "new_vehicle",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "v4",
|
|
"maxspeed": 80,
|
|
"class": 0,
|
|
"itinerary": [ "j4", "j6", "j2" ]
|
|
}
|
|
},
|
|
{
|
|
"type": "new_vehicle",
|
|
"data": {
|
|
"time": 1,
|
|
"id": "v5",
|
|
"maxspeed": 200,
|
|
"class": 0,
|
|
"itinerary": [ "j3", "j4", "j5", "j1", "j3", "j4", "j6", "j2", "j3" ]
|
|
}
|
|
},
|
|
{
|
|
"type": "set_weather",
|
|
"data": {
|
|
"time": 100,
|
|
"info": [
|
|
{
|
|
"road": "r1",
|
|
"weather": "SUNNY"
|
|
},
|
|
{
|
|
"road": "r2",
|
|
"weather": "STORM"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "set_weather",
|
|
"data": {
|
|
"time": 150,
|
|
"info": [
|
|
{
|
|
"road": "r1",
|
|
"weather": "CLOUDY"
|
|
},
|
|
{
|
|
"road": "r2",
|
|
"weather": "STORM"
|
|
},
|
|
{
|
|
"road": "r9",
|
|
"weather": "STORM"
|
|
},
|
|
{
|
|
"road": "r8",
|
|
"weather": "WINDY"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "set_cont_class",
|
|
"data": {
|
|
"time": 200,
|
|
"info": [
|
|
{
|
|
"vehicle": "v4",
|
|
"class": 3
|
|
},
|
|
{
|
|
"vehicle": "v1",
|
|
"class": 0
|
|
},
|
|
{
|
|
"vehicle": "v2",
|
|
"class": 8
|
|
},
|
|
{
|
|
"vehicle": "v3",
|
|
"class": 2
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "set_cont_class",
|
|
"data": {
|
|
"time": 50,
|
|
"info": [
|
|
{
|
|
"vehicle": "v1",
|
|
"class": 5
|
|
},
|
|
{
|
|
"vehicle": "v2",
|
|
"class": 2
|
|
},
|
|
{
|
|
"vehicle": "v3",
|
|
"class": 7
|
|
},
|
|
{
|
|
"vehicle": "v5",
|
|
"class": 1
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|