Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid-java
authorJonathan Rouzaud-Cornabas <jonathan.rouzaud-cornabas@ens-lyon.fr>
Thu, 17 Jan 2013 10:29:01 +0000 (11:29 +0100)
committerJonathan Rouzaud-Cornabas <jonathan.rouzaud-cornabas@ens-lyon.fr>
Thu, 17 Jan 2013 10:29:01 +0000 (11:29 +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) {
  
        // TODO complete the binding of the tracing API 
        
 -      /**
 -       * Declare a new user variable associated to hosts. 
 -       * 
 -       * @param variable
 -       */
 -      public final static native      void hostVariableDeclare (String variable);
 - 
 +
        /**
         * Declare a new user variable associated to hosts with a color. 
         *  
         */
        public final static native      void hostVariableDeclareWithColor (String variable, String color);
        
 -      /**
 -       * Set the value of a variable of a host. 
 -       * 
 -       * @param host
 -       * @param variable
 -       * @param value
 -       */
 -      public final static native      void hostVariableSet (String host, String variable, double value);
 - 
 +      
        /**
         *  Add a value to a variable of a host. 
         *  
         */
        public final static native void hostPopState (String host, String state);
  
 -      
 +      /**
 +       * Declare a new user variable associated to hosts. 
 +       * 
 +       * @param variable
 +       */
 +      public final static native      void hostVariableDeclare (String variable);
 + 
 +
 +      /**
 +       * Set the value of a variable of a host. 
 +       * 
 +       * @param host
 +       * @param variable
 +       * @param value
 +       */
 +      public final static native      void hostVariableSet (String host, String variable, double value);
  }