prueba1.platform
Class PlatformProxy

java.lang.Object
  |
  +--prueba1.platform.PlatformProxy

public class PlatformProxy
extends java.lang.Object

This class is needed in order to controll the access that the agents have of the actual platform.


Constructor Summary
PlatformProxy()
           
 
Method Summary
 void addAgent(java.lang.String _className)
          This method is to add agents to the platform
 java.lang.String getLocation(java.lang.String _agentName)
          THis method gets the IP of the machine in which the agent passed as parameter is hosted.
 java.lang.String getMyIP()
          This method retrieves the IP of the platform.
 Proxy getProxy(java.lang.String _agentName)
          This method get a proxy to another agent
static void main(java.lang.String[] args)
          This method starts the platform.
 void sendAgent(int _secs, int _num, java.lang.String _a, int _p, Agent _ag)
           
 void startup(java.lang.String _tutorPlatform)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformProxy

public PlatformProxy()
Method Detail

sendAgent

public void sendAgent(int _secs,
                      int _num,
                      java.lang.String _a,
                      int _p,
                      Agent _ag)

startup

public void startup(java.lang.String _tutorPlatform)

getMyIP

public java.lang.String getMyIP()
This method retrieves the IP of the platform.

getLocation

public java.lang.String getLocation(java.lang.String _agentName)
THis method gets the IP of the machine in which the agent passed as parameter is hosted.

addAgent

public void addAgent(java.lang.String _className)
This method is to add agents to the platform

getProxy

public Proxy getProxy(java.lang.String _agentName)
This method get a proxy to another agent

main

public static void main(java.lang.String[] args)
This method starts the platform.