-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.py
21 lines (17 loc) · 1.07 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import simpy
from utils import config
from simulator.simulator import Simulator
"""
_______ ___ ___ ___ _____ ___ _______ ___________
/" "||" | |" \/" |(\" \|" \ /" "|(" _ ")
(: ______)|| | \ \ / |.\\ \ |(: ______) )__/ \\__/
\/ | |: | \\ \/ |: \. \\ | \/ | \\_ /
// ___) \ |___ / / |. \ \. | // ___)_ |. |
(: ( ( \_|: \ / / | \ \ |(: "| \: |
\__/ \_______)|___/ \___|\____\) \_______) \__|
"""
if __name__ == "__main__":
env = simpy.Environment()
channel_states = {i: simpy.Resource(env, capacity=1) for i in range(config.NUMBER_OF_DRONES)}
sim = Simulator(seed=2024, env=env, channel_states=channel_states, n_drones=config.NUMBER_OF_DRONES)
env.run(until=config.SIM_TIME)