1 31 package org.objectweb.proactive.core.event; 32 33 import org.objectweb.proactive.core.UniqueID; 34 35 47 public class FutureEvent extends ProActiveEvent implements java.io.Serializable { 48 49 50 public static final int WAIT_BY_NECESSITY = 10; 51 52 public static final int RECEIVED_FUTURE_RESULT = 20; 53 54 private UniqueID creatorID; 55 56 63 public FutureEvent(UniqueID bodyID, UniqueID creatorID, int type) { 64 super(bodyID, type); 65 this.creatorID = creatorID; 66 } 67 68 72 public UniqueID getCreatorID() { 73 return creatorID; 74 } 75 76 80 public UniqueID getBodyID() { 81 return (UniqueID)getSource(); 82 } 83 84 public String toString() { 85 return "FutureEvent bodyID="+getBodyID()+" creatorID="+getCreatorID(); 86 } 87 88 } | Popular Tags |