Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge commit '4df273f15273f959fc9e6ed69d2bf5e607ec9bf7' into HEAD
authorPaul Bédaride <paul.bedaride@gmail.com>
Wed, 30 Jan 2013 17:20:59 +0000 (18:20 +0100)
committerPaul Bédaride <paul.bedaride@gmail.com>
Wed, 30 Jan 2013 17:20:59 +0000 (18:20 +0100)
1  2 
org/simgrid/trace/Trace.java

   */
  package org.simgrid.trace;
  
 +import org.simgrid.msg.Msg;
 +
  public final class Trace {
        /* Statically load the library which contains all native functions used in here */
        static {
 +              Msg.nativeInit();
                try {
                        System.loadLibrary("SG_java_tracing");
                } catch(UnsatisfiedLinkError e) {
         * @param value
         */
        public final static native      void hostVariableSet (String host, String variable, double value);
+       /**
+        * Declare a new user variable associated to VMs. 
+        * 
+        * @param variable
+        */
+       public final static native      void vmVariableDeclare (String variable);
+  
+       /**
+        * Set the value of a variable of a VM. 
+        * 
+        * @param host
+        * @param variable
+        * @param value
+        */
+       public final static native      void vmVariableSet (String vm, String variable, double value);
  }