|
@@ -4,14 +4,14 @@ import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
- * Model of the smart home, which contains all the important parts of the simulation, like {@link SmartDevice} and their {@link Connection}.
|
|
|
+ * Model of the smart home, which contains all the important parts of the simulation, like {@link SmartDevice} and their {@link Link}.
|
|
|
*
|
|
|
* @author Andreas T. Meyer-Berg
|
|
|
*/
|
|
|
public class Model {
|
|
|
|
|
|
private List<SmartDevice> devices;
|
|
|
- private List<Connection> connectionNetworks;
|
|
|
+ private List<Link> connectionNetworks;
|
|
|
|
|
|
|
|
|
* Initializes the Model, with 3 default devices for testing purposes
|
|
@@ -19,7 +19,7 @@ public class Model {
|
|
|
public Model() {
|
|
|
|
|
|
devices = new ArrayList<SmartDevice>();
|
|
|
- connectionNetworks = new ArrayList<Connection>();
|
|
|
+ connectionNetworks = new ArrayList<Link>();
|
|
|
|
|
|
SmartDevice A = new SmartDevice("SmartTV");
|
|
|
A.setX(50);
|
|
@@ -39,7 +39,7 @@ public class Model {
|
|
|
|
|
|
* @return the connectionNetworks
|
|
|
*/
|
|
|
- public List<Connection> getConnectionNetworks() {
|
|
|
+ public List<Link> getConnectionNetworks() {
|
|
|
return connectionNetworks;
|
|
|
}
|
|
|
|
|
@@ -47,7 +47,7 @@ public class Model {
|
|
|
* Adds network connection
|
|
|
* @param connectionNetwork the connectionNetwork to add
|
|
|
*/
|
|
|
- public void addConnectionNetwork(Connection connectionNetwork) {
|
|
|
+ public void addConnectionNetwork(Link connectionNetwork) {
|
|
|
this.connectionNetworks.add(connectionNetwork);
|
|
|
}
|
|
|
|