1 26 27 28 package org.objectweb.mobilitools.smi.goodies; 29 30 31 import org.objectweb.mobilitools.smi.api.*; 32 import org.objectweb.mobilitools.smi.api.Agency; 33 import org.omg.CORBA.Any ; 34 import org.omg.CfMAF.*; 35 36 37 45 46 public class BasicMobileObject implements MobileObject 47 { 48 49 protected transient Agency my_agency = null; 50 51 52 55 public void afterBirth(AgentSystem agency, AgentInfo entry, Object argument) 56 throws BadOperation 57 { 58 my_agency = (Agency)agency; 59 } 60 61 62 65 public void beforeMove(Location location, String place) 66 throws BadOperation 67 { 68 } 69 70 71 74 public void afterMove(AgentSystem agency, Location location, String place) 75 throws BadOperation 76 { 77 my_agency = (Agency)agency; 78 } 79 80 81 85 public void afterMoveFailed( 86 Location location, 87 String place, 88 int reason, 89 String message) 90 { 91 } 92 93 94 97 public void beforeDeath() 98 { 99 } 100 101 102 105 public void beforeSuspend() 106 throws BadOperation 107 { 108 } 109 110 111 114 public void beforeResume() 115 throws BadOperation 116 { 117 } 118 119 120 123 public void beforeShutdown() 124 { 125 } 126 } 127 | Popular Tags |