Fredrik Ă–sterlind | 6 Nov 2006 18:59
Picon

contiki-2.x/tools/cooja/java/se/sics/cooja VisPlugin.java, 1.1, 1.2

Update of /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv7525/tools/cooja/java/se/sics/cooja

Modified Files:
	VisPlugin.java 
Log Message:
added a few minor changes:

- save plugin information (experimental)

Index: VisPlugin.java
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja/VisPlugin.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** VisPlugin.java	21 Aug 2006 12:12:56 -0000	1.1
--- VisPlugin.java	6 Nov 2006 17:59:34 -0000	1.2
***************
*** 32,38 ****
--- 32,40 ----
  package se.sics.cooja;

+ import java.util.Collection;
  import javax.swing.JInternalFrame;
  import javax.swing.event.InternalFrameEvent;
  import javax.swing.event.InternalFrameListener;
+ import org.jdom.Element;

  /**
***************
*** 92,95 ****
--- 94,126 ----
     */
    public abstract void closePlugin();
+   
+   /**
+    * EXPERIMENTAL.
+    * Returns XML elements representing the current config of this plugin. This
+    * is fetched by the simulator for example when saving a simulation
+    * configuration file. For example a plugin may return the current size and
+    * position. This method should however not return state specific information
+    * such as the value of a mote LED, or total number of motes. (All nodes are
+    * restarted when loading a simulation.)
+    * 
+    *  <at> see #setConfigXML(Collection)
+    *  <at> return XML elements representing the current radio medium config
+    */
+   public Collection<Element> getConfigXML() {
+     return null;
+   }
+ 
+   /**
+    * EXPERIMENTAL.
+    * Sets the current plugin config depending on the given XML elements.
+    * 
+    *  <at> see #getConfigXML()
+    *  <at> param configXML
+    *          Config XML elements
+    *  <at> return True if config was set successfully, false otherwise
+    */
+   public boolean setConfigXML(Collection<Element> configXML) {
+     return false;
+   }

  }

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane