A B C D E I M P R S T

A

afterBirth(AgentSystem, AgentInfo, Object) - Method in class EscapeAgent
 
afterBirth(AgentSystem, AgentInfo, Object) - Method in class PingPong
Set an appropriate property for the PingPong agent to be found by other PingPong agents.
afterBirth(AgentSystem, AgentInfo, Object) - Method in class SmiTest
Displays a message and plays a sound on agent creation.
afterBirth(AgentSystem, AgentInfo, Object) - Method in class ThreadAgent
Initialize the agent and create a thread to run the agent's autonomous activity
afterMove(AgentSystem, Location, String) - Method in class PingPong
Lookup PingPong agents in current agency and try to invoke their ping() method
afterMove(AgentSystem, Location, String) - Method in class SmiTest
Plays a sound and asks installation confirmation after deserialization in the target agency.
afterMove(AgentSystem, Location, String) - Method in class ThreadAgent
Create a thread after move to go on agent's autonomous activity in new host agency.
afterMoveFailed(Location, String, int, String) - Method in class SmiTest
Plays a sound and displays a message in the source agency after the agent has been serialized but its installation in the target agency has failed (probably rejected by the agent itself)
afterMoveFailed(Location, String, int, String) - Method in class ThreadAgent
Nothing special to do if the agent transport/setup phase failed during a move.

B

beforeDeath() - Method in class EscapeAgent
 
beforeDeath() - Method in class SmiTest
Displays a message on termination
beforeDeath() - Method in class ThreadAgent
Make the agent's thread stop as soon as possible.
beforeMove(Location, String) - Method in class SmiTest
Asks confirmation before moving.
beforeMove(Location, String) - Method in class ThreadAgent
Nothing special to do before moving.
beforeResume() - Method in class PingPong
Lookup PingPong agents in current agency and try to invoke their ping() method
beforeResume() - Method in class SmiTest
Displays an acknowledgement message on agent activity resumption if and only if it was suspended, otherwise the resume-caller gets an exception.
beforeResume() - Method in class ThreadAgent
Update the itinerary in current agency's region, and create a thread to run the agent's autonomous activity.
beforeShutdown() - Method in class EscapeAgent
Get the list of agencies in current region, and escape to the first one in the list (if any).
beforeShutdown() - Method in class SmiTest
Displays a message on host agency shutdown
beforeShutdown() - Method in class ThreadAgent
Nothing special to do before agency shutdown (just face upcoming death...)
beforeSuspend() - Method in class SmiTest
Displays an acknowledgement message on agent activity suspension if and only if it was active, otherwise the suspend-caller gets an exception.
beforeSuspend() - Method in class ThreadAgent
Make the agent's thread stop as soon as possible.

C

confirm(String, boolean) - Method in class SmiTest
Displays a message and reads a confirmation ('y' or 'n' whatever upper or lower case) in the attached console/terminal

D

dead - Variable in class ThreadAgent
true if the agent is dead

E

EscapeAgent - class EscapeAgent.
MobiliTools $Name: $, $Id: EscapeAgent.java,v 1.1.1.1 2003/03/28 14:47:58 dillense Exp $ This agent example class shows how an agent may escape from an agency before it shuts down.
EscapeAgent() - Constructor for class EscapeAgent
 

I

itinerary - Variable in class ThreadAgent
latest list of agencies in current region

M

my_agency - Variable in class SmiTest
reference to current host agency, set after each move - must be transient because non-serializable
my_agency - Variable in class ThreadAgent
current host agency
my_name - Variable in class EscapeAgent
 
my_name - Variable in class PingPong
 
my_name - Variable in class SmiTest
display-friendly name, set once for all at creation
my_name - Variable in class ThreadAgent
agent's name

P

pause - Variable in class ThreadAgent
delay in ms between consecutive moves or agency list updates
ping(PingPong) - Method in class PingPong
This method is invoked on each other by PingPong agents.
PingPong - class PingPong.
MobiliTools $Name: $, $Id: PingPong.java,v 1.1.1.1 2003/03/28 14:47:58 dillense Exp $ This agent example class shows the visibility rules between classes of agents loaded with different classloaders and, more important, with different codebases.
PingPong() - Constructor for class PingPong
 
playSound(String) - Method in class SmiTest
Loads a sound designated by the provided resource name using the agent's class classloader and plays it.

R

resetItinerary() - Method in class ThreadAgent
Update the list of agencies and set the itinerary index to zero.
run() - Method in class ThreadAgent
Agent activity: wait for a while, then move to next agency in itinerary or update itinerary if it contains a single agency.
runActivity() - Method in class ThreadAgent
Agent's thread creation.
running - Variable in class SmiTest
true if the agent is currently active, false if it is suspended

S

SmiTest - class SmiTest.
MobiliTools $Name: $, $Id: SmiTest.java,v 1.1.1.1 2003/03/28 14:47:58 dillense Exp $ This example class shows MobileObject lifecycle through a console-based user interaction, as well as resource loading.
SmiTest() - Constructor for class SmiTest
Default constructor is invoked when no argument is provided for agent creation.
SmiTest(Object) - Constructor for class SmiTest
(Generic) Example of specific constructor.
step - Variable in class ThreadAgent
index in list of agencies for next move
suspended - Variable in class ThreadAgent
true if the agent is suspended

T

ThreadAgent - class ThreadAgent.
MobiliTools $Name: $, $Id: ThreadAgent.java,v 1.1.1.1 2003/03/28 14:47:58 dillense Exp $ This example class shows a straightforward implementation of a thread-based agent activity.
ThreadAgent() - Constructor for class ThreadAgent
 

A B C D E I M P R S T