3 public class Message implements java.io.Serializable, Cloneable {
5 private static final long serialVersionUID = 1L;
9 private TaskId Src = null;
10 private TaskId Dest = null;
13 private int src_iteration;
14 private int src_tag = -1;
15 //private Integer srcTag;
16 private double error = 0;
18 // TODO : add appliname too in Message object
21 public Message(Object obj) {
28 public void setParam(Object buffer, TaskId src, TaskId dest, int tag,
29 int time, int iter, int src_tag, double erreur_locale) {
35 this.src_iteration = iter;
36 this.src_tag = src_tag;
37 error = erreur_locale;
41 public Object getData() {
45 public double getLocalError() {
49 public int getSrc_iteration() {
53 public int getSrc_tag() {
57 public void setTag(int val) {
65 public TaskId getSender() {
69 public TaskId getReceiver() {
73 public int getTimeStep() {
77 public Object clone() {
78 Message tmp = new Message();
79 tmp.setParam(this.obj, this.Src, this.Dest, this.tag, this.timeStep,
80 this.src_iteration, this.src_tag, this.error);