From 2604c891e1352bf91024630259dc4fa38946eb82 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 26 Jan 2007 14:39:54 +0000 Subject: [PATCH] added a few commonly tracked interfaces, not depending on contiki mote types --- .../java/se/sics/cooja/plugins/EventListener.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/EventListener.java b/tools/cooja/java/se/sics/cooja/plugins/EventListener.java index 26cb69ec2..438d73f80 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/EventListener.java +++ b/tools/cooja/java/se/sics/cooja/plugins/EventListener.java @@ -24,19 +24,19 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: EventListener.java,v 1.2 2007/01/12 10:47:05 fros4943 Exp $ + * $Id: EventListener.java,v 1.3 2007/01/26 14:39:54 fros4943 Exp $ */ package se.sics.cooja.plugins; import java.awt.event.*; -import java.awt.event.ActionListener; import java.util.*; import javax.swing.*; import org.apache.log4j.Logger; import se.sics.cooja.*; import se.sics.cooja.contikimote.ContikiMoteType; +import se.sics.cooja.interfaces.*; /** * Allows a user to observe several different parts of the simulator, stopping a @@ -145,6 +145,15 @@ public class EventListener extends VisPlugin { // Create selectable interfaces list (only supports Contiki mote types) Vector> allMoteTypes = new Vector>(); Vector> allMoteTypesDups = new Vector>(); + + // Add standard interfaces + allMoteTypesDups.add(Button.class); + allMoteTypesDups.add(LED.class); + allMoteTypesDups.add(Log.class); + allMoteTypesDups.add(PIR.class); + allMoteTypesDups.add(Position.class); + allMoteTypesDups.add(Radio.class); + for (MoteType moteType : simulationToControl.getMoteTypes()) { if (moteType instanceof ContikiMoteType) { allMoteTypesDups.addAll(((ContikiMoteType) moteType)