1 package org.simgrid.msg;
3 * Copyright 2012 The SimGrid team. All right reserved.
5 * This program is free software; you can redistribute
6 * it and/or modify it under the terms of the license
7 * (GNU LGPL) which comes with this package.
11 * Communication action, representing an ongoing communication
16 * Represents the bind between the java comm and the
17 * native C comm. You must never access it, since it is
22 * Represents the bind for the task object pointer. Don't touch it.
24 public long bindTask = 0;
26 * Task associated with the comm. Beware, it can be null
28 protected Task task = null;
30 * Protected constructor, used by Comm factories
37 * Finalize the communication object, destroying it.
39 protected void finalize() {
43 * Unbind the communication object
45 public native void unbind();
47 * Returns if the communication is finished or not.
48 * If the communication has finished and there was an error,
51 public native boolean test() throws TransferFailureException, HostFailureException, TimeoutException ;
53 * Returns the task associated with the communication.
54 * if the communication isn't finished yet, will return null.
56 public Task getTask() {