1 31 package org.objectweb.proactive.ic2d.spy; 32 33 import org.objectweb.proactive.core.UniqueID; 34 35 public class BodySpyEvent extends SpyEvent implements java.io.Serializable { 36 37 38 private boolean isActive; 39 40 41 private boolean isAlive; 42 43 public BodySpyEvent(UniqueID bodyID) { 44 this(bodyID, false, true); 45 } 46 47 public BodySpyEvent(UniqueID bodyID, boolean isActive) { 48 this(bodyID, isActive, true); 49 } 50 51 public BodySpyEvent(UniqueID bodyID, boolean isActive, boolean isAlive) { 52 this(BODY_EVENT_TYPE, bodyID, isActive, isAlive); 53 } 54 55 protected BodySpyEvent(int eventType, UniqueID bodyID, boolean isActive, boolean isAlive) { 56 super(eventType, bodyID); 57 this.isActive = isActive; 58 this.isAlive = isAlive; 59 } 60 61 public boolean isActive() { return isActive; } 62 public boolean isAlive() { return isAlive; } 63 64 } | Popular Tags |