A C D E F G H I M N P R S T U Y

A

AccessService - class prueba1.access.AccessService.
This class implements the access service that is in charge of providing access to any agent from any other of the platform
AccessService(Platform) - Constructor for class prueba1.access.AccessService
This method creates the service
AccessServiceInterface - interface prueba1.access.AccessServiceInterface.
 
actionPerformed(ActionEvent) - Method in class prueba1.testAgents.AlexGUI
This method tells what to do when the button is pressed.
actionPerformed(ActionEvent) - Method in class prueba1.testAgents.Alex2
 
addAgent(Agent) - Method in class prueba1.platform.Platform
This method adds the agent into the platform
addAgent(String) - Method in class prueba1.platform.PlatformProxy
This method is to add agents to the platform
addPlatform(String, int) - Method in class prueba1.platform.Platform
This method adds a new platform to the vector so it is considered by this platform to be in the ring.
AG_PORT - Static variable in class prueba1.transport.TransportService
 
Agent - class prueba1.agent.Agent.
 
Agent() - Constructor for class prueba1.agent.Agent
The constructor for the agent
agentCreation(String) - Method in class prueba1.platform.Platform
This method allows PlatformProxy to create an agent and add it, after the platform has been created
Alex0_0 - class prueba1.testAgents.Alex0_0.
 
Alex0_0() - Constructor for class prueba1.testAgents.Alex0_0
 
Alex106 - class prueba1.testAgents.Alex106.
 
Alex106() - Constructor for class prueba1.testAgents.Alex106
 
Alex2 - class prueba1.testAgents.Alex2.
 
Alex2() - Constructor for class prueba1.testAgents.Alex2
 
AlexGUI - class prueba1.testAgents.AlexGUI.
 
AlexGUI() - Constructor for class prueba1.testAgents.AlexGUI
This is the constructor.
AS - Variable in class prueba1.platform.Platform
 

C

ClientThread - class prueba1.platform.threads.ClientThread.
 
ClientThread(Agent, PlatformProxy) - Constructor for class prueba1.platform.threads.ClientThread
 
COM_PORT - Static variable in class prueba1.transport.TransportService
 
createComponents() - Method in class prueba1.testAgents.AlexGUI
Creates the components of the window
createComponents() - Method in class prueba1.testAgents.Alex2
 
createNotifier(String, String) - Method in interface prueba1.access.AccessServiceInterface
 
createNotifier(String, String) - Method in class prueba1.access.AccessService
This method is the one that creates a notifier that will tell the platform that creates it, the events that happen to the agent that is being followed.

D

destination() - Method in class prueba1.testAgents.Alex106
 
destination() - Method in class prueba1.testAgents.Alex0_0
 
destination(String) - Method in class prueba1.testAgents.Alex2
 
destroyNotifier(String) - Method in interface prueba1.access.AccessServiceInterface
 
destroyNotifier(String) - Method in class prueba1.access.AccessService
This method destroys a Notifier already created.
dnsServer - Variable in class prueba1.platform.Platform
 
dnsServer - Variable in class prueba1.transport.TransportService
 

E

errorRaised() - Method in class prueba1.agent.Agent
This method is called when there is an error, by the classes that manipulates the agents.
EXISTING - Static variable in class prueba1.platform.Platform
The newcomming platform when booting

F

fillData(PlatformMessage, int) - Method in class prueba1.platform.Platform
This method gets the data from the message and fills in the platform's vector and so....

G

getLocation(String) - Method in class prueba1.platform.PlatformProxy
THis method gets the IP of the machine in which the agent passed as parameter is hosted.
getLocation(String) - Method in class prueba1.platform.Platform
THis method gets the IP of the machine in which the agent passed as parameter is hosted.
getMyIP() - Method in class prueba1.platform.PlatformProxy
This method retrieves the IP of the platform.
getMyIP() - Method in class prueba1.platform.Platform
This method returns the IP of this platform
getName() - Method in class prueba1.agent.Agent
Retrieves the name of the agent
getNumber() - Method in class prueba1.platform.Platform
This method retrieves the number of the platform
getPlatforms() - Method in class prueba1.platform.Platform
This method returns the Vector that have the platforms connected to the ring.
getProxy(String) - Method in class prueba1.platform.PlatformProxy
This method get a proxy to another agent
getProxy(String) - Method in class prueba1.platform.Platform
This method gets a proxy to an agent
getProxy(String) - Method in class prueba1.access.AccessService
This method returns a proxy to the caller.
GUI() - Method in class prueba1.testAgents.AlexGUI
This is the method that displays the GUI on the screen and so...
GUI() - Method in class prueba1.testAgents.Alex2
 

H

HS - Variable in class prueba1.platform.Platform
 

I

invokeMethod(String, Object[]) - Method in class prueba1.access.Proxy
Invokes a method of the agent.
invokeRemoteMethod(String, String, Object[]) - Method in interface prueba1.access.AccessServiceInterface
 
invokeRemoteMethod(String, String, Object[]) - Method in class prueba1.access.AccessService
This method invokes a method of the agent from the proxy (what means that is from another agent that has a reference to him).

M

Main - class prueba1.platform.Main.
 
Main() - Constructor for class prueba1.platform.Main
 
main(String[]) - Static method in class prueba1.platform.PlatformProxy
This method starts the platform.
main(String[]) - Static method in class prueba1.platform.Main
 
main(String[]) - Static method in class prueba1.UI.TextInterface
 
MES_PORT - Static variable in class prueba1.transport.TransportService
 
Message - class prueba1.message.Message.
 
Message(String, String, String, Object) - Constructor for class prueba1.message.Message
 
