if (para [ i ] [ 0 ].equals(NS_HOST)) ns_host = para [ i ] [ 1 ]; if (para [ i ] [ 0 ].equals(START_READING_MESSAGE)) TOUT_START_READING_MESSAGE = Integer.parseInt(para [ i ] [ 1 ]); if (para [ i ] [ 0 ].equals(WHILE_READING)) TOUT_WHILE_READING = Integer.parseInt(para [ i ] [ 1 ]); if (para [ i ] [ 0 ].equals(AFTER_RECEIVING)) TOUT_AFTER_RECEIVING = Integer.parseInt(para [ i ] [ 1 ]);
if (para[i][0].equals(ORB_ID)) orb_id = para[i][1];  if (para[i][0].equals(SERVER_ID)) server_id = para[i][1];  if (para[i][0].equals(NS_HOST)) ns_host = para[i][1]; if (para[i][0].equals(START_READING_MESSAGE)) TOUT_START_READING_MESSAGE = Integer.parseInt(para[i][1]); if (para[i][0].equals(WHILE_READING)) TOUT_WHILE_READING = Integer.parseInt(para[i][1]); if (para[i][0].equals(AFTER_RECEIVING)) TOUT_AFTER_RECEIVING = Integer.parseInt(para[i][1]);
  protected void set_parameters(Applet app, Properties props)  {    useProperties(props);    String[][] para = app.getParameterInfo();    if (para != null)      {        for (int i = 0; i < para.length; i++)          {            if (para [ i ] [ 0 ].equals(LISTEN_ON))              Port = Integer.parseInt(para [ i ] [ 1 ]);            if (para [ i ] [ 0 ].equals(REFERENCE))              {                StringTokenizer st =                  new StringTokenizer(para [ i ] [ 1 ], "=");                initial_references.put(st.nextToken(),                  string_to_object(st.nextToken())                );              }            if (para [ i ] [ 0 ].equals(NS_HOST))              ns_host = para [ i ] [ 1 ];            if (para [ i ] [ 0 ].equals(START_READING_MESSAGE))              TOUT_START_READING_MESSAGE = Integer.parseInt(para [ i ] [ 1 ]);            if (para [ i ] [ 0 ].equals(WHILE_READING))              TOUT_WHILE_READING = Integer.parseInt(para [ i ] [ 1 ]);            if (para [ i ] [ 0 ].equals(AFTER_RECEIVING))              TOUT_AFTER_RECEIVING = Integer.parseInt(para [ i ] [ 1 ]);            try              {                if (para [ i ] [ 0 ].equals(NS_PORT))                  ns_port = Integer.parseInt(para [ i ] [ 1 ]);              }            catch (NumberFormatException ex)              {                BAD_PARAM bad =                  new BAD_PARAM("Invalid " + NS_PORT +                    "property, unable to parse '" +                    props.getProperty(NS_PORT) + "'"                  );                bad.initCause(ex);                throw bad;              }          }      }  }