if (line.charAt(0) != '#') {   Agent newAg = processInputLine(line); if (newAg != null) { if (log.isApplicable(log.VERBOSE)) { log.log(this, log.VERBOSE, "parseParameters: " + this + " adding Agent to the world: " + newAg);
try { if (line.charAt(0) != '#') {   Agent newAg = processInputLine(line); if (newAg != null) { if (log.isApplicable(log.VERBOSE)) { log.log(this, log.VERBOSE, "parseParameters: " + this + " adding Agent to the world: " + newAg); } world.addAgent(newAg);
  private void parseParameters() {    Vector pv = getParameters() != null ? new Vector(getParameters()) : null;    if (pv == null) {      throw new RuntimeException("TranducerPlugIn expects parameters, got none");    }    String fileName = (String)pv.elementAt(0);    if (fileName == null) {      throw new RuntimeException("TransducerPlugIn expected param[0] to be a data file name, got none");    }    // Finished getting parameter.  Now open the file        InputStream input = null;    try {      input = getConfigFinder().open(fileName);    } catch (IOException e) {      throw new RuntimeException("TransducerPlugIn unable to open file " + fileName);    }        // Now read the file    if (input != null) {      BufferedReader in = new BufferedReader(new InputStreamReader(input));      try {	while(in.ready()) {	  String line = in.readLine();	  if (line == null) {	    break;	  } else {	    // Skip comment lines	    if (line.charAt(0) != '#') {	      // What about lines of all blanks?	      // create a new Agent	      Agent newAg = processInputLine(line);	      if (newAg != null) {		if (log.isApplicable(log.VERBOSE)) {		  log.log(this, log.VERBOSE, "parseParameters: " + this + " adding Agent to the world: " + newAg);		}		world.addAgent(newAg);	      }	    }	  }	}	in.close();      } catch (IOException e) {	// error reading input data!	if (log.isApplicable(log.PROBLEM)) {	  log.log(this, log.PROBLEM, "parseParameters: " + this + " failed to read input data.");	}      }    }  } // end of parseParameters