start DGRMVisualizerSkin in cooja_default.config now
instead of starting in DirectedGraphMedium
This commit is contained in:
parent
123a7081f2
commit
1ef80859ea
2 changed files with 1 additions and 8 deletions
|
@ -6,4 +6,5 @@ org.contikios.cooja.Cooja.MOTETYPES = org.contikios.cooja.motes.ImportAppMoteTyp
|
|||
org.contikios.cooja.Cooja.PLUGINS = org.contikios.cooja.plugins.Visualizer org.contikios.cooja.plugins.LogListener org.contikios.cooja.plugins.TimeLine org.contikios.cooja.plugins.MoteInformation org.contikios.cooja.plugins.MoteInterfaceViewer org.contikios.cooja.plugins.VariableWatcher org.contikios.cooja.plugins.EventListener org.contikios.cooja.plugins.RadioLogger org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.Notes org.contikios.cooja.plugins.BufferListener org.contikios.cooja.plugins.DGRMConfigurator
|
||||
org.contikios.cooja.Cooja.POSITIONERS = org.contikios.cooja.positioners.RandomPositioner org.contikios.cooja.positioners.LinearPositioner org.contikios.cooja.positioners.EllipsePositioner org.contikios.cooja.positioners.ManualPositioner
|
||||
org.contikios.cooja.Cooja.RADIOMEDIUMS = org.contikios.cooja.radiomediums.UDGM org.contikios.cooja.radiomediums.UDGMConstantLoss org.contikios.cooja.radiomediums.DirectedGraphMedium org.contikios.cooja.radiomediums.SilentRadioMedium
|
||||
org.contikios.cooja.plugins.Visualizer.SKINS = org.contikios.cooja.plugins.skins.DGRMVisualizerSkin
|
||||
|
||||
|
|
|
@ -46,7 +46,6 @@ import org.contikios.cooja.RadioConnection;
|
|||
import org.contikios.cooja.Simulation;
|
||||
import org.contikios.cooja.interfaces.Radio;
|
||||
import org.contikios.cooja.plugins.Visualizer;
|
||||
import org.contikios.cooja.plugins.skins.DGRMVisualizerSkin;
|
||||
|
||||
/**
|
||||
* Directed Graph Radio Medium.
|
||||
|
@ -76,7 +75,6 @@ public class DirectedGraphMedium extends AbstractRadioMedium {
|
|||
public DirectedGraphMedium() {
|
||||
/* Do not initialize radio medium: use only for hash table */
|
||||
super(null);
|
||||
Visualizer.registerVisualizerSkin(DGRMVisualizerSkin.class);
|
||||
}
|
||||
|
||||
public DirectedGraphMedium(Simulation simulation) {
|
||||
|
@ -85,16 +83,10 @@ public class DirectedGraphMedium extends AbstractRadioMedium {
|
|||
random = simulation.getRandomGenerator();
|
||||
|
||||
requestEdgeAnalysis();
|
||||
|
||||
/* Register visualizer skin */
|
||||
Visualizer.registerVisualizerSkin(DGRMVisualizerSkin.class);
|
||||
}
|
||||
|
||||
public void removed() {
|
||||
super.removed();
|
||||
|
||||
/* Unregister visualizer skin */
|
||||
Visualizer.unregisterVisualizerSkin(DGRMVisualizerSkin.class);
|
||||
}
|
||||
|
||||
public void addEdge(Edge e) {
|
||||
|
|
Loading…
Reference in a new issue