Skip to content

Commit

Permalink
initialize sensors list
Browse files Browse the repository at this point in the history
  • Loading branch information
saina-ramyar committed Oct 23, 2023
1 parent 3967e5e commit b812ebb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.List;
import java.util.ArrayList;


import org.eclipse.mosaic.lib.geo.CartesianPoint;
import org.eclipse.mosaic.lib.objects.detector.DetectedObject;
Expand All @@ -44,7 +46,7 @@ public class InfrastructureInstance {
private int simulatedInteractionPort;
private CartesianPoint location = null;
private DatagramSocket socket = null;
private List<Detector> sensors;
private List<Detector> sensors = new ArrayList<>();

/**
* Constructor for InfrastructureInstance
Expand Down

0 comments on commit b812ebb

Please sign in to comment.