mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
changed method name
This commit is contained in:
parent
30e0584ec5
commit
b2516a09ef
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: GUI.java,v 1.13 2007/01/09 10:27:53 fros4943 Exp $
|
||||
* $Id: GUI.java,v 1.14 2007/01/10 09:03:02 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja;
|
||||
@ -773,7 +773,7 @@ public class GUI {
|
||||
Class<? extends RadioMedium> radioMediumClass = gui.tryLoadClass(gui,
|
||||
RadioMedium.class, radioMediumClassName);
|
||||
|
||||
RadioMedium radioMedium = RadioMedium.generateInterface(radioMediumClass, simulation);
|
||||
RadioMedium radioMedium = RadioMedium.generateRadioMedium(radioMediumClass, simulation);
|
||||
simulation.setRadioMedium(radioMedium);
|
||||
} catch (Exception e) {
|
||||
logger.fatal(">> Failed to load radio medium, aborting: "
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: RadioMedium.java,v 1.2 2007/01/09 10:18:08 fros4943 Exp $
|
||||
* $Id: RadioMedium.java,v 1.3 2007/01/10 09:02:17 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja;
|
||||
@ -190,7 +190,7 @@ public abstract class RadioMedium {
|
||||
*
|
||||
* @return Radio medium instance
|
||||
*/
|
||||
public static final RadioMedium generateInterface(
|
||||
public static final RadioMedium generateRadioMedium(
|
||||
Class<? extends RadioMedium> radioMediumClass, Simulation simulation)
|
||||
throws NoSuchMethodException, InvocationTargetException,
|
||||
IllegalAccessException, InstantiationException {
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: Simulation.java,v 1.7 2007/01/09 10:21:08 fros4943 Exp $
|
||||
* $Id: Simulation.java,v 1.8 2007/01/10 09:02:38 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja;
|
||||
@ -342,7 +342,7 @@ public class Simulation extends Observable implements Runnable {
|
||||
if (radioMediumClass != null) {
|
||||
// Create radio medium specified in config
|
||||
try {
|
||||
currentRadioMedium = RadioMedium.generateInterface(radioMediumClass, this);
|
||||
currentRadioMedium = RadioMedium.generateRadioMedium(radioMediumClass, this);
|
||||
} catch (Exception e) {
|
||||
currentRadioMedium = null;
|
||||
logger.warn("Could not load radio medium class: "
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: CreateSimDialog.java,v 1.2 2007/01/09 10:03:51 fros4943 Exp $
|
||||
* $Id: CreateSimDialog.java,v 1.3 2007/01/10 09:04:01 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja.dialogs;
|
||||
@ -319,7 +319,7 @@ public class CreateSimDialog extends JDialog {
|
||||
|
||||
if (currentRadioMediumDescription.equals(radioMediumDescription)) {
|
||||
try {
|
||||
RadioMedium radioMedium = RadioMedium.generateInterface(radioMediumClass, mySimulation);
|
||||
RadioMedium radioMedium = RadioMedium.generateRadioMedium(radioMediumClass, mySimulation);
|
||||
mySimulation.setRadioMedium(radioMedium);
|
||||
} catch (Exception ex) {
|
||||
logger.fatal("Exception when creating radio medium: " + ex);
|
||||
|
Loading…
Reference in New Issue
Block a user