|
@@ -0,0 +1,25 @@
|
|
|
+package de.tu_darmstadt.tk.SmartHomeNetworkSim.core;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Connection between two or more SmartDevices, which sends packages according to a specified protocol
|
|
|
+ *
|
|
|
+ * @author Andreas T. Meyer-Berg
|
|
|
+ */
|
|
|
+public class Connection {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Devices communicating via this connection
|
|
|
+ */
|
|
|
+ List<SmartDevice> devices;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Creates a new Connection, without participants
|
|
|
+ */
|
|
|
+ public Connection() {
|
|
|
+ devices = new ArrayList<SmartDevice>();
|
|
|
+ }
|
|
|
+
|
|
|
+}
|