1 31 package org.objectweb.proactive.core.event; 32 33 import org.objectweb.proactive.core.body.UniversalBody; 34 35 36 46 public class BodyEvent extends ProActiveEvent implements java.io.Serializable { 47 48 49 public static final int BODY_CREATED = 10; 50 51 52 public static final int BODY_DESTROYED = 20; 53 54 55 public static final int BODY_CHANGED = 30; 56 57 58 63 public BodyEvent(UniversalBody body, int messageType) { 64 super(body, messageType); 65 } 66 67 68 72 public UniversalBody getBody() { 73 return (UniversalBody) getSource(); 74 } 75 76 } | Popular Tags |