mote interface handler initialized by class array, not vector pointer
This commit is contained in:
parent
217d8cf0b3
commit
10d13f9dd3
1 changed files with 3 additions and 2 deletions
|
@ -26,12 +26,13 @@
|
||||||
* 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: MoteInterfaceHandler.java,v 1.5 2009/03/03 13:42:45 fros4943 Exp $
|
* $Id: MoteInterfaceHandler.java,v 1.6 2009/03/09 14:08:03 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja;
|
package se.sics.cooja;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import se.sics.cooja.interfaces.*;
|
import se.sics.cooja.interfaces.*;
|
||||||
|
|
||||||
|
@ -80,7 +81,7 @@ public class MoteInterfaceHandler {
|
||||||
* @param mote Mote
|
* @param mote Mote
|
||||||
* @param interfaceClasses Mote interface classes
|
* @param interfaceClasses Mote interface classes
|
||||||
*/
|
*/
|
||||||
public MoteInterfaceHandler(Mote mote, Vector<Class<? extends MoteInterface>> interfaceClasses) {
|
public MoteInterfaceHandler(Mote mote, Class<? extends MoteInterface>[] interfaceClasses) {
|
||||||
for (Class<? extends MoteInterface> interfaceClass : interfaceClasses) {
|
for (Class<? extends MoteInterface> interfaceClass : interfaceClasses) {
|
||||||
MoteInterface intf = MoteInterface.generateInterface(interfaceClass, mote);
|
MoteInterface intf = MoteInterface.generateInterface(interfaceClass, mote);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue