X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/936a14d7a4de6b0ab971a416d16a2b7099fc5cc1..12c0f182635ed71b370d608b5b9a614153765cd4:/src/bindings/java/org/simgrid/msg/Host.java diff --git a/src/bindings/java/org/simgrid/msg/Host.java b/src/bindings/java/org/simgrid/msg/Host.java index 3b7f41fb67..3a4c666516 100644 --- a/src/bindings/java/org/simgrid/msg/Host.java +++ b/src/bindings/java/org/simgrid/msg/Host.java @@ -53,7 +53,7 @@ public class Host { /** * Host name */ - private String name; + protected String name; /** * User data. @@ -66,6 +66,11 @@ public class Host { this.bind = 0; this.data = null; }; + + public String toString (){ + return this.name; + + } /** * This static method gets an host instance associated with a native @@ -177,11 +182,13 @@ public class Host { * Returns the value of a given host property. */ public native String getProperty(String name); + /** * Change the value of a given host property. */ public native void setProperty(String name, String value); - /** This method tests if a host is available. + + /** This method tests if a host is available. * @return True if the host is available. */ public native boolean isAvail();