messageReceived() - Method in class prueba1.platform.Platform
This method tells the platform when it has been received a BOOTMESSAGE and the platform (hopefully) has been accepted by the ring
method - Variable in class prueba1.agent.Agent
The method that will be called in the destination
moveTo(int, int, String, int) - Method in class prueba1.agent.Agent
Moves the agent to the host and the port specified by the caller
myPlatform - Variable in class prueba1.agent.Agent
A pointer to the platform in which the agent is existing at this moment It is transient to avoid having to unreference it when serializing the agent.
myProxy - Variable in class prueba1.platform.Platform
The Proxy that the agents have instead of having a PlatformObject

N

NEW - Static variable in class prueba1.platform.Platform
The newcomming platform when booting
nextPlatformToJoin() - Method in class prueba1.platform.Platform
This method checks the size of the Vector that holds the platforms and calculates which is gonna be the next number for the next platform
Notifier - class prueba1.access.Notifier.
 
Notifier(String, String, String) - Constructor for class prueba1.access.Notifier
This method is the constructor and saves the address of the platform which notifies and also gets a remote reference to it
notifyArrival(String) - Method in class prueba1.access.AccessService
This method is in charge of telling the notifier that an agent has just arrived
notifyArrival(String) - Method in class prueba1.access.Notifier
This method notifies the remote platform that chases the agent that the agent has just arrived.
notifyMovement(String, String) - Method in class prueba1.access.AccessService
This method is in charge of sending the Notifier to the other platform to allow this platform to know when does the agent get there and thus get the ref with notifyArrival().
notifyMovement(String, String) - Method in class prueba1.access.Notifier
This method notifies the remote platform that is chasing the agent that the agent is going to move away.
notifyRemoteArrival(String, String) - Method in interface prueba1.access.AccessServiceInterface
 
notifyRemoteArrival(String, String) - Method in class prueba1.access.AccessService
This method carries out the work of put in contact the remote agent and the proxy.
notifyRemoteMovement(String, String) - Method in interface prueba1.access.AccessServiceInterface
 
notifyRemoteMovement(String, String) - Method in class prueba1.access.AccessService
This method warns the service that an agent is going to move
NS - Variable in class prueba1.platform.Platform
 
NUMCON - Static variable in class prueba1.transport.TransportService
 
NUMCON_COM - Static variable in class prueba1.transport.TransportService
 

P

Platform - class prueba1.platform.Platform.
 
Platform(PlatformProxy) - Constructor for class prueba1.platform.Platform
The constructor that just starts running the platform.
PlatformProxy - class prueba1.platform.PlatformProxy.
This class is needed in order to controll the access that the agents have of the actual platform.
PlatformProxy() - Constructor for class prueba1.platform.PlatformProxy
 
Proxy - class prueba1.access.Proxy.
This class is a permanent reference to an agent.
Proxy(AccessService, String) - Constructor for class prueba1.access.Proxy
The constructor of the class.
prueba1.access - package prueba1.access
 
prueba1.agent - package prueba1.agent
 
prueba1.message - package prueba1.message
 
prueba1.platform - package prueba1.platform
 
prueba1.platform.threads - package prueba1.platform.threads
 
prueba1.testAgents - package prueba1.testAgents
 
prueba1.transport - package prueba1.transport
 
prueba1.UI - package prueba1.UI
 

R

run() - Method in class prueba1.platform.threads.ClientThread
 
run() - Method in class prueba1.platform.threads.ServerThread
 

S

Send() - Method in class prueba1.message.Message
 
sendAgent(int, int, String, int, Agent) - Method in class prueba1.platform.PlatformProxy
 
sendAgent(int, int, String, int, Agent) - Method in class prueba1.platform.Platform
The service of the platform to send the agent.
sendAgent(String, int, Agent) - Method in class prueba1.transport.TransportService
This method sends to a certain port in a certain machine the object that is passed to the method as an argument.
sendCircularMessage(PlatformMessage) - Method in class prueba1.platform.Platform
This method sends a message to another platform when another one is booting
sendMessage(String, int) - Method in class prueba1.transport.TransportService
This method sends a message to another platform
sendMessage(String, PlatformMessage) - Method in class prueba1.transport.TransportService
This method resends a message previously received by the platform
ServerThread - class prueba1.platform.threads.ServerThread.
 
ServerThread(ServerSocket, Platform) - Constructor for class prueba1.platform.threads.ServerThread
 
setName(String) - Method in class prueba1.agent.Agent
Sets the name of the agent
showInterface() - Method in class prueba1.UI.TextInterface
 
start() - Method in class prueba1.agent.Agent
This method is to be called each time the agent is started.
start() - Method in class prueba1.testAgents.AlexGUI
This method is called when the agent is created
start() - Method in class prueba1.testAgents.Alex106
 
start() - Method in class prueba1.testAgents.Alex0_0
 
start() - Method in class prueba1.testAgents.Alex2
 
startup(String) - Method in class prueba1.platform.PlatformProxy
 
startup(String) - Method in class prueba1.platform.Platform
This method in necessary for the platform to boot up.
stop() - Method in class prueba1.platform.Platform
This is the method that cleans up everything when the platform stops.

T

TextInterface - class prueba1.UI.TextInterface.
 
TextInterface() - Constructor for class prueba1.UI.TextInterface
 
TransportService - class prueba1.transport.TransportService.
 
TransportService(Platform) - Constructor for class prueba1.transport.TransportService
 

U

updateRef(String) - Method in class prueba1.access.Proxy
Updates the reference of the agent, from his current position to the new one, passed as a parameter.

Y

yaCalledMe() - Method in class prueba1.testAgents.AlexGUI
This method is to be invoked from a remote agent...
yaCalledMe() - Method in class prueba1.testAgents.Alex2
This method is to be invoked from a remote agent...

A C D E F G H I M N P R S T U Y