new mote interfaces api + name changes

This commit is contained in:
fros4943 2009-03-09 15:39:33 +00:00
parent 74647ce2de
commit f3ca86b261
3 changed files with 9 additions and 7 deletions

View File

@ -24,7 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: EventListener.java,v 1.7 2008/02/07 10:47:56 fros4943 Exp $ * $Id: EventListener.java,v 1.8 2009/03/09 15:39:33 fros4943 Exp $
*/ */
package se.sics.cooja.plugins; package se.sics.cooja.plugins;
@ -161,8 +161,10 @@ public class EventListener extends VisPlugin {
for (MoteType moteType : simulationToControl.getMoteTypes()) { for (MoteType moteType : simulationToControl.getMoteTypes()) {
if (moteType instanceof ContikiMoteType) { if (moteType instanceof ContikiMoteType) {
allInterfacesDups.addAll(((ContikiMoteType) moteType) Class<? extends MoteInterface>[] arr = ((ContikiMoteType) moteType).getMoteInterfaceClasses();
.getMoteInterfaces()); for (Class<? extends MoteInterface> intf : arr) {
allInterfacesDups.add(intf);
}
} }
} }
for (Class<? extends MoteInterface> moteTypeClass : allInterfacesDups) { for (Class<? extends MoteInterface> moteTypeClass : allInterfacesDups) {

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: MoteInterfaceViewer.java,v 1.4 2008/10/28 14:09:25 fros4943 Exp $ * $Id: MoteInterfaceViewer.java,v 1.5 2009/03/09 15:39:33 fros4943 Exp $
*/ */
package se.sics.cooja.plugins; package se.sics.cooja.plugins;
@ -43,7 +43,7 @@ import se.sics.cooja.*;
/** /**
* Mote Interface Viewer views information about a specific mote interface. * Mote Interface Viewer views information about a specific mote interface.
* *
* @author Fredrik Österlind * @author Fredrik Osterlind
*/ */
@ClassDescription("Mote Interface Viewer") @ClassDescription("Mote Interface Viewer")
@PluginType(PluginType.MOTE_PLUGIN) @PluginType(PluginType.MOTE_PLUGIN)

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: SimControl.java,v 1.10 2008/12/04 12:46:42 fros4943 Exp $ * $Id: SimControl.java,v 1.11 2009/03/09 15:39:33 fros4943 Exp $
*/ */
package se.sics.cooja.plugins; package se.sics.cooja.plugins;
@ -46,7 +46,7 @@ import se.sics.cooja.*;
/** /**
* The Control Panel is a simple control panel for simulations. * The Control Panel is a simple control panel for simulations.
* *
* @author Fredrik Österlind * @author Fredrik Osterlind
*/ */
@ClassDescription("Control Panel") @ClassDescription("Control Panel")
@PluginType(PluginType.SIM_STANDARD_PLUGIN) @PluginType(PluginType.SIM_STANDARD_PLUGIN)