1 26 27 28 package org.objectweb.mobilitools.smi.api; 29 30 import org.omg.CfMAF.AgentSystemInfo; 31 32 41 public interface AgencyPersonality 42 { 43 54 public void afterBirth(MobileObject agent, AgentSystem agency, AgentInfo entry, Object arguments) 55 throws BadOperation; 56 57 68 public void beforeMove(MobileObject agent, Location location, String place) 69 throws BadOperation; 70 71 83 public void afterMove(MobileObject agent, AgentSystem agency, Location location, String place) 84 throws BadOperation; 85 86 96 public void afterMoveFailed( 97 MobileObject agent, 98 Location agency, 99 String place, 100 int reason, 101 String message); 102 103 109 public void beforeDeath(MobileObject agent); 110 111 119 public void beforeSuspend(MobileObject agent) 120 throws BadOperation; 121 122 130 public void beforeResume(MobileObject agent) 131 throws BadOperation; 132 133 141 public void beforeShutdown(MobileObject agent); 142 143 146 public void agencyShutdown(); 147 } 148 | Popular Tags |