Added simulation as argument to moteType.getConfigXML() instead of each MoteType storing a reference to the simulation.
This commit is contained in:
parent
3da733ac55
commit
bea1b8d3a1
11 changed files with 16 additions and 42 deletions
|
@ -512,7 +512,7 @@ public class Simulation extends Observable implements Runnable {
|
|||
element = new Element("motetype");
|
||||
element.setText(moteType.getClass().getName());
|
||||
|
||||
Collection<Element> moteTypeXML = moteType.getConfigXML();
|
||||
Collection<Element> moteTypeXML = moteType.getConfigXML(this);
|
||||
if (moteTypeXML != null) {
|
||||
element.addContent(moteTypeXML);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue