Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SIMIX call + MSG function + Java binding for get_core
[simgrid.git] / src / bindings / java / org / simgrid / msg / Host.java
index 11605f9..3b7f41f 100644 (file)
@@ -110,7 +110,7 @@ public class Host {
      * If there is a need to receive some messages asynchronously, and some not, 
      * two different mailboxes should be used.
      *
-     * @param alias The name of the mailbox 
+     * @param mailboxName The name of the mailbox
      */
     public static native void setAsyncMailbox(String mailboxName);
 
@@ -164,6 +164,15 @@ public class Host {
         *
         */ 
        public native double getSpeed();
+
+       /**
+        * This method returns the number of core of a host.
+        *
+        * @return                      The speed of the processor of the host in flops.
+        *
+        */ 
+       public native double getCore();
+
        /**
         * Returns the value of a given host property. 
         */