/* 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. */
/* 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. */
- * A host object represents a location (any possible place) where a process may run.
- * Thus it is represented as a physical resource with computing capabilities, some
- * mailboxes to enable running process to communicate with remote ones, and some private
- * data that can be only accessed by local process. An instance of this class is always
+ * A host object represents a location (any possible place) where a process may run.
+ * Thus it is represented as a physical resource with computing capabilities, some
+ * mailboxes to enable running process to communicate with remote ones, and some private
+ * data that can be only accessed by local process. An instance of this class is always
* bound with the corresponding native host. All the native hosts are automatically created
* during the call of the method Msg.createEnvironment(). This method take as parameter a
* platform file which describes all elements of the platform (host, link, root..).
* You cannot create a host yourself.
*
* bound with the corresponding native host. All the native hosts are automatically created
* during the call of the method Msg.createEnvironment(). This method take as parameter a
* platform file which describes all elements of the platform (host, link, root..).
* You cannot create a host yourself.
*
jacquelin = Host.getByName("Jacquelin");
} catch(HostNotFoundException e) {
System.err.println(e.toString());
jacquelin = Host.getByName("Jacquelin");
} catch(HostNotFoundException e) {
System.err.println(e.toString());
public class Host {
/**
* This attribute represents a bind between a java host object and
* a native host. Even if this attribute is public you must never
public class Host {
/**
* This attribute represents a bind between a java host object and
* a native host. Even if this attribute is public you must never
*
* @return The host object with the given name.
* @exception HostNotFoundException if the name of the host is not valid.
*
* @return The host object with the given name.
* @exception HostNotFoundException if the name of the host is not valid.
- *
- * All messages sent to this mailbox will be transferred to
- * the receiver without waiting for the receive call.
+ *
+ * All messages sent to this mailbox will be transferred to
+ * the receiver without waiting for the receive call.
public native void off();
/**
* This method returns the speed of the processor of a host (in flops),
* regardless of the current load of the machine.
public native void off();
/**
* This method returns the speed of the processor of a host (in flops),
* regardless of the current load of the machine.
*
* Please note that since the consumption is lazily updated, it may require a simcall to update it.
* The result is that the actor requesting this value will be interrupted,
*
* Please note that since the consumption is lazily updated, it may require a simcall to update it.
* The result is that the actor requesting this value will be interrupted,
/** Changes the current pstate */
public native void setPstate(int pstate);
public native int getPstatesCount();
/** Changes the current pstate */
public native void setPstate(int pstate);
public native int getPstatesCount();