import java.io.*; import java.util.*; import java.lang.*; /** This class represents the global name server. * @author Yin Xiong * @author Glenn Matthews * @version 1.2 (06/2005) */ public class GlobalNameServer{ /**A vector that stores the global routing information */ Vector routingTable; /**Construct a new GlobalNameServer object.*/ public GlobalNameServer() { routingTable=new Vector(); }//end constructor /**Adds a row of routing inforamtion into the lookup table. *@param rinfo an RoutingInfo instance representing a row in the table. *@return the size of the lookup table. */ public int addRoutingRow(RoutingInfo rinfo) { routingTable.add(rinfo); return routingTable.size(); }//end addRoutingRow /**Looks up the routing info by an LP's application id. *@param appid String representing the application id of the LP. */ public RoutingInfo getRoutingInfoByAid(String appid) { //System.out.println("in gns, aid: " + appid); for(int i=0;i