Browse Source

Adds Connection and Protocol Template

Andreas T. Meyer-Berg 5 years ago
parent
commit
8ed574a5ad

+ 25 - 0
src/main/java/de/tu_darmstadt/tk/SmartHomeNetworkSim/core/Connection.java

@@ -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>();
+	}
+
+}

+ 10 - 0
src/main/java/de/tu_darmstadt/tk/SmartHomeNetworkSim/core/Protocol.java

@@ -0,0 +1,10 @@
+package de.tu_darmstadt.tk.SmartHomeNetworkSim.core;
+
+/**
+ * Protocol according to which the packages are created
+ * 
+ * @author Andreas T. Meyer-Berg
+ */
+public abstract class Protocol {
+
+}