Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix most of spelling mistakes in src/
[simgrid.git] / src / bindings / java / org / simgrid / msg / VM.java
index 8ab6a27..b1fbf65 100644 (file)
@@ -1,6 +1,6 @@
 /* Java bindings of the s4u::VirtualMachine */
 
-/* Copyright (c) 2006-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2006-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -78,16 +78,16 @@ public class VM extends Host {
        private native void nativeFinalize();
 
        /** Returns whether the given VM is currently suspended */      
-       public native int isCreated();
+       public native boolean isCreated();
 
        /** Returns whether the given VM is currently running */
-       public native int isRunning();
+       public native boolean isRunning();
 
        /** Returns whether the given VM is currently running */
-       public native int isMigrating();
+       public native boolean isMigrating();
 
        /** Returns whether the given VM is currently suspended */      
-       public native int isSuspended();
+       public native boolean isSuspended();
 
        /** Returns the amount of virtual CPUs provided */
        public int getCoreAmount() {
@@ -131,7 +131,7 @@ public class VM extends Host {
                  Msg.info("Migration of VM "+this.getName()+" to "+destination.getName()+" is impossible ("+e.getMessage()+")");
                  throw new HostFailureException(e.getMessage());
                }
-               // If the migration correcly returned, then we should change the currentHost value.
+               // If the migration correctly returned, then we should change the currentHost value.
                this.currentHost = destination;
        }
        private native void nativeMigration(Host destination) throws MsgException;