fuck my life, this is so bad

This commit is contained in:
2021-04-06 01:43:07 +02:00
parent 17fabc368e
commit 8d8bbbf0ae
12 changed files with 277 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ import java.util.*;
public class Birbnetes {
static int numOfFogDevices = 2;
static int numOfClientsPerFogDevice = 10;
static int numOfClientsPerFogDevice = 1;
static List<FogDevice> fogDevices = new ArrayList<>();
static Map<String, Integer> getIdByName = new HashMap<>();
static List<Sensor> sensors = new ArrayList<>();
@@ -117,7 +117,7 @@ public class Birbnetes {
"OutputData");
actuators.add(actuator);
sensor.setGatewayDeviceId(lowLevelFogDevice.getId());
sensor.setLatency(6.0);
sensor.setLatency(10.0);
actuator.setGatewayDeviceId(lowLevelFogDevice.getId());
actuator.setLatency(1.0);
return lowLevelFogDevice;
@@ -156,7 +156,7 @@ public class Birbnetes {
Log.printLine("Starting Birbnetes...");
try {
Log.disable();
//Log.disable();
int num_user = 1; // number of cloud users
Calendar calendar = Calendar.getInstance();