#Set the one way added delay to connect to the cloud device1 = Server("Device", 200.) edge1 = Server("Edge1", 1000.) edge2 = Server("Edge2", 1000.) cloud1 = Server("Cloud1", 5000.) cloud2 = Server("Cloud2", 5000.) cloud3 = Server("Cloud3", 5000.) # Connect the devices with a given link combinations = [ (wifilink, edge2), ] # Defining our Task Patterns Tr = TaskPattern("Rendering", 2, 100000, 100000, 20) Tt = TaskPattern("Tracking", 10, 64000, 4000, 60) Tm = TaskPattern("Mapping", 26, 64000, 12000, 90) To = TaskPattern("Object_Recogniton", 15, 64000, 4000, 120) #Generate timeline # Unit is frame, 33FPS deltat = 33 tsimul = 0 Lsimul = 6000 * 33 tasklist = {} timesteps = [] while tsimul < Lsimul: # Initialize our timeline for this given step
#Set the one way added delay to connect to the cloud device1 = Server("Device", 200.) edge1 = Server("Edge1", 1000.) edge2 = Server("Edge2", 1000.) cloud1 = Server("Cloud1", 5000.) cloud2 = Server("Cloud2", 5000.) cloud3 = Server("Cloud3", 5000.) # Connect the devices with a given link combinations = [ (ltelink, edge1), ] # In a single scenario, we only consider one task per frame, that include all # the other tasks Tr = TaskPattern("Rendering", 6, 100000, 100000, 20) Tt = TaskPattern("Tracking", 16, 64000, 104000, 20) Tm = TaskPattern("Mapping", 30, 64000, 112000, 20) To = TaskPattern("Object_Recogniton", 18, 64000, 104000, 20) #Generate timeline # Unit is frame, 33FPS deltat = 33 tsimul = 0 Lsimul = 6000 * 33 tasklist = {} timesteps = [] while tsimul < Lsimul: # Initialize our timeline for this given step