Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please codacy: make a private field useful
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 1 Jun 2017 04:02:25 +0000 (06:02 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 1 Jun 2017 04:02:25 +0000 (06:02 +0200)
src/bindings/java/org/simgrid/msg/VM.java

index c762c47..99f3a3a 100644 (file)
@@ -77,6 +77,11 @@ public class VM extends Host {
        /** Returns whether the given VM is currently suspended */      
        public native int isSuspended();
 
+       /** Returns the amount of virtual CPUs provided */
+       public int getCoreAmount() {
+               return coreAmount;
+       }
+       
        /**
         * Natively implemented method create the VM.
         * @param ramSize size of the RAM that should be allocated (in MB)