Commit 62b25401 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Made 5GDatabases available via Binder

parent 50d69bb1
...@@ -25,6 +25,7 @@ import java.util.Map; ...@@ -25,6 +25,7 @@ import java.util.Map;
import de.tud.kom.p2psim.impl.topology.views.VisualizationTopologyView.VisualizationInjector; import de.tud.kom.p2psim.impl.topology.views.VisualizationTopologyView.VisualizationInjector;
import de.tud.kom.p2psim.impl.topology.views.visualization.world.FiveGVisualization; import de.tud.kom.p2psim.impl.topology.views.visualization.world.FiveGVisualization;
import de.tudarmstadt.maki.simonstrator.api.Binder;
import de.tudarmstadt.maki.simonstrator.api.Event; import de.tudarmstadt.maki.simonstrator.api.Event;
import de.tudarmstadt.maki.simonstrator.api.EventHandler; import de.tudarmstadt.maki.simonstrator.api.EventHandler;
import de.tudarmstadt.maki.simonstrator.api.Time; import de.tudarmstadt.maki.simonstrator.api.Time;
...@@ -58,6 +59,7 @@ public abstract class AbstractGridBasedTopologyDatabase ...@@ -58,6 +59,7 @@ public abstract class AbstractGridBasedTopologyDatabase
*/ */
public AbstractGridBasedTopologyDatabase(int gridSize, public AbstractGridBasedTopologyDatabase(int gridSize,
boolean supportCloudlets) { boolean supportCloudlets) {
Binder.registerComponent(this);
this.gridSize = gridSize; this.gridSize = gridSize;
this.cloudEntries = new LinkedHashMap<>(); this.cloudEntries = new LinkedHashMap<>();
this.cloudletEntries = new LinkedHashMap<>(); this.cloudletEntries = new LinkedHashMap<>();
......
...@@ -23,6 +23,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg; ...@@ -23,6 +23,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg;
import de.tud.kom.p2psim.api.linklayer.mac.MacAddress; import de.tud.kom.p2psim.api.linklayer.mac.MacAddress;
import de.tud.kom.p2psim.impl.topology.views.FiveGTopologyView; import de.tud.kom.p2psim.impl.topology.views.FiveGTopologyView;
import de.tud.kom.p2psim.impl.topology.views.FiveGTopologyView.CellLink; import de.tud.kom.p2psim.impl.topology.views.FiveGTopologyView.CellLink;
import de.tudarmstadt.maki.simonstrator.api.component.GlobalComponent;
/** /**
* Database for the {@link FiveGTopologyView} - containing a mapping of position * Database for the {@link FiveGTopologyView} - containing a mapping of position
...@@ -35,7 +36,7 @@ import de.tud.kom.p2psim.impl.topology.views.FiveGTopologyView.CellLink; ...@@ -35,7 +36,7 @@ import de.tud.kom.p2psim.impl.topology.views.FiveGTopologyView.CellLink;
* @author Bjoern Richerzhagen * @author Bjoern Richerzhagen
* @version 1.0, Nov 5, 2015 * @version 1.0, Nov 5, 2015
*/ */
public interface FiveGTopologyDatabase { public interface FiveGTopologyDatabase extends GlobalComponent {
/** /**
* Calculation of a segment ID based on a position (usually given in * Calculation of a segment ID based on a position (usually given in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment