From 9373558bc68b904ae747df4d91561ff828e4297d Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 9 Jan 2007 10:14:45 +0000 Subject: [PATCH] changed name to plugintype --- .../java/se/sics/cooja/VisPluginType.java | 119 ------------------ 1 file changed, 119 deletions(-) delete mode 100644 tools/cooja/java/se/sics/cooja/VisPluginType.java diff --git a/tools/cooja/java/se/sics/cooja/VisPluginType.java b/tools/cooja/java/se/sics/cooja/VisPluginType.java deleted file mode 100644 index 5ebdb1628..000000000 --- a/tools/cooja/java/se/sics/cooja/VisPluginType.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2006, Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the Institute nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (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: VisPluginType.java,v 1.2 2006/12/13 11:58:28 fros4943 Exp $ - */ - -package se.sics.cooja; - -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; - -/** - * Annotation type to describe a plugin type. - * - * @author Fredrik Osterlind - */ -@Retention(RetentionPolicy.RUNTIME) -public @interface VisPluginType { - public static final int UNDEFINED_PLUGIN = 0; - - /** - * Mote Plugin - * - * A mote plugin concerns one specific mote. - * - * An example of such a plugin may be to display - * some mote information in a frame. - * - * Mote plugins can not be instantiated from the - * regular menu bar, but are instead started from - * other plugins, for example a visualizer that let's - * a user select a mote. - * - * When constructed, a mote plugin is given a Mote. - * - * If the current simulation is removed, so are - * all instances of this plugin. - */ - public static final int MOTE_PLUGIN = 1; - - /** - * Simulation Plugin - * - * A simulation plugin concerns one specific simulation. - * - * An example of such a plugin may be to display - * number of motes and current simulation time in a window. - * - * Simulation plugins are available via the plugins menubar. - * - * When constructed, a simulation plugin is given the current - * active simulation. - * - * If the current simulation is removed, so are - * all instances of this plugin. - */ - public static final int SIM_PLUGIN = 2; - - /** - * GUI Plugin - * - * A GUI plugin does not depend on the current simulation to function. - * - * An example of such a plugin may be a control panel - * where a user can control the current simulation. - * - * GUI plugins are available via the plugins menubar. - * - * When constructed, a GUI plugin is given the current GUI. - */ - public static final int GUI_PLUGIN = 3; - - /** - * Simulation Standard Plugin - * - * This is treated exactly like a Simulation Plugin, with the - * only difference that this will automatically be opened - * when a new simulation is created. - */ - public static final int SIM_STANDARD_PLUGIN = 4; - - - /** - * GUI Standard Plugin - * - * This is treated exactly like a GUI Plugin, with the - * only difference that this will automatically be opened - * when a GUI is created. - */ - public static final int GUI_STANDARD_PLUGIN = 5; - - int value(); -} -