bug fix: set simulation at configure

This commit is contained in:
nifi 2009-03-12 18:25:45 +00:00
parent 473a10caf2
commit 92e941f2c1

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: ContikiMoteType.java,v 1.33 2009/03/12 15:08:29 fros4943 Exp $ * $Id: ContikiMoteType.java,v 1.34 2009/03/12 18:25:45 nifi Exp $
*/ */
package se.sics.cooja.contikimote; package se.sics.cooja.contikimote;
@ -195,6 +195,7 @@ public class ContikiMoteType implements MoteType {
public boolean configureAndInit(Container parentContainer, Simulation simulation, public boolean configureAndInit(Container parentContainer, Simulation simulation,
boolean visAvailable) throws MoteTypeCreationException { boolean visAvailable) throws MoteTypeCreationException {
this.simulation = simulation;
myConfig = simulation.getGUI().getProjectConfig().clone(); myConfig = simulation.getGUI().getProjectConfig().clone();
if (visAvailable) { if (visAvailable) {